Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MM-56867] Fix metrics by not counting disabled users #561

Merged
merged 3 commits into from
Apr 1, 2024
Merged

Conversation

JulienTant
Copy link
Member

Summary

  • msteams_connect_app_upstream_users also counts MSTeams accounts that are not enabled. This PR fixes this

Ticket Link

Partially fixes https://mattermost.atlassian.net/browse/MM-56887

@JulienTant JulienTant added the 2: Dev Review Requires review by a core committer label Mar 26, 2024
Copy link
Member

@lieut-data lieut-data left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thank you!

@JulienTant JulienTant merged commit 37b46d4 into main Apr 1, 2024
7 checks passed
@JulienTant JulienTant deleted the MM-56887 branch April 1, 2024 17:51
sbishel pushed a commit that referenced this pull request Apr 2, 2024
* stop counting disabled msteams user

* fix terminology

* fix test + lint
sbishel added a commit that referenced this pull request Apr 8, 2024
* add handling for connecting bot account

* check for permissions and connected user

* add more tests

* Update api_test.go

* update Grafana dashboard for Cloud, stripping out hard-coded links (#557)

* Disable temporoarily auto share DMs (#558)

* [MM-56908] Make promote command accepts @ for both arguments (#550)

* [MM-57072] Use ConstantTimeCompare to prevent timing attack (#549)

* use ConstantTimeCompare to prevent timing attack

* document code

* MM-57367: log when invite sent (#559)

* log when invite sent

* remove listener on uninitialize

* review change

* use IsGroupOrDirect for clarity (#556)

* [MM-57209] Set EmailVerified to true when promoting synthetic users (#548)

* Set EmailVerified to true when promoting synthetic users

* change EmailVerified in the sync job + add and fix tests

* add once

* lint

* add EmailVerified when creating synthetic user from a getter

* remove EmailVerified from the getOrCreateSyntheticUser (not promoted there)

* fix tests

* MM-57120: show connected users stat (#571)

Show the number of connected users on the system console for administrators.

Fixes: https://mattermost.atlassian.net/browse/MM-57350

* [RE:MM-57209]  Set EmailVerified to true when autopromoting through hook (#565)

* MM-57120: delay monitoring job on startup (#570)

Delay the monitoring job by at least 1 minute after startup to avoid a race where the plugin hasn't fully yet deployed in a mostly disabled environment.

```
{
  "timestamp": "2024-03-30 15:06:00.011 -03:00",
  "level": "info",
  "msg": "Delaying the Monitoring System Job until at least 1 minute after startup",
  "caller": "app/plugin_api.go:1004",
  "plugin_id": "com.mattermost.msteams-sync"
}

{
  "timestamp": "2024-03-30 15:07:00.016 -03:00",
  "level": "info",
  "msg": "Running the Monitoring System Job",
  "caller": "app/plugin_api.go:1004",
  "plugin_id": "com.mattermost.msteams-sync"
}
```

Fixes: https://mattermost.atlassian.net/browse/MM-57120

* [MM-56867] Fix metrics by not counting disabled users (#561)

* stop counting disabled msteams user

* fix terminology

* fix test + lint

* MM-56809: support deleting messages from Mattermost (#569)

---------

Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com>
Co-authored-by: Jesús Espino <jespinog@gmail.com>
Co-authored-by: Julien Tant <785518+JulienTant@users.noreply.github.com>
Co-authored-by: Caleb Roseland <caleb@calebroseland.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2: Dev Review Requires review by a core committer QA/Review Not Required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants