-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[MM-55] Update plugin with respect to phase 1 upgrades #333
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #333 +/- ##
==========================================
+ Coverage 18.41% 18.47% +0.06%
==========================================
Files 9 9
Lines 1515 1510 -5
==========================================
Hits 279 279
+ Misses 1185 1180 -5
Partials 51 51 ☔ View full report in Codecov by Sentry. |
|
||
Use `make dist` to build distributions of the plugin that you can upload to a Mattermost server for testing. | ||
|
||
Use `make check-style` to check the style for the whole plugin. | ||
This plugin contains both a server and web app portion. Read our documentation about the [Developer Workflow](https://developers.mattermost.com/integrate/plugins/developer-workflow/) and [Developer Setup](https://developers.mattermost.com/integrate/plugins/developer-setup/) for more information about developing and extending plugins. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome 👍
@@ -82,7 +57,7 @@ func findManifest() (*model.Manifest, error) { | |||
// we don't want to accidentally clobber anything we won't preserve. | |||
var manifest model.Manifest | |||
decoder := json.NewDecoder(manifestFile) | |||
// decoder.DisallowUnknownFields() // Commented out until circleci image is updated: https://github.com/mattermost/mattermost-plugin-zoom/pull/269#discussion_r927075701 | |||
decoder.DisallowUnknownFields() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
api.On("KVSetWithOptions", "mutex_mmi_bot_ensure", mock.AnythingOfType("[]uint8"), model.PluginKVSetOptions{Atomic: true, OldValue: []uint8(nil), ExpireInSeconds: 15}).Return(true, nil) | ||
api.On("KVSetWithOptions", "mutex_mmi_bot_ensure", []byte(nil), model.PluginKVSetOptions{ExpireInSeconds: 0}).Return(true, nil) | ||
|
||
api.On("EnsureBotUser", &model.Bot{ | ||
Username: botUserName, | ||
DisplayName: botDisplayName, | ||
Description: botDescription, | ||
}).Return(botUserID, nil) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This changed because we made the code more hardened for race conditions. I wonder why there was no call for EnsureBotUser
before the changes in this PR though. I wonder if there is any risk on this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mickmister What risk might you be talking about on this?
…ded typescript setup
Hi @ayusht2810, can you please resolve the conflicts here? Thank you |
@mickmister resolved the conflicts. Please re-review. |
Summary
Updated plugin with respect to phase 1 upgrades
nvmrc
file and updatepackage-lock.json
file.Ticket Link