Ben Schumacher
6c8235d031
Fix missing errors in mmctl output ( #30567 )
2025-03-28 09:30:41 +01:00
AulakhHarsh
3954d2f346
Add e2e tests for showCommandCmdF ( #30059 )
...
* add e2e tests for showCommandCmdF
* resolve review comments
* add err check
* remove debug statement
---------
Co-authored-by: Mattermost Build <build@mattermost.com >
2025-03-26 18:05:10 +00:00
Julien Tant
48ea65aa5f
[MM-56078] mmctl: assume local mode when no credentials found ( #26215 )
...
* assume local mode when no credentials found
* Use variable
---------
Co-authored-by: Mattermost Build <build@mattermost.com >
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com >
2025-03-26 13:21:21 +01:00
Alejandro García Montoro
350714f390
Bump Go to v1.23.7 ( #30455 )
...
* Update Go version to v1.23.7
* Bump golangci-lint to a version supporting Go 1.23
* Fix golangci-lint warnings
Several rules from gosimple, revive and staticcheck linters were
failing:
- Redefinition of built-in identifiers (max, min, new, recover...)
- Use of printf-like functions with simple strings
- Check for nil slices, when len already takes it into account
* Trigger Build
* Trigger Build
---------
Co-authored-by: Mattermost Build <build@mattermost.com >
2025-03-17 14:22:07 +01:00
Jesse Hallam
fe7d6dcc13
MM-63420: skip flaky tests ( #30457 )
2025-03-12 15:45:15 +00:00
Agniva De Sarker
ac10bb12a5
Revert "Bump Go version to 1.23.6 ( #30242 )" ( #30359 )
...
This reverts commit acbbd4c58d .
2025-02-27 14:58:51 +05:30
Alejandro García Montoro
acbbd4c58d
Bump Go version to 1.23.6 ( #30242 )
...
* Bump Go version to 1.23.6
* Update CodeQL Github action as well
* Use server's Go version for CodeQL action
Co-authored-by: Antonis Stamatiou <stamatiou.antonis@gmail.com >
* Empty commit to trigger CI
* Bump golangci-lint to a version supporting Go 1.23
* Fix golangci-lint warnings
Several rules from gosimple, revive and staticcheck linters were
failing:
- Redefinition of built-in identifiers (max, min, new, recover...)
- Use of printf-like functions with simple strings
- Check for nil slices, when len already takes it into account
---------
Co-authored-by: Antonis Stamatiou <stamatiou.antonis@gmail.com >
Co-authored-by: Mattermost Build <build@mattermost.com >
2025-02-26 16:43:04 +01:00
Agniva De Sarker
0bdae41603
MM-61215: Clarify to use --bypass-upload flag ( #29761 )
...
https://mattermost.atlassian.net/browse/MM-61215
```release-note
NONE
```
Co-authored-by: Mattermost Build <build@mattermost.com >
2025-02-07 22:12:33 +05:30
Christopher Poile
3a73b517e2
[MM-62775] Fix: Bulk export not completing ( #30044 )
...
* do not error on exportFile error
* add tests for local and s3 storage exporting with missing file
* linting
* fix attachment path validation in mmctl
2025-02-04 17:56:11 -05:00
AulakhHarsh
bec3bbf88f
add e2e tests for sendPasswordResetEmail cmd ( #29907 )
2025-01-29 23:29:37 +00:00
Christopher Poile
28c561d643
[MM-62179] Fix: mmctl debug error when setting email ( #29953 )
...
* only GetUserByEmail if arg is an email
* fixing tests
* fix typo
2025-01-29 23:45:11 +01:00
Ben Schumacher
8d4bf4bae0
[MM-54288] Support Packet V2 ( #29403 )
2025-01-13 20:23:09 +01:00
Ibrahim Serdar Acikgoz
424ce2b8db
[MM-59503] export: enable exporting configuration with mmctl ( #28412 )
2024-12-17 10:23:52 +01:00
Jesús Espino
d316df6d28
Replacing interface{} with any everywhere (except generated mocks) ( #29446 )
2024-12-15 21:11:36 +01:00
Vishal
746eb70e01
[MM-60689] Add Webhook ID in the logs ( #28846 )
...
* add webhook id to logs
* Move hook_id context to api level from app level.
* pass errCtx to other references of same app-error-id
---------
Co-authored-by: Mattermost Build <build@mattermost.com >
2024-11-21 13:53:10 +05:30
Seth Foss
2117a4ed30
MM-56632 Display warning if requested mage size exceeds max ( #26022 ) ( #27216 )
2024-11-06 15:45:56 +01:00
Bernhard Fröhlich
d3c18ee369
Fix mmctl build for FreeBSD ( #29112 )
2024-11-05 17:57:15 +01:00
Ibrahim Serdar Acikgoz
f41d2d7774
[MM-58745] export/import: enable exporting and importing bots canonically ( #28214 )
2024-11-01 19:44:30 +01:00
Ben Schumacher
707144d358
[MM-61132] Fix example for mmctl permissions role show command ( #28816 )
2024-10-24 14:03:21 +02:00
Daniel Espino García
2d96053012
Use flags for create post ( #28857 )
...
* Use flags for create post
* Remove unintended file
* Fix unintended change and types
---------
Co-authored-by: Mattermost Build <build@mattermost.com >
2024-10-22 16:00:26 +02:00
Ben Schumacher
2c139a293b
Add missing parenthesis in mmctl webhook list ( #28778 )
...
* Add missing parenthesis in mmctl webhook list
* Use generics in StoreResult
2024-10-17 07:45:10 +02:00
Nicolas Le Cam
845b5806c0
server: Fix typo in Makefile ( #28710 )
2024-10-14 10:32:43 +02:00
Agniva De Sarker
a258fd80b2
Remove remaining references to model.NewXX ( #28678 )
...
And we remove the deprecated functions to force uses
only of the new function.
```release-note
NONE
```
2024-10-10 22:15:22 +05:30
Ben Cooke
b3c7ef0b97
[MM-56073] MMCTL delete post command ( #27539 )
...
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com >
2024-10-08 16:45:31 +02:00
Ibrahim Serdar Acikgoz
076a3cb0d5
cmd/mmctl/user: attempt to improve migrate-auth documentation ( #28330 )
2024-10-01 12:46:06 +02:00
Ben Schumacher
d9e47522a0
Remove unnecessary copies of loop variables ( #28138 )
2024-09-11 16:51:30 +02:00
Ibrahim Serdar Acikgoz
4b3de1861f
[MM-59519] preserve DM/GM unread/read state over export and import ( #27707 )
2024-08-26 17:04:48 +02:00
Matthew Straughn
8ccdca0954
[MM-21473] Review archiveTeamsCmdF function to return an error in case of a failure ( #26622 )
...
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com >
2024-08-13 16:49:40 +02:00
Agniva De Sarker
c3ed07e679
OSF: Used model.NewPointer everywhere ( #27838 )
...
```release-note
NONE
```
2024-08-06 09:15:00 +05:30
Ben Schumacher
1158e6358c
[MM-54593] HA aware Support Packet ( #27598 )
2024-08-03 16:11:13 +02:00
Scott Bishel
08ed72f060
MM-54502 - Update regex to force first character to be alpha ( #24675 )
...
Automatic Merge
2024-07-31 17:27:52 +03:00
Devin Binnie
aa85a13c8f
[MM-58492][MM-58523] Fixed some access control bugs around archived channels by replacing the permission check with HasPermissionToReadChannel ( #27409 )
...
* [MM-58492][MM-58523] Fixed some access control bugs around archived channels by replacing the permission check with HasPermissionToReadChannel
* Fix lint, add ChannelId to uploads
* Fix MMCTL tests and remove unnecessary check for the error message that doesn't work anyways
* Include channel map for getting flagged posts
---------
Co-authored-by: Mattermost Build <build@mattermost.com >
2024-07-29 10:05:20 -04:00
Jesse Hallam
9304c404df
MM-58756: paginate webhooks list ( #27368 )
...
* MM-58756: paginate webhooks list
* show error if webhook list fails
2024-07-17 10:02:07 -03:00
Agniva De Sarker
177389d224
MM-53962: Adding ES8 dependency ( #24399 )
...
* Adding ES8 dependency
```release-note
NONE
```
Co-authored-by: Mattermost Build <build@mattermost.com >
2024-07-11 13:13:31 +05:30
Ben Schumacher
3513d310af
[MM-58003] Allow setting AdvancedLoggingJSON via mmctl ( #27388 )
2024-07-08 21:20:25 +02:00
Miguel de la Cruz
bc49f348bf
Correctly merge plugin configuration on mmctl config patch ( #26647 )
...
* Adds a step to the config patch command to merge plugin configurations
* Fix linter
---------
Co-authored-by: Mattermost Build <build@mattermost.com >
2024-07-08 11:54:40 +02:00
Akis Maziotis
762ff9b96c
[chore] migration of plugin-store ( #27506 )
...
Plugin store is gradually migrated from:
- https://plugins-store.test.mattermost.com
to
- https://plugins.releases.mattermost.com
We reflect that change here
Note: Currently both CDN's are working as expected, to facilitate the mgiration. Upon succesfull migration, https://plugins-store.test.mattermost.com will be decomissioned
2024-07-03 08:23:43 +03:00
Ben Schumacher
213ebc57fb
Print panic message when mmctl panics ( #27390 )
2024-07-02 13:58:37 +02:00
Ben Cooke
9187c772b6
[MM-56074] mmctl job commands ( #26855 )
...
* add job list and update job status command to mmctl
2024-06-17 12:07:05 -04:00
Jesse Hallam
cd51dec6e5
Centralize the GetPackagePath ( #27004 )
2024-05-15 12:05:13 -03:00
Jesse Hallam
630bd40141
Eliminate MM_SERVER_PATH ( #24968 )
2024-05-10 18:13:05 -03:00
Ben Schumacher
09c39cf3ec
[MM-58020] Improve error message of NotFound errors in store ( #26870 )
...
* Improve error message of NotFound errors in store
* update mmctl tests
2024-05-07 15:30:48 +02:00
Ezekiel
b7e830f4a1
Print & Return errors using multierror if an error happens ( #26625 )
...
* Print & Return errors using multierror if an error happens
* Group up errors assertion in test
* Remove trailing newspace
* Remove WrappedErrors loop
---------
Co-authored-by: Mattermost Build <build@mattermost.com >
2024-04-30 22:16:05 +02:00
Ben Schumacher
af031b4d0c
Fix merge error ( #26933 )
2024-04-30 16:02:28 +02:00
Ezekiel
b6a8965969
Gh 19916 mmctl list deactivated users only ( #26646 )
2024-04-30 14:49:50 +02:00
Agniva De Sarker
10a59619c7
MM-57997: Fix bypass-upload in HA mode ( #26850 )
...
Now we throw an error if the server is in HA. This is
because there is no guarantee that the server where the
request lands has access to the file locally.
https://mattermost.atlassian.net/browse/MM-57997
```release-note
NONE
```
2024-04-30 14:14:45 +05:30
Ben Schumacher
32d93fd469
[MM-57743] Enable errcheck linter ( #26723 )
2024-04-29 11:23:01 +02:00
Ben Schumacher
30d450c4d8
Cleanup usage of global logger ( #26835 )
2024-04-24 11:52:33 +02:00
Ben Schumacher
92a6c6517d
[MM-56854] Add shell completion to mmctl user active|deactivate ( #26358 )
...
Co-authored-by: Mattermost Build <build@mattermost.com >
2024-04-24 10:14:20 +02:00
Ben Schumacher
3dae305dc7
[MM-56000] Add LDAP job command to mmctl ( #25633 )
2024-04-22 12:19:53 +02:00