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

19169 Коммитов

Автор SHA1 Сообщение Дата
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
Nikhil Kulkarni
6d51307ddf [MM-57711] Convert ./components/latex_inline/latex_inline.tsx from Class Component to Function Component (#28129)
* Changed the class component to functional

* Updated the tests for latex_inline

* Updated the snapshots and tests

* Updated the tests, snapshots and changed div to span

* Updated snapshots and tests

* used renderWithContext instead of render in tests

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-25 11:59:33 +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
Caleb Roseland
e0e0b57b8b MM-54022: add warning when deleting a remote post (#28284) 2024-09-24 12:04:26 -05:00
Harrison Healey
e080f9f5ed Change localizeMessage to take a MessageDescriptor as a parameter (#28141)
* Change localizeAndFormatMessage to take a MessageDescriptor

* Change localizeMessage to take a MessageDescriptor as a parameter

* Update mmjstool to support new localizeMessage signature

* Change mmjstool commit back to master branch
2024-09-24 12:07:51 -04:00
Mario Vitale
8e2dc45841 Re-enable postgres migration tests (#28270)
* Utilize separate image for migration tests
* Re-enable migration tests
* Apply Ibrahim's suggestion
* Apply Saturn's suggestion
2024-09-24 17:50:12 +02:00
Caleb Roseland
355dd18e52 MM-60335: Upgrade to typescript 5.5.4 (#28099)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-24 10:39:35 -05:00
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
yasserfaraazkhan
3e84d20dbe E2E: Add delay to slow down cypress and depict end user's speed. (#28113) 2024-09-24 19:07:17 +05:30
Pablo Vélez
88ad3bb95b MM-60419 - fix styling regression by adding back placeholder injection link element (#28219)
* MM-60419 - fix styling regression by adding back placeholder injection link

* add relevant comment

* add more details to how the link element work

* Update webapp/channels/src/root.html

---------

Co-authored-by: Harrison Healey <harrisonmhealey@gmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-24 15:28:35 +02:00
Pablo Vélez
5c7f99921b MM-60312 - replace office365 logo with entraId new logo (#28234)
* MM-60312 - replace office365 logo with entraId new logo

* rename icon file name

* remove unncessary aria-label in svg inside a button

* remove unnecessary translation

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-24 15:27:04 +02:00
M-ZubairAhmed
df901b132e [MM-60514] Accessing bot_accounts page directly fails to load (#28247) 2024-09-24 10:40:33 +00:00
M-ZubairAhmed
a03972e502 [MM-60303] Changing status in mobile app doesn't change your status in the webapp (#28246) 2024-09-24 10:39:26 +00: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
Saturnino Abril
073e2cecaa use node's native fetch, add ensureLicense flag and update snapshots (#28279) 2024-09-23 21:11:45 +08: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
Mario Vitale
60b38bb91a Enhance reporting, add shellcheck (#28240)
* Enhance reporting, add shellcheck

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-20 15:05:51 +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
Mario Vitale
c27d536ad3 Checkout latest stable pgloader release (#28251)
* Checkout latest stable pgloader release
* Disable Mystql to Postgres migration check
2024-09-19 15:19:42 +02: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
Harshil Sharma
13b6e75fa9 Fixed horizontal alignment of no draft graphic (#28224)
* Fixed horizontal alignment of no draft graphic

* Lint fix
2024-09-19 12:33:11 +05:30
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
Claudio Costa
da24e0c4da Prepackage Calls v1.1.0 (#28220) 2024-09-18 08:20:34 -06:00
Agniva De Sarker
75ed2860ac MM-59934: Add Redis to CI and other improvements (#28164)
- Update library version.
- Added MaxFlush delay to help reduce CPU usage.
- Fall back to LRU cache for the caches which use SCAN.
- Added mattermost-redis and running for all api layer
tests in Postgres.

https://mattermost.atlassian.net/browse/MM-59934
```release-note
NONE
```
2024-09-18 19:13:44 +05:30
Ibrahim Serdar Acikgoz
02dfc2d205 [MM-60510] .github/workflows: add a sync workflow for migration-assist (#28166) 2024-09-18 14:40:26 +02:00
Elias Nahum
bbc281d807 Add MobileExternalBrowser to client config (#28180)
* Add MobileExternalBrowser to client config

* set config MobileExternalBrowser as a pointer

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-18 19:50:07 +08:00
Miguel de la Cruz
7a0019b63a Allow shared channel remotes endpoint to be filtered by confirmation status (#28213)
* Allow shared channel remotes endpoint to be filtered by confirmation status

* Adds tests
2024-09-18 13:36:43 +02:00
goooov
70cb1934e9 [MM-55296] Added warning in Workspace dashboard if Mattermost is running as root (#27999)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-09-18 11:51:50 +02:00
Scott Bishel
c12e6d9e9c MM-60240 Sanitize Channels based on user permissions (#28086)
* initial commit

* add unit tests

* update tests, self review

* update tests to verify something returned.

* update app-layer

* update unit tests

* fix tests

* add check for PermissionSysconsoleReadComplianceDataRetentionPolicy

* revert package-lock

* review suggestions

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-17 15:19:03 -06:00
Caleb Roseland
d99961f106 Channel Bookmarks: adds enable, reordering, and other fixes (MM-56286, MM-59807, MM-59808, MM-60031, MM-59872) (#28098)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-17 11:50:34 -05:00
Ibrahim Serdar Acikgoz
075681a412 [MM-59359] imports/import_validators.go: add openid to auth_service validation (#28082) 2024-09-17 07:13:54 +02:00
Agniva De Sarker
f18323980f MM-60413: Fix issues due to incorrect cache provider (#28181)
We were using a mock cache provider which mixed up LRU caches
with each other. This led to incorrect unmarshalling method calls.

We fix this by using the real cache provider.

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

```release-note
NONE
```
2024-09-17 09:37:54 +05:30
Julien Tant
1909206e16 [MM-59069] Make sure OTP are actual One Time Password (#28074)
Automatic Merge
2024-09-17 00:44:32 +02:00
Alejandro García Montoro
d1ecea4c84 Update /api/v4/cluster/status docs (#28189)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-16 17:51:51 +02:00
Scott Bishel
d1960daa20 update icon color to system color (#28190) 2024-09-16 17:38:39 +02:00
Ibrahim Serdar Acikgoz
ba2bdba6bc server/Makefile: add metrics-plugin to the prepackaged plugins (#28134) 2024-09-16 16:44:12 +02:00
Weblate (bot)
35079452c8 Translations update from Mattermost Weblate (#28198)
Automatic Merge
2024-09-16 16:14:33 +02:00
Ibrahim Serdar Acikgoz
c7ae41b635 [MM-60278] app/config.go: add a nil check for a required field (#28064)
* app/config.go: add a nil check for a required field

* Apply suggestions from code review

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

---------

Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-16 15:24:01 +02:00
armmanvaillancourt
73b14b417e Improve E2E tests README for readability (#27884) 2024-09-16 15:02:46 +02:00
Vishal
3acceeefb2 quote names when using recent mention search (#28119) 2024-09-16 13:58:51 +05:30