mattermost/server/public/pluginapi
Jesse Hallam e3fbf8711f
MM-68149: Upgrade to Go 1.26.2 (#36418)
* MM-68149: upgrade to Go 1.26.2

Update go directive in go.mod and .go-version.

* MM-68149: replace pointer helpers with Go 1.26 new()

Go 1.26 extends the built-in new() to accept an initial value expression,
making typed-pointer helpers like model.NewPointer(x), bToP(x), and boolPtr(x)
redundant. Replace every call site with new(x) and remove the now-unused
helper functions and their //go:fix inline directives.

* MM-68149: apply go fix for reflect API and format-string changes

- reflect.Ptr → reflect.Pointer (renamed in Go 1.18, deprecated alias removed in 1.26)
- reflect range-over-struct: for i := 0; i < t.NumField(); i++ → for field := range t.Fields()
  and the equivalent for Methods() and interface types
- Fix format-string concatenation and variadic-arg mismatches flagged by go vet

* MM-68149: update JPEG fixtures and test infrastructure for Go 1.26 encoder

Go 1.26 ships a new image/jpeg encoder that produces slightly different output.
Regenerate all JPEG fixture files and switch the comparison helpers from
byte-equality to pixel-level comparison with a small per-channel tolerance,
so minor encoder drift across patch versions is handled automatically.

Add -update-fixtures flag to make it easy to regenerate fixtures after future
major Go upgrades. Document the update procedure in tests/README.md.

* MM-68149: CI check that go fix ./... produces no changes

* Fix real bugs flagged by CodeRabbit review

- group.go: set newGroup.MemberCount not group.MemberCount (member count
  was populated on the wrong variable and lost before publish/return)
- file_test.go: guard compareImage(GetFilePreview) on the preview slice
  length, not the thumbnail slice length (copy-paste error)
- config_test.go: remove duplicate MinimumLength assignment

* fixup! Fix real bugs flagged by CodeRabbit review
2026-05-12 15:59:12 +00:00
..
cluster fix: prevent sql.DB connectionCleaner race and harden flaky tests (#35891) 2026-03-31 16:58:09 -04:00
experimental MM-68149: Upgrade to Go 1.26.2 (#36418) 2026-05-12 15:59:12 +00:00
i18n Enforce use of any instead of interface{} (#30588) 2025-03-31 10:44:34 +02:00
audit.go [MM-68457] Expose audit logging API via pluginapi.Client (#36232) 2026-04-28 13:42:12 +02:00
audit_test.go [MM-68457] Expose audit logging API via pluginapi.Client (#36232) 2026-04-28 13:42:12 +02:00
bot.go Profile image from bytes (#26610) 2024-03-28 10:56:55 +00:00
bot_test.go Profile image from bytes (#26610) 2024-03-28 10:56:55 +00:00
channel.go [MM-64654] Migrate to modern Go features (#31820) 2025-07-18 12:54:51 +02:00
channel_test.go [MM-53968] Includes mattermost-plugin-api into the mono repo (#24235) 2023-08-21 09:50:30 +02:00
client.go [MM-68457] Expose audit logging API via pluginapi.Client (#36232) 2026-04-28 13:42:12 +02:00
cluster.go [MM-53968] Includes mattermost-plugin-api into the mono repo (#24235) 2023-08-21 09:50:30 +02:00
cluster_test.go [MM-53968] Includes mattermost-plugin-api into the mono repo (#24235) 2023-08-21 09:50:30 +02:00
configuration.go Enforce use of any instead of interface{} (#30588) 2025-03-31 10:44:34 +02:00
email.go [MM-53968] Includes mattermost-plugin-api into the mono repo (#24235) 2023-08-21 09:50:30 +02:00
emoji.go [MM-53968] Includes mattermost-plugin-api into the mono repo (#24235) 2023-08-21 09:50:30 +02:00
emoji_test.go [MM-53968] Includes mattermost-plugin-api into the mono repo (#24235) 2023-08-21 09:50:30 +02:00
error.go [MM-53968] Includes mattermost-plugin-api into the mono repo (#24235) 2023-08-21 09:50:30 +02:00
example_client_test.go [MM-53968] Includes mattermost-plugin-api into the mono repo (#24235) 2023-08-21 09:50:30 +02:00
file.go Adding SetFileSearchableContent plugin API endpoint (#24355) 2023-08-30 13:43:40 -07:00
file_test.go [MM-53968] Includes mattermost-plugin-api into the mono repo (#24235) 2023-08-21 09:50:30 +02:00
frontend.go feat: pluginapi: filewillbedownloaded / sendtoastmessage (#34596) 2026-02-16 17:10:39 +01:00
group.go New pluginapi method for syncables (#30790) 2025-05-21 14:44:34 -04:00
kv.go [MM-64654] Migrate to modern Go features (#31820) 2025-07-18 12:54:51 +02:00
kv_memory.go [MM-64654] Migrate to modern Go features (#31820) 2025-07-18 12:54:51 +02:00
kv_memory_test.go updated go to version 1.25.8 (#35817) 2026-03-27 21:11:52 +01:00
kv_test.go [MM-64654] Migrate to modern Go features (#31820) 2025-07-18 12:54:51 +02:00
license.go Renamed premium SKU to Enterprise Advanced (#30882) 2025-05-02 11:34:46 +05:30
license_test.go MM-68149: Upgrade to Go 1.26.2 (#36418) 2026-05-12 15:59:12 +00:00
log.go Enforce use of any instead of interface{} (#30588) 2025-03-31 10:44:34 +02:00
logrus.go Enforce use of any instead of interface{} (#30588) 2025-03-31 10:44:34 +02:00
logrus_test.go [MM-53968] Includes mattermost-plugin-api into the mono repo (#24235) 2023-08-21 09:50:30 +02:00
oauth.go [MM-53968] Includes mattermost-plugin-api into the mono repo (#24235) 2023-08-21 09:50:30 +02:00
plugin_test.go [MM-54014] Run tests in public/... (#24320) 2023-08-22 12:48:53 +02:00
plugins.go [MM-53968] Includes mattermost-plugin-api into the mono repo (#24235) 2023-08-21 09:50:30 +02:00
post.go [MM-64654] Migrate to modern Go features (#31820) 2025-07-18 12:54:51 +02:00
post_test.go [MM-62427] Add message attachments validation (#30180) 2025-03-20 12:53:50 +01:00
property.go [MM-68100] Implement Linked Properties for the Property System (#35808) 2026-04-21 18:59:12 +00:00
property_test.go Change properties search signature to support multiple TargetIDs (#33873) 2025-09-11 22:56:01 +00:00
session.go [MM-53968] Includes mattermost-plugin-api into the mono repo (#24235) 2023-08-21 09:50:30 +02:00
slashcommand.go [MM-53968] Includes mattermost-plugin-api into the mono repo (#24235) 2023-08-21 09:50:30 +02:00
store.go MM-63368: Remove MySQL (#33458) 2025-07-22 20:40:55 +05:30
store_test.go MM-68149: Upgrade to Go 1.26.2 (#36418) 2026-05-12 15:59:12 +00:00
system.go MM-67793: Remove dependency on blang/semver/v4 (#35742) 2026-03-25 13:41:33 +00:00
system_test.go Migrate from gopkg.in/yaml.v3 to github.com/goccy/go-yaml (#34510) 2025-11-18 08:52:05 +01:00
team.go [MM-53968] Includes mattermost-plugin-api into the mono repo (#24235) 2023-08-21 09:50:30 +02:00
team_test.go [MM-53968] Includes mattermost-plugin-api into the mono repo (#24235) 2023-08-21 09:50:30 +02:00
user.go PluginAPI: add ability to retrieve users by ids (#26936) 2024-05-15 07:06:40 -07:00
user_test.go PluginAPI: add ability to retrieve users by ids (#26936) 2024-05-15 07:06:40 -07:00
utils.go [MM-64654] Migrate to modern Go features (#31820) 2025-07-18 12:54:51 +02:00
utils_test.go [MM-53968] Includes mattermost-plugin-api into the mono repo (#24235) 2023-08-21 09:50:30 +02:00