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

19502 Коммитов

Автор SHA1 Сообщение Дата
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
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
soham
6b304b9c4a MM-57096 replaced hardcoded value with a color variable (#26667)
* replaced hardcoded value with a color variable

* changed color values for scroll_to_bottom_toast

* added btn and btn-primary to toast

* Changed dynamically created css variables with static ones

---------

Co-authored-by: Soham <soham@obmondo.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-11-07 08:35:29 +05:30
Harrison Healey
4136343476 Fixathon: Web app dependency updates part 1 (#29036)
* Ensure all packages remove a node_modules in their folder when cleaning

* Upgrade typescript to 5.6.3 and move to root package.json

Note that this currently fails to build the types package due to
@types/node which I'm going to try to remove

* Update @types/node to 20.11 to match .nvmrc

* Upgrade zen-observable to 0.10.0

It looks like localforage-observable uses its own version
of zen-observable because it hasn't been updated in years.
This seems like something we probably should remove.

* Update yargs to 17.7.2

* Update webpack-dev-server to 5.1.0

* Remove webpack-bundle-analyzer since we haven't used it in years

* Update webpack to 5.95.0

* Update web-vitals to 4.2.4

* Update turndown to 7.2.0

* Update tinycolor2 to 1.6.0

* Update timezones.json to 1.7.0

* Update stylelint to 16.10.0, stylelint-config-recommended-scss to 14.1.0, and stylelint-scss to 6.8.1

* Update webpack-cli to 5.1.4

* Update style-loader to 4.0.0

* Change all Webpack scripts to be ES modules

* Update strip-ansi to 7.1.0

This is a build script dependency

* Update chalk to 5.3.0

This is a build script dependency

* Update concurrently to 9.0.1

This is a build script dependency

* Update smooth-scroll-into-view-if-needed to 2.0.2

* MM-48205 Update serialize-error to 11.0.3

We didn't update this before because it's an ES module which caused Jest to complain. We can fix that by making Jest transform the it

* Update semver to 7.6.3

* Update types for semver, tinycolor2, turndown, and webpack

* Fix type issues: change Props to a type

* Fix type issues: invalid HTML attributes

* Remove unneeded option from Webpack config
2024-11-06 13:40:19 -05: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
Scott Bishel
311381940d update manage token model to work on load (#29022)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-11-05 17:00:26 -07:00
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
M-ZubairAhmed
1b3403e641 [MM-60964] Update permissions banner button text and dismiss behaviour (#29134) 2024-11-05 14:34:06 +00:00
Pablo Vélez
fbee99e870 MM-60124-emit and read create scheduled post WS event (#28844)
* MM-60124-emit and read create scheduled post WS event

* fix unit test; reorder get team id logic; use userid for ws events

* MM-60145 - ws events on update scheduled posts (#28871)

* MM-60145 - ws events on update scheduled posts

* MM-60147 - ws events on delete scheduled posts (#28872)

* MM-60147 - ws events on delete scheduled posts

* remove unnecessary channelID

* remove unnecesary memoization
2024-11-05 14:24:50 +01:00
Pablo Vélez
87cc13c590 Fixathon ICU - remove npm vulnerabilities from production version (#28999)
* fix high vulnerability present in braces

* remove vulnerabilities from pdfjs-dis and update types for node and react

* adapt the pdf preview file to the lib new version

* lock the estree version to a compatible version

* use minified version of worker and adjust webpack to support extension for ESM module process

* get working the pdf preview

* adjust jest to use babel correctly

* override asn1.js lib to keep working version

* upgrade semver version to a secure version

* remove no longer needed changes

* fix linter issues

* fix merge conflicts

* sync package-lock

* fix conflicts

* adjust lock to npm ci
2024-11-05 13:41:29 +01:00
Ivy Gesare
cb8f152089 [MM-61094] Fix errcheck issues in server/channels/app/app_test.go (#29124) 2024-11-05 12:13:41 +01:00
Mario Vitale
2975e529d5 Enable Cypress and Playwright retries (#29056)
* Enable Cypress and Playwright retries
* Improve E2E commit status messages
* Demote unstable testcases, increase task timeout
2024-11-05 11:46:06 +01:00
Alenoda
4b9eb73bd2 Fix errcheck issues in server/channels/app/plugin_reattach (#29115)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-05 09:59:24 +01:00
Ivy Gesare
795b2ad068 [MM-61488] Fix errcheck issues in server/channels/app/role_test.go (#29125) 2024-11-05 09:58:54 +01:00
Arya Khochare
9ecf9f8ade Fixed errcheck issues in server/channels/app/notification_test.go (#29068) 2024-11-05 08:59:48 +01:00
Harshil Sharma
800407f956 Fixed a bug where non-admin user wasn't able to edit their scheduled post (#29084) 2024-11-05 05:32:00 +05:30
Arya Khochare
6fd464a398 errcheck issues fixed (#29045) 2024-11-04 17:38:09 +01:00
Claudio Costa
3752518e36 Fix minio Web UI access (#29021) 2024-11-04 09:04:06 -06:00
Weblate (bot)
bfffc2383f Translations update from Mattermost Weblate (#29095)
Automatic Merge
2024-11-04 15:47:11 +01:00
Amy Blais
5e128328a2 Update Traditional Chinese to Beta (#29044)
Automatic Merge
2024-11-04 15:17:11 +01:00
Ben Schumacher
63bf746d60 [MM-61523] Skip flaky TestGetUserTeamScheduledPosts/should_get_created_scheduled_posts (#29104) 2024-11-04 14:45:22 +01:00
Arya Khochare
ef1be57f64 errcheck issues fixed (#29063)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-04 14:33:47 +01:00
Arya Khochare
e3f6b16927 errcheck issues fixed (#29065) 2024-11-04 07:49:02 -05:00
Kyrillos Isaac
3780887629 [MM-61106] fix server/channels/app/desktop_login.go errcheck issues (#28818)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-04 13:27:07 +01:00
Arya Khochare
dc5640f134 Fixed errcheck issues in server/channels/api4/file_test.go (#28559) 2024-11-04 13:26:03 +01:00
Dishika Vaishkiyar
19865329ca Fix: authorization-test errcheck issue (#28788)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-04 13:04:06 +01:00
Daniel Espino García
b276fbc809 Refactor admin settings to functional components (#28931)
* Refactor admin settings to functional components

* Address feedback

* Fix types
2024-11-04 12:54:03 +01:00
Ivy Gesare
89ea59f590 [MM-61259] Fix errcheck issues in server/channels/app/import_utils_test.go (#28955) 2024-11-04 12:33:53 +01:00
Pratham Mahajan
cb32e8baea Fix errcheck issues in server/channels/jobs/schedulers_test.go (#28970) 2024-11-04 12:25:09 +01:00
Harshit Vashisht
59c42c06ef Fixes errcheck in email_test.go (#28910)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-04 12:16:35 +01:00
Arya Khochare
a21e8f9b13 Fixed errcheck issues in server/channels/app/ldap.go (#29038) 2024-11-04 12:05:43 +01:00
Arya Khochare
93b0fece12 Fixed errcheck issues in server/channels/app/oauth_test.go (#29043) 2024-11-04 11:13:16 +01:00
Samarth Mishra
e86560d04c Fix errcheck issues in server/channels/app/imaging/decode_test.go (#28958)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-04 10:55:48 +01:00
TheInvincible
fdd5bb9c02 Update file_helper_test.go (fix errcheck issue) (#28983) 2024-11-04 09:31:30 +01:00
TheInvincible
be7a8a17c0 Fix errcheck issue in oauth.go (#28795) 2024-11-04 09:07:04 +01:00