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

19545 Коммитов

Автор SHA1 Сообщение Дата
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
Arya Khochare
38e2f67583 Fixed errcheck issues in server/channels/app/slashcommands/command_loadtest.go (#29169)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-14 09:51:53 +01:00
TheInvincible
45235a0ef6 Update file_info.go (fix errcheck issue) (#28966)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-14 08:42:32 +01:00
Sumedha Koranga
e7e1d7d7ce [MM-61513] Fix errcheck issues in channels/app/users/users_test.go fixes #29179 (#29188)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-14 08:34:41 +01:00
Alexandre Sollier
3ed337b34d [MM-61511] Fix errcheck issues in channels/app/user_viewmembers_test.go (#29149) 2024-11-14 08:31:00 +01:00
Domenico Rizzo
6f57b4f53b MM-61503 Updated golangci.yml configuration (#29249)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-14 08:28:54 +01:00
Elias Nahum
83c3d4385a MM-60481/MM-61301 fix bookmarks flaky tests (#29141)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-11-14 12:34:10 +08:00
Agniva De Sarker
63c959f1d3 Fail fast while connecting to replicas (#29212)
Since we have the auto-retry mechanism for replicas,
there is not much benefit in trying 5 times before deciding
to move on.

In the earlier model, we would fail the server startup,
so it made sense to check as many times as possible.

Also reducing the sleep interval so that we can improve
the boot up time in case of a bad replica.
```release-note
NONE
```

* fix: Add job name to the publish report step

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Antonis Stamatiou <stamatiou.antonis@gmail.com>
2024-11-14 09:45:52 +05:30
Arya Khochare
94036947c8 Fixed errcheck issues in server/channels/app/session_test.go (#29198) 2024-11-13 20:32:25 +01:00
TheInvincible
11edef7af0 update command_remove_test.go (fix errcheck issue) (#29177)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-13 20:21:49 +01:00
Alenoda
891b2144df Fix errcheck issues in server/channels/app/login_test (#29119)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-13 20:08:23 +01:00
Arya Khochare
a19ec14967 Fixed errcheck issues in server/channels/app/product_notices_test.go (#29194) 2024-11-13 20:04:22 +01:00
Harshil Sharma
80f69a9c84 Skipping flaky TestClientGetOutgoingOAuthConnection test (#29178) 2024-11-13 12:02:53 +00:00
Harshil Sharma
de6701fb99 Scheduled post left gm fix (#29211)
* Fixed a bug where GM member count shows up as 0 in scheduled posts

* Fixed a bug where GM member count shows up as 0 in scheduled posts

* Lint fix

* Added wrap̛ntl to channels

* lint fix

* Used existing renderer

* Removed ubnused store
2024-11-13 11:03:25 +00:00
Ben Schumacher
053d0b5f0a [MM-61140] Allow plugins to add Support Packet data without UI elements (#28833)
Co-authored-by: Ibrahim Serdar Acikgoz <serdaracikgoz86@gmail.com>
2024-11-13 11:20:39 +01:00
Agniva De Sarker
9fed818200 Update ES template strings (#29209)
Use a template variable to distinguish between Elasticsearch
and Opensearch
```release-note
NONE
```
2024-11-13 15:22:41 +05:30
Harshil Sharma
da937b0598 Scheudled post show more (#29226)
* Added show more to long draft adn scheduled post

* Added show more to long draft adn scheduled post

* Fixed layout

* Updated snapshots
2024-11-13 14:44:11 +05:30
Harshil Sharma
b0ee1627f0 time picker date reset fix (#29215) 2024-11-13 12:47:48 +05:30
Harshil Sharma
c79a8a8b4a MM-61484 - Deleting scheduled posts when permanently deleting a user (#29152)
* Deleting scheduled posts when permanently deleting a user

* Updated tests

* CI

* Testing CI

* Restored a test change

* Skipping flaky test
2024-11-13 12:41:31 +05:30
Nadav Tasher
5e47c97db4 Added support for S3 storage classes (#28319)
* Added support for S3 storage classes

* Added missing translations for S3 storage class

* Changed default storage class values to preserve original behaviour

* Changed storage class description and example

* Fix translations ordering

* Change configuration defaults to empty strings

* Remove redundant empty string check

* Validate storage class variable against constants from S3 API docs

* Validate export storage class against constants

* Use slices for config validation

* Applied patch for translation ordering
2024-11-13 12:29:44 +05:30
Ben Schumacher
8c3f4a5818 Fix broken TestGetPost (#29228)
* Fix broken TestGetPost

* Skip TestPromoteGuestToUser/websocket_update_user_event

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-11-13 10:13:12 +05:30
Ivy Gesare
4a92e9f9bf [MM-61516] Fix errcheck issues in server/channels/app/plugin_api_test.go (#29220) 2024-11-12 15:56:35 -05:00
Rohan Sharma
73f1383f5f [MM-61465] Fix errcheck issues in server/channels/app/post_metadata_test.go (#29206) 2024-11-12 15:54:51 -05:00
Claudio Costa
c2c2a1eaba Prepackage Calls v1.3.0 (#29232) 2024-11-12 12:15:39 -06:00
Mario Vitale
572584937c Demote unstable tests from daily run (#29147)
* Demote unstable tests from daily run

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-11-12 12:04:32 +01:00
Pablo Vélez
4e0fc5734c MM - 60506 - notify user failed scheduled msgs (#29208)
* MM-60506 - notify user for failed scheduled messages

* add unit tests for handleFailedScheduledMessages and send system-bot message

* fix vet issues

* adjust test for vet report

* make sure to send the message to every user there was a failed message

---------

Co-authored-by: Harshil Sharma <harshil.sharma@mattermost.com>
2024-11-12 11:33:29 +01:00
Arya Khochare
5eef415a39 Fixed errcheck issues in server/channels/api4/post_test.go (#29201) 2024-11-12 10:07:19 +01:00
Harshil Sharma
7c3d71c089 Scheudled post test enhancement (#29187)
* Added test for user beloonging to channel but not team

* Added test for read onmly channel

* Added test for fetching scheduled posts for team you don;'t belong to

* Added more tests

* test enhancements

* CI
2024-11-12 12:29:29 +05:30
Harshil Sharma
56260e93d4 Added debug settings for testing and e2e tests (#29175) 2024-11-12 11:26:14 +05:30
Harshil Sharma
64bf13f250 MM-60141 - Scheduled post copy text option (#29123)
* verified available actions on scheduled posts

* Review fixes

* Added copy text option for scheudled posts

* Added check for archived channel and deactivated DM

* Import optimisation
2024-11-12 05:23:20 +00:00
Agniva De Sarker
847f42fd4c MM-61700: Fix race conditions from web_hub initialization (#29214)
The Store variable was written to _after_ the server
started which was causing the race.

We simply move it to before we start the server.

While we are here, we fix yet another race condition
which was unrelated, but doing it in one sweep. This
was related to the user props access. When a user is updated,
there was 3 ws events that get sent out, 2 were deep-copied
whereas 1 was not. This led to race condition in postgres
binary-param mode where we were trying to set the user props.



https://mattermost.atlassian.net/browse/MM-61700
2024-11-12 08:46:18 +05:30
Pablo Vélez
108117ba4d ICU Fixathon - clean up React.Fragment old syntax (#29006)
* ICU Fixathon - clean up React.Fragment old syntax

* enforce use of fragment shorthand over React.Fragment

* use short version of fragment
2024-11-11 18:05:47 +01:00
Arya Khochare
2461d0fed6 errcheck issues fixed (#29196) 2024-11-11 16:55:10 +01:00
Weblate (bot)
89aba8e899 Translations update from Mattermost Weblate (#29219)
Automatic Merge
2024-11-11 15:17:13 +01:00
unified-ci-app[bot]
9776c42979 chore: Update NOTICE.txt file with updated dependencies (#29216)
Automatic Merge
2024-11-11 14:47:12 +01:00
dependabot[bot]
b245a82392 Bump the github-actions-updates group across 1 directory with 3 updates (#29217)
Bumps the github-actions-updates group with 3 updates in the / directory: [github/codeql-action](https://github.com/github/codeql-action), [tj-actions/changed-files](https://github.com/tj-actions/changed-files) and [mikepenz/action-junit-report](https://github.com/mikepenz/action-junit-report).


Updates `github/codeql-action` from 3.27.0 to 3.27.1
- [Release notes](https://github.com/github/codeql-action/releases)
- [Commits](https://github.com/github/codeql-action/compare/v3.27.0...v3.27.1)

Updates `tj-actions/changed-files` from 45.0.3 to 45.0.4
- [Release notes](https://github.com/tj-actions/changed-files/releases)
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md)
- [Commits](c3a1bb2c99...4edd678ac3)

Updates `mikepenz/action-junit-report` from 4.3.1 to 5
- [Release notes](https://github.com/mikepenz/action-junit-report/releases)
- [Commits](db71d41eb7...ec3a351c13)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions-updates
- dependency-name: tj-actions/changed-files
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions-updates
- dependency-name: mikepenz/action-junit-report
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions-updates
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-11 12:49:28 +02:00
Ben Schumacher
d33d7a5ec7 [MM-61441] Don't overwrite plugin secret settings with fake values (#29029) 2024-11-11 11:43:26 +01:00
Daniel Espino García
33005922c9 Add component library (#28826)
* Add component library

* Fix lint and add different enable logic

* Fix test

* Address feedback and add background context

* Fix lint

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-11-11 11:06:08 +01:00
Arya Khochare
ead2a7c018 Fixed errcheck issues in server/channels/app/imaging/decode.go (#28937) 2024-11-08 15:39:03 +01:00
Daniel Espino García
118d0346ee Add test notification tool (#28334)
* Add test notification tool

* Add frontend styles

* Remove option from admin view

* Refactor create post and add translations

* Fix several CI errors

* Fix API and frontend snapshots

* Refactor trailing and leading icon on buttons

* Add different button states

* i18n-extract

* Fix wrong text

* Add tests

* Fix wrong string

* Fix test

* feat: E2E send test notifications (#28371)

* Refactor send desktop notification

* Address rest of the feedback

* Fix tests

* Add correct link

* Fix test

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: yasserfaraazkhan <attitude3cena.yf@gmail.com>
2024-11-08 13:57:06 +01:00
M-ZubairAhmed
30a6ddc995 [MM-61439] New Users: Change default setting for mobile push notifications to 'online, away, or offline'(#29142) 2024-11-08 12:21:27 +00:00
Jelmer Overeem
0031e77b09 MM-44470 Fix SVG without width not displaying (#28963)
* Fix SVG rendering issue by setting default dimensions in image preview components

* destructuring attribute to prevent empty style object

* only create style object when fileType is svg

* fix style attribute for svg
2024-11-08 12:49:30 +01:00
Pablo Vélez
2593860063 MM-61068 - send ws event on scheduled message job send (#29153)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-11-08 10:48:23 +01:00
Niharika Goulikar
f377399c4c Fixed errcheck isssues in Auto_responder_test.go (#28987)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-08 08:54:03 +01:00
Harshil Sharma
faa6853a28 MM-61266 | MM-60948 - verified available actions on scheduled posts (#29106)
* verified available actions on scheduled posts

* Review fixes

* Added check for archived channel and deactivated DM
2024-11-08 10:34:38 +05:30
Agniva De Sarker
bd8774bdce MM-61130: Use a channelMember map at web_hub level (#28810)
Tests at very high scale indicates that the iteration
of all connections during websocket broadcast starts
to become a bottleneck.

To optimize this, we move the channelMember cache from
inside web_conn.go to the hubConnectionIndex.

This involves adding a new map keyed by the channelID
and containing all webConns where the user is a member
of that channel. Subsequently, a new method needed to
be added to invalidate the cache which previously
used to happen in web_conn.

And as a last step, we remove the cache from web_conn
to reduce SQL queries to the DB.

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

```release-note
NONE
```
2024-11-08 09:57:54 +05:30
Pablo Vélez
37d97e8024 MM-60874 - show usertz in scheduled message options (#29116)
* MM-60874 - show usertz in schedule message time options

* get the teammate time working with moment

* replace moment with luxon

* add unit tests to core_menu_options

* fix linter

* address pr feedback

* MM-60123 - store most recently custom time (#29120)

* MM-60123 - store most recently used custom time

* add the most recent used custom date option

* improve the code and add some validations

* add unit tests to cover the recently used time scenario

* clean up code in unit tests

* fix linter report

* fix translation files

* address PR feedback

* do not show recent custom time if matches any of the existing options

* prevent show date if is in the past and update unit tests

* format custom date based on week and add unit tests for new scenarios

* remove unused mock, clean up code, extract code to function

* extract recent used custom date logic to be an independent component

* address PR comments for improvements

* turn function into selector
2024-11-07 16:02:22 +01:00
Nicolas Le Cam
c90e562528 Migrate mockery to packages feature (#29013) 2024-11-07 12:48:11 +01:00
Nicolas Le Cam
5ebdea506f MM-39918: mmctl: list archived private channels in channel list command with system admin user (#28676) 2024-11-07 12:07:30 +01:00
Ivy Gesare
7846ac86b4 [MM-61506] Fix errcheck issues in server/channels/app/teams/helper_test.go (#29144) 2024-11-07 10:11:55 +01:00