Commit Graph
1448 Commits
Author SHA1 Message Date
Agniva De Sarker df08325ef6 store: use ToSQL (#28681)
- Improve some code to use ToSQL
- Fix a bug in SqlReactionStore.GetForPostSince
where OrderBy wasn't added properly. Added a test.
- Improve a method to return a slice rather than
pass a pointer to slice.

```release-note
NONE
```
2024-10-11 09:11:38 +05:30
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
Agniva De Sarker 3db139f746 Removed the max/min family of functions (#28679)
They are in-built in Go now
```release-note
NONE
```
2024-10-10 22:14:21 +05:30
enzowritescode 991debeb0b Change log level inside sendMail() (#28669)
* Change log level inside sendMail()
2024-10-09 14:01:01 -06:00
Pablo VélezandMattermost Build 6cafd45fc9 MM 57516 - deactivate actions to ldap users (#28199)
* MM-57516 - restrict activation/deactivation over ldap users

* Add unit tests

* refactor test to unify repeated actions

* add disable actions in user details too

* migrate test to use react-testing-library

* add new ldap user test and fix other existing tests

* restrict ldap users status management via api

* use correct server status and update tests

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-09 18:59:53 +02:00
Arya Khochare ac38f5f751 Errcheck issues fixed in server/channels/api4/brand.go (#28362)
* errcheck proper error handling

* write response err check log

* resolving conflicts and io.Copy error handling
2024-10-09 18:43:34 +02:00
Rohan SharmaandBen Schumacher e41ab1a3b8 fix: plugin errcheck issues (#28517)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-09 14:56:22 +02:00
0f200adbe0 MM-58349: Shared Channels in System Console (#28116)
Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>
2024-10-09 07:53:19 -05:00
Rohan SharmaandMattermost Build 02e6851603 fix: status test errcheck issues (#28541)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-09 14:51:19 +02:00
Arya KhochareandBen Schumacher 90ceb4a5e3 Fixed errcheck issues in server/channels/api4/usage_test.go (#28644)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-09 13:28:36 +02:00
TheInvincibleandBen Schumacher b49d86c24d fix errcheck issue (#28548)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-09 13:27:39 +02:00
Rohan SharmaandBen Schumacher 65bb1a3427 fix: plugin test errcheck issues (#28531)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-09 12:26:23 +02:00
Rohan Sharma 68404f2f33 fix: scheme errcheck issues (#28543) 2024-10-09 11:58:16 +02:00
Arya Khochare d1962e123e [MM-60932] Fix errcheck issues in server/channels/api4/usage.go (#28641) 2024-10-09 11:53:25 +02:00
Elias Nahum e808c14a73 Fix the response type of create bookmark in go client (#28574) 2024-10-09 08:46:43 +08:00
JohnsonandBen Schumacher 33af22b2d3 Integration action test (#28561)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-08 15:41:01 +00:00
Miguel de la CruzandMattermost Build 3466e6f5d8 Avoid using token from sanitized remote cluster (#28335)
After creating a remote cluster, we were using its token field to
generate the remote invite. As we're going to return that remote
cluster in the response, we sanitize the entity, emptying the token
field before generating the invite, and causing it not to contain the
token itself.

This changes store the token in an independent variable to avoid
mutating it as part of the sanitization.

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-08 16:49:33 +02:00
Ben CookeandBen Schumacher 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
TheInvincibleandBen Schumacher a671f80d2c Fix errcheck issue for saml.go file (#28546)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-08 14:13:59 +00:00
Rohan Sharma 2b723099a6 fix: shared channel test errcheck issues (#28551)
* fix: shared channel test errcheck issues
2024-10-08 09:45:43 -04:00
Arya Khochare f0918e1c01 errcheck issues fixed (#28609) 2024-10-08 12:23:08 +02:00
Diamond RiveroandBen Schumacher 71d98443c3 Fix Errcheck issues in server/channels/api4/export.go (#28407)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-08 10:47:17 +02:00
Arya KhochareandBen Schumacher ba02101bcf Fixed errcheck issues in server/channels/api4/group_local.go (#28417)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-08 10:47:01 +02:00
Rohan SharmaandBen Schumacher 9d6adbfea2 fix: role errcheck issues (#28544)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-08 10:46:22 +02:00
TheInvincibleandMattermost Build 1d431e72ac Update emoji_test.go (fix errcheck issue) (#28440)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-08 09:31:26 +02:00
Rohan Sharma 845159d501 fix: reaction errcheck issues (#28513) 2024-10-08 09:25:34 +02:00
Rohan Sharma 1f3eab8adb fix: team errcheck issues (#28550) 2024-10-08 09:23:53 +02:00
Arya Khochare 1669a0869f errcheck issues fixed (#28555) 2024-10-07 21:20:18 +02:00
Arya Khochare 6837b31fb1 errcheck issues fixed (#28556) 2024-10-07 21:18:20 +02:00
Arya KhochareandIbrahim Serdar Acikgoz 82929d86ab Errcheck issues fixed (#28409)
Co-authored-by: Ibrahim Serdar Acikgoz <serdaracikgoz86@gmail.com>
2024-10-07 21:17:21 +02:00
CarlssonFilipandBen Schumacher b8b3f9b012 [GH-28396] Fixed errcheck issues in server/channels/api4/ip_filtering.go (#28441)
* Fixed errcheck issues in server/channels/api4/ip_filtering.go

* Added separate go routine to SendIPFiltersChangedEmail and removed redundant return

* Added import for mlog

* Changed from returning error to logging it

---------

Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-07 21:03:12 +02:00
Rohan SharmaandMattermost Build 7af408679e Fix: emoji errcheck issues (#28437)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-07 21:02:16 +02:00
Rohan SharmaandMattermost Build 9e0d629ab1 fix: team local errcheck issues (#28538)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-07 21:01:13 +02:00
Jesse Hallam e9968792b0 Emit license details to logs when added or removed (#28333)
* log when changing the license

* handle test licenses without features or customer data

* skip logLicense if logger not setup
2024-10-07 12:48:03 -03:00
Arya Khochare 9b6d2be129 Errcheck issues fixed (#28345) 2024-10-07 16:49:27 +02:00
Rohan SharmaandBen Schumacher a2acee5280 fix: system errcheck issues (#28537)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-07 13:37:46 +00:00
Rohan SharmaandBen Schumacher 2b7b4100d2 fix: system local errcheck issues (#28539)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-07 11:39:06 +00:00
Guillermo VayáandMattermost Build 662e59865c MM-59360 add telemetry for paid features related to guests (#28295)
* add telemetry for paid features related to guests

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-07 13:30:19 +02:00
Rohan Sharma 18388a8c64 fix: shared channel errcheck issues (#28542) 2024-10-07 12:46:00 +02:00
Arya Khochare 344e76287f Fixed errcheck issues in server/channels/api4/license_test.go (#28557) 2024-10-07 12:41:13 +02:00
Rohan SharmaandMattermost Build 13959b024f fix: reaction test errcheck issues (#28516)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-07 10:31:06 +02:00
Arya Khochare af9eb197ae Fixed errcheck issues in server/channels/api4/group.go (#28404) 2024-10-05 12:23:29 +02:00
Ben Schumacher 88a805351e [MM-57991] Add log message about deleted rows from Data Retention job (#26847) 2024-10-05 11:39:43 +02:00
Arya Khochare 5a7385295c errcheck issues fixed (#28475) 2024-10-04 19:12:32 +02:00
Arya Khochare 0a92eb6363 errcheck issues fixed (#28418) 2024-10-04 17:51:38 +02:00
Nils ac30b9d468 Fixed errcheck in server/channel/api4/job.go (#28420) 2024-10-04 17:50:14 +02:00
Arya Khochare b859ca2d90 errcheck issues fixed (#28416) 2024-10-04 09:35:53 +02:00
Arya Khochare 7e62197520 errcheck issues fixed (#28476) 2024-10-04 09:34:29 +02:00
fume4mattermostandFume 5f48a359ca [MM-56033]Added unit tests for UpdateUserCustomStatus and RemoveUserCustomStatu… (#28216)
* added unit tests for UpdateUserCustomStatus and RemoveUserCustomStatus functions

* stylistic improvements in status endpoint tests

* linting fix

---------

Co-authored-by: Fume <contact@fumedev.com>
2024-10-04 13:02:53 +05:30
Arya KhochareandMattermost Build 295ae8baed Errcheck issues fixed (#28406)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-04 07:14:48 +02:00