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

20306 Коммитов

Автор SHA1 Сообщение Дата
Harrison Healey
d25326764f MM-62710 Ensure CommentedOn message is never missing due to unloaded data (#30572)
* MM-62710 Ensure CommentedOn message is never missing due to unloaded data

There's more information in the Jira ticket on how this occurs, but the
short version is that there's a way for either the root post and/or the
root post's author to be missing which previously caused the "Commented
On" line not to be rendered for a comment with CRT disabled. That caused
the post to appear as if it was part of the wrong thread.

Now, the CommentedOn component is always mounted when for the first
non-consecutive reply to a thread, and it knows how to load that missing
data itself.

I also took the opportunity to implement basic `useUser` and `usePost`
hooks which will fetch the user/post if needed. They're both implemented
using a shared `makeUseEntity` which should be usable for other entities
(objects stored in Redux state and fetched using a Redux action). These
also both use actions that use `DelayedDataLoader` to batch and debounce
requests for that data as well!

Assuming this works well, I'm hoping we can start using this pattern
elsewhere in the app.

* Update tests and remove unneeded mapStateToProps

* Address feedback

* Fix playwright tests

* revert Fix playwright tests

---------

Co-authored-by: yasserfaraazkhan <attitude3cena.yf@gmail.com>
2025-04-02 11:45:00 -04:00
Jesse Hallam
d84be84f69 MM-62157: Avoid SELECT * in user_store.go (#30601)
* MM-62157: Avoid SELECT * in user_store.go

- Replace raw SQL query "SELECT * FROM Users" with query builder in Update method
- Replace raw SQL query "SELECT * from Users" with query builder in ClearAllCustomRoleAssignments
- Change Select("*") to Select("data.*") in GetUserReport method

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* MM-62157: Avoid more instances of SELECT * in user_store.go

- Replace raw SQL query "Users.*, cm.ChannelId" with usersQuery in getUsersInGroupChannels
- Replace "Users.*" with getUsersColumns() in GetUserReport method

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-04-02 11:06:09 -03:00
Ibrahim Serdar Acikgoz
10b1f4c5ac [MM-63428] add access control policy store (#30597) 2025-04-02 13:39:28 +02:00
Ibrahim Serdar Acikgoz
3eb854c58d [MM-63421] add openID Authorization API-compliant PDP interface (#30462) 2025-04-02 11:04:27 +02:00
Claudio Costa
f8e16780ef [MM-63436] Replace Exif parser dependency (#30479)
* Replace Exif parser dependency

* Improve forward seeking logic

* Fix linting

* Stop decoding upon finding tag

* Use latest version of imagemeta dependency

* Don't skip TIFF reader tests

* Log improvements

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2025-04-01 13:57:43 -06:00
Ben Cooke
2454de5b4a [MM-63504] When changing a channel to group synced, it doesn't always clear members (#30526)
* fix issue with channel and team membership after group constraints are enabled
2025-04-01 12:20:00 -04:00
Saturnino Abril
a47269cfe2 MM-62954 E2E/Playwright shared library (#30177)
* feat: Add package.json for Playwright library with dependencies

* feat: Add explicit exports for test.config in playwright-lib package

* feat: Add initialization setup for Mattermost E2E testing with admin and user client

* fix: Update package dependencies and resolve TypeScript build errors

* feat: Update package exports for test.config to support both CommonJS and ESM

* playwright shared library

* add README, fix pipeline

* keep file structures, move report up to playwright

* minimize API, use the prerelease versions of client and types

* bump version

* update package*.json

* resolve merge conflict

* update depedencies and merge conflicts

* update readme and fix ci

* remove unnecessary export and list all external packages

* fix import for Client4
2025-04-01 08:52:56 +08:00
Ben Cooke
ce9632cca3 MM-63311 (#30387)
* allow reference group changes
2025-03-31 15:49:55 -04:00
Allan Kimmer Jensen
7e439a7f7e Translated using Weblate (Danish)
Currently translated at 11.4% (697 of 6089 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/da/
2025-03-31 18:15:51 +00:00
Allan Kimmer Jensen
591bc05b2c Translated using Weblate (Danish)
Currently translated at 10.1% (267 of 2621 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/da/
2025-03-31 18:15:51 +00:00
MArtin Johnson
e819ae9fc5 Translated using Weblate (Swedish)
Currently translated at 99.7% (6071 of 6089 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/sv/
2025-03-31 18:15:51 +00:00
Tom De Moor
a31a45e4d4 Translated using Weblate (Dutch)
Currently translated at 99.9% (6088 of 6089 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/nl/
2025-03-31 18:15:51 +00:00
Benjamin Danon
f23a714601 Translated using Weblate (French)
Currently translated at 82.2% (5007 of 6089 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/fr/
2025-03-31 18:15:51 +00:00
Tom De Moor
830e569dd9 Translated using Weblate (Dutch)
Currently translated at 99.7% (2615 of 2621 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/nl/
2025-03-31 18:15:51 +00:00
Benjamin Danon
5c39c56b85 Translated using Weblate (French)
Currently translated at 82.2% (5007 of 6089 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/fr/
2025-03-31 18:15:51 +00:00
Benjamin Danon
e9526ecb11 Translated using Weblate (French)
Currently translated at 82.1% (5000 of 6089 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/fr/
2025-03-31 18:15:51 +00:00
Benjamin Danon
1b7f93631f Translated using Weblate (French)
Currently translated at 81.4% (4962 of 6089 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/fr/
2025-03-31 18:15:51 +00:00
Frank Paul Silye
8739430c28 Translated using Weblate (Norwegian Bokmål)
Currently translated at 71.5% (4359 of 6089 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/nb_NO/
2025-03-31 18:15:51 +00:00
Frank Paul Silye
5691e3eb5f Translated using Weblate (Norwegian Bokmål)
Currently translated at 3.0% (79 of 2621 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/nb_NO/
2025-03-31 18:15:51 +00:00
Benjamin Danon
d4afc795e5 Translated using Weblate (French)
Currently translated at 80.8% (4926 of 6089 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/fr/
2025-03-31 18:15:51 +00:00
Benjamin Danon
82899cc338 Translated using Weblate (French)
Currently translated at 80.5% (4907 of 6089 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/fr/
2025-03-31 18:15:51 +00:00
Frank Paul Silye
e3ae1e8570 Translated using Weblate (Norwegian Bokmål)
Currently translated at 71.1% (4332 of 6089 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/nb_NO/
2025-03-31 18:15:51 +00:00
Benjamin Danon
183376fd8d Translated using Weblate (French)
Currently translated at 80.4% (4896 of 6089 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/fr/
2025-03-31 18:15:51 +00:00
Frank Paul Silye
33d61fa674 Translated using Weblate (Norwegian Bokmål)
Currently translated at 70.7% (4306 of 6089 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/nb_NO/
2025-03-31 18:15:51 +00:00
Frank Paul Silye
879c25685d Translated using Weblate (Norwegian Bokmål)
Currently translated at 3.0% (79 of 2621 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/nb_NO/
2025-03-31 18:15:51 +00:00
Benjamin Danon
e5bab08241 Translated using Weblate (French)
Currently translated at 80.3% (4892 of 6089 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/fr/
2025-03-31 18:15:51 +00:00
Benjamin Danon
677afd5527 Translated using Weblate (French)
Currently translated at 84.1% (2206 of 2621 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/fr/
2025-03-31 18:15:51 +00:00
Benjamin Danon
17c2439357 Translated using Weblate (French)
Currently translated at 79.5% (4842 of 6089 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/fr/
2025-03-31 18:15:51 +00:00
Benjamin Danon
f069efffd2 Translated using Weblate (French)
Currently translated at 79.4% (4836 of 6089 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/fr/
2025-03-31 18:15:51 +00:00
Frank Paul Silye
d3693d9ab5 Translated using Weblate (Norwegian Bokmål)
Currently translated at 69.6% (4239 of 6089 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/nb_NO/
2025-03-31 18:15:51 +00:00
master7
7531a81ce2 Translated using Weblate (Polish)
Currently translated at 100.0% (6089 of 6089 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/pl/
2025-03-31 18:15:51 +00:00
Ricky Tigg
f00dd3f955 Translated using Weblate (Finnish)
Currently translated at 26.7% (1628 of 6089 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/fi/
2025-03-31 18:15:51 +00:00
Ricky Tigg
143a34dc78 Translated using Weblate (Finnish)
Currently translated at 48.7% (1277 of 2621 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/fi/
2025-03-31 18:15:51 +00:00
Ricky Tigg
e9a04a7d3b Translated using Weblate (Finnish)
Currently translated at 48.7% (1277 of 2621 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/fi/
2025-03-31 18:15:51 +00:00
master7
1256aefca0 Translated using Weblate (Polish)
Currently translated at 100.0% (6089 of 6089 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/pl/
2025-03-31 18:15:51 +00:00
Bohdan
43d4e8dc9c Translated using Weblate (Ukrainian)
Currently translated at 100.0% (6089 of 6089 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/uk/
2025-03-31 18:15:51 +00:00
Frank Paul Silye
3f6e1fc2b7 Translated using Weblate (Norwegian Bokmål)
Currently translated at 69.5% (4233 of 6089 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/nb_NO/
2025-03-31 18:15:51 +00:00
Frank Paul Silye
f3bfce2494 Translated using Weblate (Norwegian Bokmål)
Currently translated at 2.8% (76 of 2621 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/nb_NO/
2025-03-31 18:15:51 +00:00
Bohdan
f92f1a5321 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (6089 of 6089 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/uk/
2025-03-31 18:15:51 +00:00
Serhii Khomiuk
7ecb4c9c7a Translated using Weblate (Ukrainian)
Currently translated at 100.0% (6089 of 6089 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/uk/
2025-03-31 18:15:51 +00:00
Serhii Khomiuk
fec3a0931e Translated using Weblate (Ukrainian)
Currently translated at 100.0% (2621 of 2621 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/uk/
2025-03-31 18:15:51 +00:00
Henrique Latorre
c78e2325d6 Translated using Weblate (Portuguese (Brazil))
Currently translated at 94.8% (2486 of 2621 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/pt_BR/
2025-03-31 18:15:51 +00:00
Martin Mičuda
962da62c8c Translated using Weblate (Czech)
Currently translated at 100.0% (6089 of 6089 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/cs/
2025-03-31 18:15:51 +00:00
Martin Mičuda
fd9dd0e17a Translated using Weblate (Czech)
Currently translated at 100.0% (2621 of 2621 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/cs/
2025-03-31 18:15:51 +00:00
boristrbrt
f1b3254ec1 Translated using Weblate (French)
Currently translated at 79.2% (4823 of 6089 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/fr/
2025-03-31 18:15:51 +00:00
jprusch
213f2f817d Translated using Weblate (German)
Currently translated at 100.0% (6089 of 6089 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/de/
2025-03-31 18:15:51 +00:00
jprusch
7ec9cee245 Translated using Weblate (German)
Currently translated at 100.0% (2621 of 2621 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/de/
2025-03-31 18:15:51 +00:00
master7
8d087fb5db Translated using Weblate (Polish)
Currently translated at 100.0% (6089 of 6089 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/pl/
2025-03-31 18:15:51 +00:00
master7
686c544fce Translated using Weblate (Polish)
Currently translated at 100.0% (2621 of 2621 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/pl/
2025-03-31 18:15:51 +00:00
Konstantin
f6db5c7cd1 Translated using Weblate (Russian)
Currently translated at 94.8% (5774 of 6089 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/ru/
2025-03-31 18:15:51 +00:00