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

19615 Коммитов

Автор SHA1 Сообщение Дата
Daniel Espino García
2e13cbb84d Add post props validation (#29017)
* Add post props validation

* Fix tests and revert deletion

* Fix i18n

* fix tests

* Add some tests

* Fix tests

* Address feedback

* Fix lint

* Fix message attachments
2024-11-21 14:25:02 +01:00
Mario Vitale
01b8359347 Add fixed testcase back in (#29345)
* Add fixed testcase back in
2024-11-21 14:00:23 +01:00
David Edler
d59c5b2608 Fixed errcheck issues in server/channels/app/import_functions_test.go (#29229) 2024-11-21 13:14:07 +01:00
Arya Khochare
12f8ff0e8b disable preview formattingBar disabled (#28727)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-11-21 11:57:45 +01:00
Arya Khochare
45860309b1 Fixed errcheck issues in server/channels/app/plugin_install.go (#29062)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-21 11:30:30 +01:00
Ben Schumacher
5911590ce6 [MM-61858] Fix flaky TestSendNotifications (#29339) 2024-11-21 09:51:59 +01:00
Pablo Vélez
6656a54484 MM-61830 - hide actions to no permissions channels (#29319)
* MM-61830 - hide actions to no permissions channels

* add translations

* add unit tests

* expand functionality to archived channels, update tests

* simplify logic to verify membership
2024-11-21 09:50:10 +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
Harshil Sharma
c98f2e75fb Scheduled post option bot time exclusion (#29330)
* Not displaying users timezone if user is a bot

* Added test

* Added the case of dm with self
2024-11-21 13:30:34 +05:30
Scott Bishel
790103fae0 MM-59540 Ensure user has invite team permission in order to change setting (#28670)
* ensure user has invite team permission in order to change setting

* add tests and handle UI

* lint fixes

* revert changes to invite section input

* update tests

* revert bad merge

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-11-20 16:02:32 -07:00
Ben Schumacher
11b66de686 [MM-61693] Only check for LDAP info if LDAP is enabled during Support Packet generation (#29185) 2024-11-20 17:55:37 +01:00
Arya Khochare
b986f39825 Fixed errcheck issues in server/channels/api4/user_test.go (#28647)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-20 17:28:39 +01:00
Mario Vitale
e80c5006c3 Add E2E retries support for Automation Dashboard (#29328)
* Add E2E retries support for Automation Dashboard
* Disable sneaky cypress testcase
2024-11-20 16:45:12 +01:00
TheoForger
4bb4f9814b [MM-61077] Fix errcheck issues in server/channels/web/static.go (#29285)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-20 14:44:22 +01:00
Rohan Sharma
5de425c298 [MM-61462] Fix errcheck issues in server/channels/app/post.go (#29205)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-20 14:43:48 +01:00
Ivy Gesare
82bd3b6df1 [MM-61762] Fix errcheck issues in server/channels/app/platform/config_test.go (#29323)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-20 12:23:44 +01:00
Antonis Stamatiou
297aab56a0 fix: Fix publish permissions for retries (#29342) 2024-11-20 11:22:23 +00:00
molejnik88
1a095f74c2 [MM-61459] Fix errcheck issues in server/channels/app/plugin_signatur… (#29202) 2024-11-20 10:40:05 +01:00
Agniva De Sarker
5c5276312b Fix race condition in app/channel_test.go (#29331) 2024-11-20 10:28:02 +01:00
Arya Khochare
ed7a38e80c Fixed errcheck issues in server/channels/app/server_test.go (#29199)
* errcheck issues fixed

* NoError to Error

---------

Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-19 12:45:47 -05:00
Domenico Rizzo
f64402e5c5 MM-61519 Fix errcheck in channels/app/plugin_api_tests/test_update_user_auth_plugin/main.go (#29284)
* Removed test_update_user_auth_plugin from golangci

The test_update_user_auth_plugin has been removed from the .golangci.yml configuration file. This change simplifies the linting process by excluding unnecessary files.

* Refactored error handling in user auth tests

The error handling for the 'expectUserAuth' function within the user authentication plugin tests has been refactored. Previously, errors were not being explicitly checked after each call to this function. Now, an error check is performed after each invocation and if an error is found, it's immediately returned. This change improves the robustness of our test suite by ensuring that potential issues are caught and handled appropriately during testing.

* Refactor error handling in UpdateUserAuth

The error handling in the UpdateUserAuth function has been refactored. The variable 'err' was replaced with 'appErr' to better reflect its purpose and improve code readability.

* Updated user authentication in plugin API

The user authentication method in the plugin API has been updated. Previously, it was fetching the user based on a static configuration value. Now, it fetches the user dynamically using the provided userID. This change makes the function more flexible and adaptable to different use cases.

* Updated golangci configuration

Removed a test file from the exclusion list in the golangci.yml configuration. This will allow linting checks to be performed on this previously excluded file, improving code quality and consistency.

* Updated golangci configuration

Removed a test file from the exclusion list in the golangci configuration. This will ensure that our linting tools also cover this previously excluded test file, improving overall code quality checks.

---------

Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-19 11:54:58 -05:00
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