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

19794 Коммитов

Автор SHA1 Сообщение Дата
Nick Misasi
8f716a61e6 remove Stripe CSP from server (#29306)
* remove Stripe CSP from server

* Update tests

* Fix more tests

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-11-19 10:57:32 -05:00
Saturnino Abril
80289a0d8c Playwright/E2E: Add method to stub notification in Playwright and automate MM-T483 (#29203) 2024-11-19 22:16:33 +08:00
Harshil Sharma
05abb39019 Revert ana ccidental change (#29325) 2024-11-19 17:50:37 +05:30
David Edler
03a4462b19 Fixed errcheck issues in server/channels/app/channel_test.go (#29233)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-19 12:46:27 +01:00
Arya Khochare
ecdf6ad679 1 quick react emoji on sidebar width less than 640px (#29195)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-11-19 16:37:48 +05:30
Harshil Sharma
949e13725f Added precense check for scheduled posts before accessing error code (#29322)
* Added precense check for scheduled posts before accesing error code

* Expliocitelly stated the undefined nature
2024-11-19 10:58:09 +00:00
AulakhHarsh
e5a4b1efba Fix errcheck issues in server/channels/app/platform/busy_test.go (#29318) 2024-11-19 10:45:54 +01:00
Arya Khochare
2d21f44ede Fixed API return type in documentation (#28984)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-19 10:29:17 +01:00
Agniva De Sarker
c6a7a8f628 Fix flaky TestCreatePost and others (#29320)
We don't clear the Redis cache for every test.
This can cause issues because the cache is shared
across test. We fix that with this PR.
```release-note
NONE
```
2024-11-19 14:23:37 +05:30
Rohan Sharma
aa0d117f30 [MM-61101] Fix errcheck issues in server/channels/app/channel.go (#28787)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-19 08:56:23 +01:00
Agniva De Sarker
3ad2c9e666 MM-59935: Add system console UI for Redis (#29143)
https://mattermost.atlassian.net/browse/MM-59935

```release-note
Redis is now available as an alternative cache backend for all enterprise customers. It can be leveraged to run Mattermost at very high scale. There is a new section in config.json that can be updated to use Redis.

CacheSettings.CacheType: This can be either lru or redis. "lru" is the default choice which will use the in-memory cache
store that we use currently.
CacheSettings.RedisAddress: The hostname of the Redis host
CacheSettings.RedisPassword: The password of the Redis host. (Can be left blank if there is no password)
CacheSettings.RedisDB: The database of the Redis host. Typically 0.
CacheSettings.DisableClientCache: This can be set to true if you decide to disable the client-side cache of Redis. Typically there is no need to do this in production, and this is mainly used as a test option.
```

Co-authored-by: Carrie Warner (Mattermost) <74422101+cwarnermm@users.noreply.github.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-11-19 09:46:44 +05:30
Saturnino Abril
db2a8b8d52 Check retries when generating report with action-junit-report (#29313)
* check retries when generating report with action-junit-report

* include flaky summary in github comment

* update with latest v5.0.0

* exp: add check_annotations

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-11-19 07:44:45 +08:00
Devin Binnie
9fffbb68d6 [MM-59375] Use readMultipleChannels to mark as read on server as well (#29280)
* [MM-59375] Use `readMultipleChannels` to mark as read on server as well

* Fix types

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-11-18 10:50:25 -05:00
Weblate (bot)
9e05c075ff Translations update from Mattermost Weblate (#29317)
Automatic Merge
2024-11-18 14:17:13 +01:00
Pablo Vélez
ce3d2ec761 MM-61782 - fix invalid time when changing to today after 9 am (#29287)
* MM-61782 - fix invalid time when changing to today after 9 am

* reset time interval to correct value

* Updated time reset logic

---------

Co-authored-by: Harshil Sharma <harshil.sharma@mattermost.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-11-18 11:25:32 +01:00
Agniva De Sarker
7f032b0b39 MM-61524: Fix flaky test RedisPubSub (#29311)
- We refactor some of the testlib assertion code
and add a new function to just return true or false.

https://mattermost.atlassian.net/browse/MM-61524
```release-note
NONE
```
2024-11-18 14:55:34 +05:30
Mario Vitale
cf5b4610b1 Fix E2E test reporting message for webhook (#29304)
* Fix testcases failing  Webpack compilation
* Fix E2E test report message for webhook
* Demote more unstable tests
* Fix playwright reporting message, better test demotion

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-11-18 09:49:17 +01:00
TheInvincible
c2c2bc1efe update status.go (fix errcheck issue) (#29156)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-18 09:23:11 +01:00
Rohan Sharma
c682f649b5 [MM-61464] Fix errcheck issues in server/channels/app/post_metadata.go (#29204)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-11-18 08:35:50 +01:00
Agniva De Sarker
d6a89c69c2 Fix flaky test TestScheduledPostStore (#29301)
There were couple of errors in the test:
1. UpdatedScheduledPost will automatically
set the ProcessedAt to now internally inside
toUpdateMap. So setting the value from outside
has no effect.
2. The bug was that if it took more than a
milisecond to capture the time, and then
do the internal call, then the Get call
will have a higher value and therefore fail.

Since UpdatedScheduledPost doesn't return
an updated post, so there is no need
to compare the timestamps at all.
```release-note
NONE
```
2024-11-16 14:32:46 +05:30
pRAnaY
504934b612 fixed errcheck in test_serve_metrics_plugin (#29289) 2024-11-15 21:02:17 +01:00
Claudio Costa
324693c13a Add type annotation to generated language files map (#29283) 2024-11-15 14:19:40 -04:00
Harrison Healey
207503185e MM-61012 Add special handling to OS detection for mobile apps (#29139)
* Stop recording unknown platforms as "Windows" in Sessions table

* Add more tests to user_agent_test.go

* MM-61012 Add special handling to OS detection for mobile apps

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-11-15 12:25:28 -05:00
Harrison Healey
9c5c394c56 MM-61318 Don't apply extra CSS to Markdown headings in thread list (#29138) 2024-11-15 12:24:37 -05:00
Harrison Healey
c519bee236 Fixathon: Web app dependency updates part 2 (Sass) (#29037)
* Update sass-loader@16.0.2

* Update sass part 1 (actually update it)

* Update scss files to remove at-charset and use at-use instead of at-import

at-charset hasn't been needed since we switched to dart-sass, and
at-import is now deprecated. Most of this was done using sass-migrator.

We still use at-import for files imported from node_modules, but sass
doesn't seem to complain about that

* Inline at-extend rule that was causing an error

* Remove or inline at-use rules in components package
2024-11-15 12:23:11 -05:00
Harshil Sharma
11ac1f4d19 [MM-61539] Removed duplicate draft icons when no scheduled posts exist and updated draft icon (#29218)
* Removed duplicate draft icons

* Added tooltip

* Restored drafts count icon
2024-11-15 19:20:00 +05:30
Antonis Stamatiou
679e8c1025 fix: Since we reverted testing to free runners we will disable also for the builds (#29297) 2024-11-15 13:12:07 +00:00
Rohan Sharma
8aac1a0e2b [MM-61466] Fix errcheck issues in server/channels/app/post_persistent_notification_test.go (#29207) 2024-11-15 13:55:11 +01:00
Pablo Vélez
cbfe1cd5c7 MM-61721 - adjust scheduled messages channels legend (#29254)
* MM-61721 - adjust scheduled messages channels legend

* consider the thread section of the schmsgs feature
2024-11-15 12:45:44 +01:00
Harshil Sharma
04b68c5cce Fix flaky TestHandleFailedScheduledPosts test (#29292)
* Simplified test

* Restored original timeout duration
2024-11-15 11:45:28 +00:00
Pablo Vélez
ca244b3a40 MM-61536 - enable schmsgs feature on license upgrade (#29274) 2024-11-15 12:44:03 +01:00
Domendra Singh Komra
ee1d6eb887 Fixes errcheck issues in server/channels/api4/team_test.go (#29151)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-15 12:17:38 +01:00
Ivy Gesare
9b15c50418 [MM-61509] Fix errcheck issues in server/channels/app/user.go (#29154)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-15 11:13:15 +01:00
Agniva De Sarker
d83156027a Fix race condition in the web package (#29288)
Essentially applying the fix for https://github.com/mattermost/mattermost/pull/29214
to the web package. It seems like the app.StoreOverrideWithCache
function was never used in this package.

Just a small highlight of how much boilerplate is repeated
in multiple packages
```release-note
NONE
```

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-11-15 11:30:56 +02:00
Harshil Sharma
ca51e33541 Added hover color on split send post button (#29243)
* Added hover color on split send post button

* Handled scheduled posts disabled state
2024-11-15 14:46:53 +05:30
Ibrahim Serdar Acikgoz
0e6ec05d5c [MM-53339] import: dont miss out reactions from replies (#29060) 2024-11-15 09:45:14 +01:00
mas-who
3da77f2f05 GH-29265: Fix errcheck errors in server/channels/app/platform/feature_flags.go (#29269)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-15 09:32:11 +01:00
Agniva De Sarker
8d1c42bc91 MM-61229: Place Redis behind enterprise (#28917)
And re-order the server initialization (AGAIN).

For the nth time, we found several bugs in the initialization
process.

1. filestore.NewExportFileBackend and filestore.NewFileBackend
depended on license, but the license wasn't even loaded until
later!
2. The `ps.sqlStore.UpdateLicense` call also didn't work
because the license wouldn't get loaded. It only accidentally
worked because of `ps.AddLicenseListener` which would update
the license later on. We remove that.

Ideally, we would have loaded the license first and then
checked for redis client, but it's very difficult to do that.
Reasons are explained in the code comment.

So we just wait until the license is loaded, and simply throw an
error later.

https://mattermost.atlassian.net/browse/MM-61229
```release-note
NONE
```
---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-11-15 13:27:23 +05:30
Pablo Vélez
8933756aea MM-61303 - fix accesibility issues with feature scheduled messages (#29247)
* MM-61303 - fix tab accesibility for core-menu-options

* add tabindex options and autofocus for tabs component

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-11-14 23:36:17 +01:00
Mario Vitale
d204083b12 Demote unstable tests (#29250)
* [skip ci] Demote unstable tests
* [skip ci] Further demotions, fix artifact jumbling
2024-11-14 22:38:29 +01:00
yasserfaraazkhan
38823603a3 E2E test for scheduled Draft feature (#28433) 2024-11-15 02:39:35 +05:30
Claudio Costa
3af3af0b25 [MM-60792] Add support for loading experimental (e.g., in progress) languages (#29009)
* Add support for loading experimental (e.g., in progress) languages

* Fix e2e config

* Improve language labels

* Improvements
2024-11-14 15:02:00 -06:00
pRAnaY
7403d29634 [MM-61517] Fix errcheck issues in channels/app/plugin_api_tests/manual.test_http_hijack_plugin (#29190)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-14 13:47:19 -06:00
Ben Schumacher
4620ab6ad3 Skip flaky TestWebHubCloseConnOnDBFail (#29268) 2024-11-14 22:31:34 +05:30
Caleb Roseland
64e814c3a0 MM-61733: Fix system console theme stability (#29257) 2024-11-14 10:00:48 -06:00
Pablo Vélez
fb0582c04e MM-61731 - enhance failed sent system bot message (#29253)
* MM-61731-enhance-failed-sent-system-bot-message

* adjust test and adjust i18n messages

* set back correct value

* improve naming and get channels logic

* hide channel name if the channel is private

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-11-14 16:56:40 +01:00
mas-who
f48fd7b791 GH-28752 fix errcheck lint issues in server/channels/testlib/helper.go (#29260) 2024-11-14 13:13:45 +01:00
Ben Schumacher
18c5fe8f6a Skip flaky TestEditChannelBookmark/a_websockets_event_should_be_fired_as_part_of_editing_a_bookmark (#29267) 2024-11-14 10:19:52 +00:00
Seiya Homma
6e81e8c35c [MM-61512] Fix errcheck issues in server/channels/app/users/helper_test.go (#29167)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-14 10:19:52 +01:00
Elias Nahum
701d1dbd68 optionally exclude threads in direct messages (#29042)
* optionally exclude threads in direct messages

* add excludeDirect option in client4

* Skip flaky test

* refactor double negate

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-11-14 16:57:15 +08:00