* MM-54640 Add API to get multiple emojis by name at once
* Fix status code when too many names are requested
* Address feedback
* Update unit tests
* Fix styling
* Fix more styling
* Fix mismatched i18n id
* adding vietnamese
* ran npm run test:updatesnapshot
* ran npm run test:updatesnapshot
* Update i18n.jsx
* updatesed snapshot
* fix whitespace in snapshots
* add vi as supported server locale
* update docs to point at server-side list of supported locales
* removed incorrect translation
---------
Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com>
* #24773 Converted ./components/emoji_picker/components/emoji_picker_header.tsx to Function Component
* Fixed the lint errors and removed the explicit functional component type
* Added memo to make the functional component pure.
* chore(channels): convert next icon to functional component
* test(channel): update next snapshot
* chore(channels): change to arrow function, remove `t`, and use `classNames`
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
* #24774 Converted ./plugins/rhs_plugin/rhs_plugin.tsx to Function Component
* Fixed the lint errors and removed explicit FC type
* Added memo to make the functional component pure.
* #24774 Converted ./plugins/rhs_plugin/rhs_plugin.tsx to Function Component
* Fixed the lint errors and removed explicit FC type
* Added memo to make the functional component pure.
* Standardize country selectors into using a central component - don't use Country Name, use Country Code
* Fix colour of placeholder
* Updates
* Update state selector to reflect changes from Country Name to Country Code
* Fix linter"
* fix openApi vetting
The underlying mattermost-govet tool effectively hasn't been called for some time, as we weren't checking out and building the spec files to pass. Now that hte API is in the monorepo, build it locally and check against it.
Unfortunately, our API documentation isn't up-to-date, and this PR isn't fixing that. For now, add a discrete `make vet-api` and workflow that won't block the build until the API documentation is back in sync and can be merged into the existing `make vet` directive.
* mattermost-govet: use upstream@new
* fix missing /api/v4 prefix for commands autocomplete suggestion
* document /api/v4/ldap/users/{user_id}/group_sync_memberships
* document /api/v4/groups/{group_id}/restore
* fix /files/{file_id}/public actually at root
* document /api/v4/users/invalid_emails
* fix SetThreadUnreadByPostId
* Revert "fix SetThreadUnreadByPostId"
This reverts commit b16bcc8044.
* Revert "Revert "fix SetThreadUnreadByPostId""
This reverts commit 8bda05dc8a.
* workaround undocumented API endpoints
* remove unnecessary whiteline
* ignore go tool output
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
* POC page_load_context header
* refactor to make this.pageLoadContext a private field, and relocate setTimeout code
* add pageLoadContext to `ObserveAPIEndpointDuration` method
* move to telemetry_actions
* move PageContext constant in webapp
* give server control of possible page_load_context values
* variable name change
---------
Co-authored-by: mickmister <mickmister>
Co-authored-by: Mattermost Build <build@mattermost.com>
* handle serverError undefined or null
* exclude bots from list and search for adding users to roles
* add import, fix lint
* add unit tests
* update test, team/channel admin based on membership, not user roles
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
Only the -race tests in master branch takes
more memory. So it will take more time, but there's no
need to optimize run time in master as nobody
is waiting for it to complete.
```release-note
NONE
```
* Add origin device to ObserveAPIEndpointDuration
* Fix generation of einterfaces mocks
* make einterfaces-mocks
* Use request's query and headers to get origin
* Add desktop to the origin device identification
* Test originDevice function
* Rename origin device to origin client
* [MM-53428] Delete empty drafts on upsert
* Add migrations to fix existing drafts
* Fix CI
* Delete empty drafts entirely from the DB
* Fix lint
* Implement batch migration for deleting drafts
* Missing store layers
* Add updated mock
* Remove unnecessary test
* PR feedback
* Add check for cluster migration
* Fix MySQL
* Don't check for len<2
* Bit of PR feedback
* Use query builder for parameters
* PR feedback
* More PR feedback
* Merge'd
* unit test GetLastCreateAtAndUserIdValuesForEmptyDraftsMigration
* simplified builder interface
* fix DeleteEmptyDraftsByCreateAtAndUserId for MySQL
* rework as batch migration worker
* fix typo
* log ip address on version mismatches too
* simplify reset semantics
* remove trace log in favour of low spam
* document parameters for clarity
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com>