Ben Schumacher
5b6b425cfc
[MM-56061] Only render where field in model.AppError when it's present ( #25648 )
...
* Only render where field in model.AppError when it's present
* Remove trailing comma from permission error
2023-12-11 10:27:51 +01:00
Ben Schumacher
0d5a8b8841
Add whitespace linter ( #24855 )
2023-10-11 10:13:36 +02:00
Delaney Sylvans
d61364a24a
[MM-54024] Handle JSON nulls when unmarshalling in api4 ( #24656 )
...
* handle JSON nulls when unmarshalling in api4
* catch more cases of unhandled JSON null
* fix lint issues
* remove unnecessary checks
* add bot tests for null values
* fix bot_test lint
* add channel null tests
* add group null tests
* add notify_admin null tests
---------
Co-authored-by: Mattermost Build <build@mattermost.com >
2023-10-05 19:25:59 +05:30
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
Ben Schumacher
6c82605df0
[MM-49989] Pass a context.Context to Client4 methods ( #22922 )
...
* Migrate all method in model/client4.go to accept a context.Context
* Fix th.*Client
* Fix remaining issues
* Empty commit to triger CI
* Fix test
* Add cancellation test
* Test that returned error is context.Canceled
* Fix bad merge
* Update mmctl code
---------
Co-authored-by: Mattermost Build <build@mattermost.com >
2023-06-06 23:29:29 +02:00
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
Jesse Hallam
89f2ebc836
Channels/api4 testing improvements ( #22938 )
...
* api4/post_test: fix missing TearDown
* api4/plugin_test: dont test timeout, saving 120s
* api4/channel_test: dont try to delete town square
* api4/channel_test: check public channel names deterministically
* api4/file_test: fix darwin assertions on go files
* api4/notify_admin_test: fix expect/actual order
* api4/team_test: make TestGetAllTeams deterministic
* api4/plugin_test: avoid nested test helpers
* api4/post_test: avoid nested test helpers
* api4/websocket_test: externalize log buffer
* testlib/helper: unset common env
* linting issues
* simplify TestGetFileHeaders
* team_test: leverage ElementsMatch
2023-04-20 09:52:59 -03:00
Agniva De Sarker
b200a07881
v8.0 module release ( #22975 )
...
https://mattermost.atlassian.net/browse/MM-52079
```release-note
We upgrade the module version to 8.0. The new module path is github.com/mattermost-server/server/v8.
```
Co-authored-by: Doug Lauder <wiggin77@warpmail.net >
2023-04-18 11:05:28 +05:30
Doug Lauder
c943ed6859
Mono repo -> Master ( #22553 )
...
Combines the following repositories into one:
https://github.com/mattermost/mattermost-server
https://github.com/mattermost/mattermost-webapp
https://github.com/mattermost/focalboard
https://github.com/mattermost/mattermost-plugin-playbooks
2023-03-22 17:22:27 -04:00