Ibrahim Serdar Acikgoz
e85d34163c
Add support packet metadata ( #27465 )
2024-06-27 15:27:57 +02:00
Julien Tant
e96db725ea
PluginAPI: add ability to retrieve users by ids ( #26936 )
...
* pluginapi: ability to retrieve users by ids
* fix test
2024-05-15 07:06:40 -07:00
Jesse Hallam
acbaf4c283
add UpdateUserRoles to plugin api ( #26615 )
...
* ProfileImageBytes for EnsureBotOptions
* leverage plugintest.NewAPI
* fix linting
* add UpdateUserRoles to plugin api
2024-03-29 19:22:54 -03:00
Doug Lauder
7b7bcff821
Shared channels auto-share DM & group messages ( #26097 )
...
* option for auto inviting plugin to all shared channels.
* auto-invite remotes to shared channels when flag set
2024-02-09 10:47:12 -05:00
Harrison Healey
4d96c11314
MM-56083 Add PatchMultipleMembersNotifyProps plugin API ( #25690 )
...
* Add ChannelStore.UpdateMultipleMembersNotifyProps
* Make UpdateMultipleMembersNotifyProps return updated values from the DB
* Add UpdateChannelMembersNotifications plugin API
* Extract i18n
* Fix style
* Make layers
* Change to PatchMultipleMembersNotifyProps
* Add limit to PatchChannelMembersNotifyProps
* Add additional unit tests
* Address feedback
* Lowercase decodeJSON
* Have PatchMultipleMembersNotifyProps update LastUpdateAt
* Fix tests that relied on unreliable return order
* Fix i18n
2024-01-11 13:24:52 -05:00
Harrison Healey
59549653a7
MM-56147 Add GetPreferenceForUser plugin API ( #25704 )
...
* MM-56147 Add GetPreferenceForUser plugin API
* Change return type to non-pointer for preference consistency
* Fix merge
2024-01-04 13:50:19 -05:00
Doug Lauder
2d1135ca46
Shared channels plugin APIs for MS Teams plugin ( #25805 )
...
New plugin APIs and hooks for accessing Shared Channels service via plugin.
- RegisterPluginForSharedChannels(opts model.RegisterPluginOpts) (remoteID string, err error)
- UnregisterPluginForSharedChannels(pluginID string) error
- ShareChannel(sc *model.SharedChannel) (*model.SharedChannel, error)
- UpdateSharedChannel(sc *model.SharedChannel) (*model.SharedChannel, error)
- UnshareChannel(channelID string) (unshared bool, err error)
- UpdateSharedChannelCursor(channelID, remoteID string, cusror model.GetPostsSinceForSyncCursor) error
- SyncSharedChannel(channelID string) error
- InviteRemoteToChannel(channelID string, remoteID string, userID string) error
- UninviteRemoteFromChannel(channelID string, remoteID string) error
Hooks
- OnSharedChannelsSyncMsg(msg *model.SyncMsg, rc *model.RemoteCluster) (model.SyncResponse, error)
- OnSharedChannelsPing(rc *model.RemoteCluster) bool
2023-12-22 17:00:27 -05:00
Jesse Hallam
48bf4e9bd8
Fix issue 25390 ( #25403 )
2023-11-10 21:55:33 -04:00
Jesús Espino
c9d49536f8
Adding SetFileSearchableContent plugin API endpoint ( #24355 )
...
* Adding SetFileSearchableContent plugin API endpoint
* Fixing CI problems
* Fixing CI problems
* Fixing CI problems
* Fixing CI problems
* Fixing CI problems
* Exposing it to the public API
* Fix CI problems
* Adding SetSearchableContent to the pluginapi File struct
2023-08-30 13:43:40 -07:00
Christopher Poile
69c11cfe14
MM-53924 - Implement push notifications plugin hook and plugin api method ( #24350 )
...
* Revert "MM-52804 - Implement SendPushNotification plugin api method (#24273 )"
This reverts commit 8418eefb75 .
* Revert "MM-53924 - Implement NotificationWillBePushed plugin hook (#24263 )"
This reverts commit f13a531bca .
* implement NotificationWillBePushed plugin hook
* implement SendPushNotification plugin api method
* move where we're setting post and channel type
* fix comment
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-08-24 12:33:53 -04:00
Christopher Poile
8418eefb75
MM-52804 - Implement SendPushNotification plugin api method ( #24273 )
...
* add SendPushNotification plugin api method
* lint; add testing.Short bc of the sleep
* add interface and generated layers
* add fields to PluginPushNotification; generate mocks
* SendPushNotification -> SendPluginPushNotification; improved comments
* more comments; fix test
* send api.ctx
2023-08-18 13:05:26 -04:00
Agniva De Sarker
efaa6264cc
MM-53032: Fix module path after repo rename ( #23689 )
...
It was a good decision in hindsight to keep the public module as 0.x
because this would have been a breaking change again.
https://mattermost.atlassian.net/browse/MM-53032
```release-note
Changed the Go module path from github.com/mattermost/mattermost-server/server/v8 to github.com/mattermost/mattermost/server/v8.
For the public facing module, it's path is also changed from github.com/mattermost/mattermost-server/server/public to github.com/mattermost/mattermost/server/public
```
2023-06-11 10:54:35 +05:30
Jesse Hallam
bb02b35048
Expose public/ API as submodule ( #23345 )
...
* model -> public/model
* plugin -> public/plugin
* public/model/utils -> public/utils
* platform/shared/mlog -> public/shared/mlog
* platform/shared/i18n -> public/shared/i18n
* platform/shared/markdown -> public/shared/markdown
* platform/services/timezones -> public/shared/timezones
* channels/einterfaces -> einterfaces
* expose public/ submodule
* go mod tidy
* .github: cache-dependency-path, setup-go-work
* modules-tidy for public/ too
* remove old gomodtidy
2023-05-10 13:07:02 -03:00