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

19685 Коммитов

Автор SHA1 Сообщение Дата
Caleb Roseland
f1cb9f1ec2 MM-52512 fix ability to exclude archived channels in system console (#29122) 2024-12-10 13:28:20 -06:00
Scott Bishel
2c52f09071 update text, add tests (#29485)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-12-10 08:06:05 -07:00
Alejandro García Montoro
a906e980f9 Skip flaky test - Tracked in MM-62079 (#29494) 2024-12-10 15:46:59 +01:00
Jesse Hallam
5369f8b36b s/Get(Master|Replica)X/Get\1/g (#29520)
Drop the legacy `X` suffix from `GetMasterX` and `GetReplicaX`. The
presence of the suffix suggests there's a `non-X` version: but in fact
we migrated these away a long time ago, so remove the cognitive
overhead.

As an aside, this additionally helps avoid trip up LLMs that interpret
this as "something to fix".
2024-12-10 09:57:19 -04:00
Pavel Mokeev
8b86e1276e GH-27059: Rewrite error messages about msg length (#29252)
Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-12-10 14:32:13 +01:00
David Krauser
f1d5884532 MM-62105 use WARN log level when ws can't report hostname (#29523) 2024-12-10 09:33:44 +01:00
Jesús Espino
4c27e6ebfe Fixing accessiblity on search input (#29423)
Automatic Merge
2024-12-10 08:47:37 +01:00
Agniva De Sarker
0f5d160131 MM-62077: Fix cluster broadcast for LRU caches (#29488)
We were incorrectly not broadcasting status cache updates
inspite of that being an LRU cache.

We were also not doing it for profilesInChannel cache.
Now we fix it by properly checking the invalidationEvent
which is something local to the cache itself rather
than the cache provider.

https://mattermost.atlassian.net/browse/MM-62077
```release-note
NONE
```
2024-12-10 11:08:17 +05:30
Harrison Healey
69df5df878 Add placeholder MMAction and MMReduxAction types (#29484)
* Add dummy MMReduxAction type and use it in its ActionFunc types

* Use MMReduxAction in mattermost-redux reducers

I updated most reducers except for the following:

- I couldn't figure out how to type the request reducers because of
  handleRequest, and it wasn't worth spending time on because it's
  stable and we don't really use those.
- The typing reducers are weird because they use WS event names as
  constants. They should be given their own action types separate from
  the event names, and they probably shouldn't be in mattermost-redux.

There's also a few places that still use AnyAction, but those are for
helpers for individual reducers. In the future, we should probably pass
the data from the action directly into those.

* Add dummy MMAction type and use it in the web app ActionFunc types

* Use MMAction in web app reducers
2024-12-09 19:22:07 +00:00
Harrison Healey
e873e5c1ef Add web app versions of ActionFunc types (#29483)
* Re-export ActionFunc types from mattermost-redux from types/store

* Start using ActionFunc types from types/store instead of mattermost-redux

These are all the places where the type checker failed when I added the
web app version of ActionFunc. I'll move all the other files in a
separate commit.

* Use ActionFunc types from types/store everywhere outside mattermost-redux

* Make types/store versions of ActionFunc use web app GlobalState

* Stop passing GlobalState into ActionFunc explicitly

* Stop casting as GlobalState where it's no longer needed

* Prevent importing mattermost-redux version of ActionFunc in the rest of the app

* Fix no-restricted-imports applying incorrectly to mattermost-redux and types/store
2024-12-09 13:37:41 -05:00
Mario Vitale
7263ba4bc1 Enforce 0-failures for E2E tests (#29521) 2024-12-09 17:03:55 +01:00
M-ZubairAhmed
f80afad1b6 [MM-58441] Create a floating-ui Tooltip which will swap out ReactBootstrap tooltip (#29464)
Added a new tooltip
- components/team_sidebar/components/team_button.tsx
- components/post_view/reaction/reaction_tooltip/reaction_tooltip.tsx
- components/post_view/post_recent_reactions/post_recent_reactions.tsx
- components/common/comment_icon.tsx
2024-12-09 14:50:08 +00:00
Weblate (bot)
cf219b0e06 Translations update from Mattermost Weblate (#29518)
Automatic Merge
2024-12-09 14:47:37 +01:00
dependabot[bot]
5552997380 Bump the github-actions-updates group with 2 updates (#29517)
Bumps the github-actions-updates group with 2 updates: [github/codeql-action](https://github.com/github/codeql-action) and [tj-actions/changed-files](https://github.com/tj-actions/changed-files).


Updates `github/codeql-action` from 3.27.5 to 3.27.6
- [Release notes](https://github.com/github/codeql-action/releases)
- [Commits](https://github.com/github/codeql-action/compare/v3.27.5...v3.27.6)

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

---
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
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-09 10:29:50 +00:00
David Krauser
3224e0d3a2 MM-61991 Show server hostname in about modal (#29413)
This introduces a new entry in the `Main Menu -> About` modal with the hostname of the currently connected websocket. This will be used to aid debugging issues in clustered environments by showing which node in the cluster is servicing requests for a particular websocket.

This information is only visible in self-managed instances. It will not be visible on cloud instances.
2024-12-06 10:39:36 -05:00
Agniva De Sarker
59b8532a89 metrics/histogram: Fixing incorrect label_name (#29492)
We were incorrectly overwriting the same key - label_name.
```release-note
NONE
```
2024-12-06 19:34:46 +05:30
Mario Vitale
a90f19dc0f [skip ci] Fix/demote testcases (#29497) 2024-12-06 13:23:27 +01:00
Agniva De Sarker
e6c0ed4a1b MM-62085: Handle nil post priority (#29496)
https://mattermost.atlassian.net/browse/MM-62085

```release-note
NONE
```
2024-12-06 10:10:41 +05:30
Michele Lo Russo
b03409202e Use "transform: scale" to resize emoticons, and "zoom" when supported (#29276) 2024-12-05 16:22:55 -07:00
Alexandre Sollier
c67e5089c1 [MM-61946] Don't change the emoji picker search input text case (#29397)
This removes the search input text lowercasing from the
`EmojiPickerSearch` component, where it is used as the text displayed to
the user.

Instead, filter lowercasing is done in the `getFilteredEmojis` function
to make emoji search case-insensitive.

Signed-off-by: Kuruyia <github@kuruyia.net>
2024-12-05 13:16:56 -05:00
fxnm
491e46d390 [MM-61477] Fixed exif rotates images width and height is not correctly calculated (#29309)
* [MM-61477] Fixed exif rotates images width and height is not correctly calculated

* [MM-61477] Apply rotation ony to png or jepg

* [MM-61477] Added test cases to verify correct rotation

* fix: fixed wrong format

* uff

* fix: exif rotation is only possible on jpeg images

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-12-05 13:16:01 -05:00
Ivy Gesare
bc6f162d20 Change: Make custom status clear after 'Today', clear at midnight (#29072) 2024-12-06 01:18:13 +08:00
Alejandro García Montoro
6b648199f0 MM-61992: Verify license.Features.Users is not nil (#29417)
* Verify license.Features.Users is not nil

* Move check before DB call to avoid it if possible

* Add more context to the error
2024-12-05 16:46:04 +01:00
Jessie Kahn
82c1f7bf09 [MM-61508] Fixed errcheck issues in upload_test.go, [MM-61510] Fixed errcheck issues in user_test.go (#29308) 2024-12-05 12:22:41 +01:00
Agniva De Sarker
a6d37fa14c MM-61887: Log the userID if a metric exceeds the last histogram bucket (#29448)
We create a custom histogram metric that logs the userID
when the observed value is greater or equal to the last bucket value.

This allows us to start tracking the slowest users of a system
while at the same time not polluting the Prometheus metrics
by storing a userID for every observation.

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

```release-note
NONE
```
2024-12-05 09:12:54 +05:30
unified-ci-app[bot]
421001c981 Update latest minor version to 10.4.0 (#29474)
Automatic Merge
2024-12-04 19:47:36 +01:00
Nick Misasi
027ac51b81 Remove write_restrictable from AdvancedLoggingJSON (#29424) 2024-12-04 13:29:03 -05:00
Saturnino Abril
90c0235c4b upgrade playwright dependencies, screenshots and tests (#29466) 2024-12-04 19:52:18 +08:00
Michele Lo Russo
43d589be79 Fix bug when you press PgUp/PgDown on a long message with sidebar open (#29272)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-12-04 10:53:32 +05:30
catalintomai
8861a8aef0 MM-60436 - remove telemetry api track calls (#28160) 2024-12-03 23:20:53 +00:00
Michele Lo Russo
e9878f8ac6 MM-61526 Fix scrollbar not clickable due to being covered by toaster (#29251)
* Fix scrollbar not clickable due to being covered by toaster

* Apply suggestions from code review

---------

Co-authored-by: Harrison Healey <harrisonmhealey@gmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-12-03 17:40:16 -05:00
Harrison Healey
8533350a91 MM-61893 Replace usage of hasOwnProperty with Object.hasOwn (#29428)
* MM-61893 Replace usage of hasOwnProperty with Object.hasOwn

* Update type guard in messageToElement

* Replace a couple more hasOwnProperty calls
2024-12-03 21:53:23 +00:00
Joram Wilander
3ed209a34d Fix server update message not handling mutli-digit version numbers (#29436) 2024-12-03 21:55:04 +01:00
dependabot[bot]
7b72a6582f Bump the github-actions-updates group across 1 directory with 3 updates (#29445)
Bumps the github-actions-updates group with 3 updates in the / directory: [docker/build-push-action](https://github.com/docker/build-push-action), [github/codeql-action](https://github.com/github/codeql-action) and [mikepenz/action-junit-report](https://github.com/mikepenz/action-junit-report).


Updates `docker/build-push-action` from 6.9.0 to 6.10.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](4f58ea7922...48aba3b46d)

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

Updates `mikepenz/action-junit-report` from 5.0.0 to 5.1.0
- [Release notes](https://github.com/mikepenz/action-junit-report/releases)
- [Commits](a427a90771...992d97d6eb)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions-updates
- dependency-name: github/codeql-action
  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-minor
  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-12-03 19:37:53 +08:00
Agniva De Sarker
833578741d Improve Redis failure modes (#29405)
While investigating code paths during
Redis downtime, I found out that the library
by default retries indefinitely for read commmands.

This leads to it being stuck in a loop
while trying to read anything from Redis.
We fix that by disabling retry.

Secondly, we adjust the ConnWriteTimeout
value slightly from its default of 10s
which is a bit too high for normal working
conditions.

Ref: https://github.com/redis/rueidis/issues/680
```release-note
NONE
```
2024-12-03 09:34:47 +05:30
Weblate (bot)
3c6d5f2d47 Translations update from Mattermost Weblate (#29444)
Automatic Merge
2024-12-02 16:17:37 +01:00
Amy Blais
d8ede680c2 Downgrade language to Alpha (#29443)
Automatic Merge
2024-12-02 15:47:36 +01:00
Jesse Hallam
7c6f1d4554 feat: Add tooltips to channel info RHS top buttons (#29170)
* feat: Add tooltips to channel info RHS top buttons

* style: address linting issues

* feat: Add accessibility ids to Tooltips in top_buttons.tsx

* leverage WithTooltip for standardized styling

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-12-02 10:16:20 -04:00
Harrison Healey
ef46f8e164 MM-61560 Make it so that Menu.Items can be tested without a Menu (#29427)
* MM-61650 Make it so that Menu.Items can be tested without a Menu

* Rename file to stop Jest from complaining
2024-11-29 12:57:21 -05:00
k srisri reddy
961fc6bfe9 fix: MM-61260: handled errors to fix linting (#29340)
Co-authored-by: Ibrahim Serdar Acikgoz <serdaracikgoz86@gmail.com>
2024-11-29 15:27:15 +00:00
Ivy Gesare
ff1ffc51dc [MM-61460] Fix errcheck issues in server/channels/app/plugin_signature_test.go (#29348)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-29 10:36:19 +01:00
Agniva De Sarker
4ec4b4d525 MM-61886: Add actionable page navigation metrics (#29332)
Page load is one of the metrics that we track and present
to MLT. However, in its current form, it is not very
actionable because it also contains the network latency.

We split the whole metric into these parts:
startTime
|
responseStart = TTFB
|
responseEnd = TTLB
|
domInteractive = Start of processing phase
|
loadEventEnd = Load complete

This gives us better visibility into exactly
which phase in the load process is slow.

I have experimented with other metrics like
- domContentLoadedEventStart
- domContentLoadedEventEnd
- domComplete

and observed that they do not have sufficient
gaps in the timespan to have any relevance.

Additionally, I have moved TTFB from being a
web vitals metric to being tracked from the performance
metrics to remain consistent with the other navigation
metrics measured.

Lastly, I took this chance to improve some of the
validation errors that we threw to include more
context into the input that was passed and why
does it fail.

This also meant that I had to change the tests
to check for error strings rather than direct
errors which is a bad thing, but I don't think
it's worth the effort trying to have named error
variables for all of them.

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

```release-note
NONE
```
2024-11-29 11:24:35 +05:30
Devin Binnie
b33622e32c Remove unnecessary dispatch call (#29421) 2024-11-28 16:28:16 -05:00
AulakhHarsh
2c32040e2e [MM-61769] Fix errcheck for /platform/searchengine.go (#29341)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-28 10:17:33 +01:00
Julien Tant
dabf383d4c [MM-61969] Fix regression where search suggestion would break when using uppercase letters (#29400) 2024-11-27 10:53:14 -07:00
Daniel Espino García
25ff7a3779 Fix MM-61710 (#29248)
* Fix MM-61710

* Fix test

* Make more secure the secureGetFromRecord

* Revert changes related to redux posts

* Move segureGetFromRecord

* Fix test

* Use hasOwn

* Address feedback

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-11-27 17:13:22 +01:00
Devin Binnie
99f242527e [MM-60984] Force reload of all channels on reconnect to ensure we have updated message counts (#29355)
* [MM-60984] Force reload of all channels on reconnect to ensure we have updated message counts

* PR feedback

* Fix test
2024-11-27 08:14:11 -05:00
Arya Khochare
54eff271bd Fixed errcheck issues in server/channels/app/integration_action_test.go (#29039)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-27 14:02:12 +01:00
AulakhHarsh
d9981beb9d Fix errcheck issues in server/channels/jobs/resend_invitation_email/worker.go (#29353)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-27 12:07:31 +01:00
Harshil Sharma
ab99856591 Added null guard in hook (#29395) 2024-11-27 14:31:44 +05:30