Граф коммитов

1407 Коммитов

Автор SHA1 Сообщение Дата
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
fume4mattermost
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 Khochare
295ae8baed Errcheck issues fixed (#28406)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-04 07:14:48 +02:00
Arya Khochare
cab714a629 errcheck issues fixed (#28477) 2024-10-04 07:11:24 +02:00
Ben Schumacher
f3eee28f56 [MM-60253] Avoid unnecessary cache clearing during LDAP sync (#28300) 2024-10-03 16:26:53 +02:00
Daniel Espino García
da6b40665a Avoid resetting device id when removed from push proxy (#28269)
* Avoid resetting device id when removed from push proxy

* Fix test and minor improvements

* Add MySQL support
2024-10-03 10:09:25 +02:00
unified-ci-app[bot]
b7f337a87c Update latest minor version to 10.2.0 (#28429)
Automatic Merge
2024-10-03 01:14:32 +02:00
Harrison Healey
394f625bcb MM-50347 Make desktop app landing page optional (#28421)
* fix: Make desktop app landing page optional

* Update i18n strings

* Fix linting and unit test

---------

Co-authored-by: Kiran <kiran@krinati.co>
2024-10-02 15:48:54 -04:00
Scott Bishel
0048723ccd MM-60679 - Validate playbook plugin version, based on license (#28366)
Automatic Merge
2024-10-02 20:14:32 +02:00
Ibrahim Serdar Acikgoz
1ea854438a server/Makefile: bump mattermost-metrics-plugin version (#28413)
Automatic Merge
2024-10-02 18:14:32 +02:00
Arya Khochare
9c2a9c7f26 Fixed errcheck issues (#28405) 2024-10-02 15:32:49 +02:00
Pablo Vélez
1690e48db6 MM 60222 - apply filter to export csv (#28212)
* MM-60222_apply filter to export csv

* get the report exporting with the filters ready

* add unit tests

* cover one more file with some tests

* style the confirm modal note

* add translations

* remove unnecessary print line

* disable export button if there is no data to export

* fix linter issues

* fix linter errors

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-02 12:23:39 +02:00
Arya Khochare
2b03afdfc2 Fixed errcheck issues (#28403) 2024-10-02 12:16:10 +02:00
Nils
887c3a800d [GH-28355] Fixed errcheck issues in server/channels/api4/channel_category.go (#28357) 2024-10-02 09:50:43 +02:00
Miguel de la Cruz
acc9093072 Error when generating invite codes for a confirmed remote cluster (#28337) 2024-10-02 00:37:04 -05:00
Harrison Healey
76021c76a0 MM-60351 Use oEmbed for YouTube links (#28312)
* Split up handling of permalinks and other links in getLinkMetadata

* MM-60351 Use oEmbed for YouTube links

* Explicitly request json from the oEmbed provider

* Fix linter

* Fix type of CacheAge field

* Address feedback
2024-10-01 14:06:45 -04:00
Arya Khochare
23d06d4520 Errcheck issues fixed in server/channels/api4/brand_test.go (#28364) 2024-10-01 16:34:01 +02:00
CarlssonFilip
c5a504883d [GH-28353] Fix errcheck issues in server/channels/api4/channel_bookmark_test.go (#28358) 2024-10-01 13:02:56 +02:00
Ibrahim Serdar Acikgoz
076a3cb0d5 cmd/mmctl/user: attempt to improve migrate-auth documentation (#28330) 2024-10-01 12:46:06 +02:00
Weblate (bot)
f190375403 Translations update from Mattermost Weblate (#28356)
Automatic Merge
2024-09-30 16:14:32 +02:00
Ben Schumacher
a30e19cce8 Explicitly list ignored files for errcheck linter (#28329) 2024-09-30 08:54:51 +02:00
Julien Tant
d1cad8c692 add reuse check on update MFA (#28304) 2024-09-27 17:35:36 +02:00
Ben Schumacher
2b426573cd [MM-60619] Annotate cluster logs messages (#28268) 2024-09-27 09:17:16 +02:00
Devin Binnie
d58b048965 [MM-60603] Don't follow threads when marking them as read on focus (#28263)
* [MM-60603] Don't follow threads when marking them as read on focus

* Fix tests

* Fix lint

* Fix the original bug in the API call
2024-09-26 09:02:11 -04:00
Ben Schumacher
3428cd15b6 [MM-60648] Don't start server until all routes are registered (#28291) 2024-09-26 13:57:48 +02:00
Ben Schumacher
20ed58906a [MM-60307] Check if session is nil before calling UpdateLastActivityAtIfNeeded (#28254) 2024-09-26 13:52:59 +02:00
Agniva De Sarker
9900151fb6 Remove some dead code from Redis (#28313)
I forgot to remove this method in my
earlier refactoring. A bit weird that no linter
caught this. 🤔

```release-note
NONE
```
2024-09-25 22:05:46 +05:30
Daniel Espino García
1e8ef05338 Fix missing profile messages on notification dashboards (#28297) 2024-09-25 12:07:24 +02:00
Agniva De Sarker
5a511a14ee MM-60606: Respect allowFromCache flag in Channelstore.GetMany (#28290)
Setting the flag to false never worked, and it was never
caught because there wasn't an instance when this method
was called with allowFromCache=false.

https://mattermost.atlassian.net/browse/MM-60606

```release-note
NONE
```
2024-09-25 13:54:57 +05:30
Agniva De Sarker
9447cb9074 MM-60171: Using a generic function to allocate values (#28245)
We sprinkle a bit of generic magic to refactor a lot
of duplicate code.

To avoid exposing unnecessary code, I duplicated the function
twice. But let me know if you have strong opinions about this.

https://mattermost.atlassian.net/browse/MM-60171

```release-note
NONE
```


---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-25 10:00:14 +05:30
Harrison Healey
46cad5c552 MM-59854 Fully allow at mentions in message attachment field values and add E2E tests (#28018)
* Add descriptions to test cases for getNeededAtMentionedUsernames

* MM-59854 Load users who are at-mentioned in message attachment fields

* MM-59854 Add server support for at-mentioning users in message attachment fields

* Migrate support/external_commands from JS to TS

* MM-59584 Ensure that at-mentions never show in other message attachment fields

* MM-59584 Add E2E tests for how we load users based on at mentions

* Use new E2E test helpers in other places

* Update snapshots
2024-09-24 09:41:03 -04:00
Daniel Espino García
040838b056 Add metrics for mobile versions snapshots (#28191)
* Add metrics for mobile versions snapshots

* Add notifications disabled and fix lint

* Address feedback

* Verify all references to JobTypeActiveUsers

* Fix typos

* Improve platform values

* Add test and MySQL support
2024-09-24 12:02:19 +02:00
Agniva De Sarker
d45a54a8e9 MM-60480: Do not invalidate channel member cache on login (#28143)
On user login, we were aggressively clearing the channel member
cache when it wasn't necessary. There is no channel membership
info that is changing on a user login.

Additionally, we fix some more issues with pointer passing
to the cache. It's a known problem that our value passing
style isn't consistent when we fetch items from cache.
Sometimes we pass pointer-to-pointer, sometimes it's just a
pointer. This is also the reason for https://github.com/mattermost/mattermost/pull/27830.

We fix 2 such cases where we passed pointer-to-pointer
but didn't handle the special case inside the cache.
This time, we actually fix it in the app layer instead
of the cache layer and also add a test for good measure.

https://mattermost.atlassian.net/browse/MM-60480

```release-note
NONE
```

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-24 13:01:19 +05:30
Weblate (bot)
b6f83c8438 Translations update from Mattermost Weblate (#28282)
Automatic Merge
2024-09-23 16:14:32 +02:00
Pablo Vélez
b798dd8106 MM-59950 - add deletedAt column to users export (#28137) 2024-09-23 15:15:50 +02:00
Guillermo Vayá
343746c4b6 MM-59954 Community plugins telemetry (#28226)
* add known plugins to the list of possible plugins to be located

* improve testing and fix config data collection

* Improve testing

* remove empty lines

* make linter happy

* go through all plugins
2024-09-23 12:59:19 +02:00
Ben Schumacher
87ad717434 [MM-57194] Don't return config values from plugins that are not installed (#28260) 2024-09-23 10:17:07 +02:00
Guillermo Vayá
dfa1d1027b MM-60415 ignore deactivated bots (#28184)
* ignore bot accounts when counting deactivated users

* moved query to squirrel

Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>

* set is null right

* Run a different query depending on driver due to performance reasons.

---------

Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-20 13:02:09 +02:00
Alejandro García Montoro
9b368b9214 MM58746: Bump yuin/goldmark dependency (#28250)
* Bump yuin/goldmark dependency to latest version

* Add docs to modules-tidy make rule

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-20 12:08:35 +02:00
Miguel de la Cruz
8a735f1b03 Add a specific error when inviting a remote cluster to a remote channel (#28255) 2024-09-19 14:27:41 -05:00
Ben Schumacher
40d2ae97f1 [MM-60307] Fix racy use of session in NewWebConn (#28195) 2024-09-19 14:10:17 +02:00
Caleb Roseland
d6c11d1d26 get channel id for bookmark files in ES/OS (#28221)
Co-authored-by: Miguel de la Cruz <mgdelacroix@gmail.com>
2024-09-19 11:57:10 +02:00
Miguel de la Cruz
987a25b4d0 Adds a make target and a database for a shared channels node (#28238)
This PR allows to run a different Mattermost instance in port :8066
using the `make run-node` target. This instance reuses the frontend
files compiled for the main development instance, has its own database
and local mode enabled through environment variables, and for the rest
of the configuration simply takes whatever properties are set in the
`config.json` file.

This target is specially useful to run a Shared Channels development
environment, compiling first the frontend and then running `make
run-server` and `make run-node` side by side, later connecting both
and testing Shared Channels features.
2024-09-19 10:00:56 +02:00
Agniva De Sarker
7be7a47fd3 MM-59933: Increment/Decrement the member count directly (#28196)
While using Redis, there is no need to invalidate
and then update the new count from the DB when
we know the exact number it is going to be incremented
or decremented by.

In that case, we can directly use Redis primitives
to update the cache and prevent yet another DB query.

To achieve this, we modify the LRU cache get/set
paths slightly to not marshal into byte slices
for *int64 values. This is needed for Redis to operate
the INCR/DECR commands.

https://mattermost.atlassian.net/browse/MM-59933

```release-note
NONE
```

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-19 09:38:38 +05:30