mattermost/server/public/plugin/plugintest
Doug Lauder 81d4fe3793
MM-68339: Add XML struct tags and multi-remote registration for shared channels plugin API (#36126)
* Add XML struct tags and multi-remote registration for shared channels plugin API

  Phase 1: Add xml struct tags to model types used in SyncMsg (Post, User,
  Reaction, Status, PostAcknowledgement, FileInfo, SyncResponse,
  MembershipChangeMsg). Add custom MarshalXML/UnmarshalXML for SyncMsg
  (Users map, MentionTransforms map), StringMap, and StringInterface.
  Exclude Post.Metadata, PrevStatus, and server-internal FileInfo fields
  from XML. JSON serialization is unaffected.

  Phase 2: Lift the one-remote-per-plugin constraint so plugins can
  register multiple remotes with different SiteURLs. Add SiteURL field to
  RegisterPluginOpts (defaults to "plugin_<PluginID>" for backward
  compatibility). Add GetAllByPluginID and GetBySiteURL store methods.
  Rewrite registration to dedup by SiteURL instead of PluginID. Add
  UnregisterPluginRemoteForSharedChannels for single-remote removal with
  plugin ownership validation. Validate SiteURL is non-empty in
  RemoteCluster.IsValid. Simplify IsPlugin() to check PluginID only.
2026-04-28 08:53:06 -04:00
..
mock Expose public/ API as submodule (#23345) 2023-05-10 13:07:02 -03:00
api.go MM-68339: Add XML struct tags and multi-remote registration for shared channels plugin API (#36126) 2026-04-28 08:53:06 -04:00
doc.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
driver.go Upgrade Go to 1.24.3 (#31220) 2025-06-10 15:04:57 -03:00
example_hello_user_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
example_reattach_test.go MM-57018: support reattaching plugins (#26421) 2024-04-11 11:10:25 -04:00
hooks.go MM-68016, MM-68017, MM-68018 Add plugin pre-hooks for membership and channel archive (#35731) 2026-03-25 08:45:17 -04:00