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

1601 Коммитов

Автор 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
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
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
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
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
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
Ben Schumacher
d33d7a5ec7 [MM-61441] Don't overwrite plugin secret settings with fake values (#29029) 2024-11-11 11:43:26 +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
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
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
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
Nils
d8f70551bd [GH-28399] Errcheck jobtest (#28689)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-07 09:37:07 +01:00
molejnik88
e40d7b442a [MM-61458] Fix errcheck issues in server/channels/app/plugin_requests.go (#29121) 2024-11-07 09:09:11 +01:00
Seth Foss
2117a4ed30 MM-56632 Display warning if requested mage size exceeds max (#26022) (#27216) 2024-11-06 15:45:56 +01:00
Arya Khochare
efa93a3dd3 Fixed errcheck issues in server/channels/app/onboarding_test.go (#29066) 2024-11-06 11:50:21 +01:00
Harshil Sharma
f812104a92 MM-60331 - Scheduled post telemetry (#29132)
* Added scheduled posts telemetry

* Tracking scheudled post creation via webapp to filter by platform

* Fixed keys

* Lint fix
2024-11-06 10:39:52 +00:00
Agniva De Sarker
65ed87bda0 Move Elasticsearch to source available 🎉 🎉 (#29015)
* Move Elasticsearch to source available
2024-11-06 09:26:54 +05:30
Arya Khochare
4d4af7dc39 errcheck issues fixed (#29061)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-06 00:55:33 +01:00
Alenoda
74b33c73fb Fix errcheck issues in server/channels/app/plugin_deadlock_test.go (#29113)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-05 19:17:56 +01:00
Rohan Sharma
6b5732a6af [MM-61100] Fix errcheck issues in server/channels/app/busy_test.go (#28786) 2024-11-05 19:17:22 +01:00
Bernhard Fröhlich
d3c18ee369 Fix mmctl build for FreeBSD (#29112) 2024-11-05 17:57:15 +01:00
Guillermo Vayá
751d84bf13 [MM-59363] Shared channel event telemetry (#29024)
* shared channel event tracking

* Update notification.go

Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>

---------

Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>
2024-11-05 16:26:18 +01:00
Arya Khochare
373e21c5a1 Fixed errcheck issues in server/channels/app/plugin_hooks_test.go (#29059) 2024-11-05 15:36:19 +01:00