Miguel de la Cruz
ca9fd45408
Adds a mechanism to delete CPA values for a given user ( #30330 )
...
* Adds a mechanism to delete CPA values for a given user
This requires improving the Property Value service to enable delete
all values for a given target, so a new method was created that allows
to delete filtering by targetType and targetID (required) and
optionally for a specific groupID in case the caller wants to affect
all values for a target (useful in case you remove a post for example
and want to delete all values pointing to that post regardless of the
feature they belong to) or only those that belong to a specific
feature.
* Fix property value tests
* Fix after merge and update method name
* Fix linter
---------
Co-authored-by: Miguel de la Cruz <miguel@ctrlz.es >
Co-authored-by: Mattermost Build <build@mattermost.com >
2025-04-10 19:22:05 +02:00
Miguel de la Cruz
3ab0da1648
Adds direct participants to the channel invite ( #30404 )
...
* Adds direct participants to the channel invite
The channel invite now contains the sanitized users that are local to
the node that is sending the invite. In the event that the receiving
server doesn't have those users in its local database, it can create
them from the invite and correctly generate the DM or GM with them as
members.
* Use IsRemote instead of directly checking user attributes
---------
Co-authored-by: Miguel de la Cruz <miguel@ctrlz.es >
Co-authored-by: Mattermost Build <build@mattermost.com >
2025-04-10 19:19:59 +02:00
Nick Misasi
14426af461
[CLD-8961] Fix typo in trial license error message ( #30681 )
2025-04-10 15:47:55 +00:00
Ben Schumacher
b348527889
Update mattermost-govet version to latest SHA ( #30688 )
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-authored-by: Claude <noreply@anthropic.com >
2025-04-10 17:27:26 +02:00
Miguel de la Cruz
89ca647330
Unshares a channel when uninviting the last remote ( #30568 )
...
Co-authored-by: Miguel de la Cruz (aider) <miguel@ctrlz.es >
Co-authored-by: Mattermost Build <build@mattermost.com >
2025-04-10 15:23:38 +02:00
catalintomai
e7e80634d6
MM-43598: Bulk export not exporting non-thread DMs from deactivated users ( #30427 )
2025-04-10 15:12:33 +02:00
Miguel de la Cruz
0c8e30da4d
Move the sanitization and validation of CPA values to the model ( #30653 )
...
* Move the sanitization and validation of CPA values to the model
* Fix CI
* Use proper IDs instead of strings
---------
Co-authored-by: Miguel de la Cruz <miguel@ctrlz.es >
Co-authored-by: Mattermost Build <build@mattermost.com >
2025-04-10 11:31:40 +02:00
catalintomai
c7165c5ff2
MM-62767: Add Custom Profile Attributes to the SAML synchronization process ( #30459 )
2025-04-10 08:30:57 +02:00
Ben Schumacher
02e5c56d22
MM-60797: Fix errcheck issues in support_packet_test.go ( #30607 )
...
Fixes https://github.com/mattermost/mattermost/issues/29102
- Fix error handling in fileutils.FindDir() call by properly checking the returned boolean value
- Add proper error handling for SetPhase2PermissionsMigrationStatus calls
- Remove channels/app/support_packet_test.go from the errcheck exception list in .golangci.yml
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-authored-by: Claude <noreply@anthropic.com >
2025-04-09 14:10:08 +02:00
Ben Schumacher
a6492b5b9f
MM-28765: Fix errcheck issues in server/channels/manualtesting/manual_testing.go ( #30613 )
...
1. Fixed hasher.Write() to check error return
2. Fixed VerifyEmail() to check error return
3. Fixed SaveMember() to check error return
4. Added typecheck exclusion for testAutoLink in .golangci.yml
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-authored-by: Claude <noreply@anthropic.com >
2025-04-09 11:41:56 +02:00
Ben Schumacher
354d7aeb72
Consistent error wrapping ( #30600 )
2025-04-09 11:38:36 +02:00
Tom De Moor
4d093a7795
Fixing typo in en.json ( #30649 )
...
More info https://translate.mattermost.com/translate/mattermost/server/en/?checksum=09142512528acc2d#comments
2025-04-08 07:22:51 +00:00
MArtin Johnson
6bf4c2f1b6
Translated using Weblate (Swedish)
...
Currently translated at 100.0% (2630 of 2630 strings)
Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/sv/
2025-04-08 07:22:06 +00:00
Tom De Moor
4966ced2ee
Translated using Weblate (Dutch)
...
Currently translated at 99.7% (2624 of 2630 strings)
Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/nl/
2025-04-08 07:22:06 +00:00
MArtin Johnson
8786f80985
Translated using Weblate (Swedish)
...
Currently translated at 99.5% (2618 of 2630 strings)
Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/sv/
2025-04-08 07:22:06 +00:00
Bohdan
cffcc5f0de
Translated using Weblate (Ukrainian)
...
Currently translated at 100.0% (2630 of 2630 strings)
Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/uk/
2025-04-08 07:22:06 +00:00
master7
25fa2ebba6
Translated using Weblate (Polish)
...
Currently translated at 100.0% (2630 of 2630 strings)
Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/pl/
2025-04-08 07:22:06 +00:00
jprusch
db283ab29c
Translated using Weblate (German)
...
Currently translated at 100.0% (2630 of 2630 strings)
Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/de/
2025-04-08 07:22:06 +00:00
enzowritescode
5d7f985997
Add bidichk to the linters ( #30654 )
2025-04-07 08:38:18 -06:00
Surya Venkata Sainadh Pichika
62753a1481
[MM-63455] Fix Link previews with brackets when making the request ( #30507 )
...
* allow opening angle bracket before links
* cut off link before an angle bracket(both open & close)
* add more test cases for ParseURLAutolink func
* add more test cases for ParseWWWAutolink func
* add more test cases for TrimTrailingCharactersFromLink func
* add more test cases for GetFirstLinkAndImages func
* add test cases for isAllowedBeforeWWWLink func
* allow closing angle bracket and opening paranthesis before links
---------
Co-authored-by: Mattermost Build <build@mattermost.com >
2025-04-07 16:17:46 +05:30
unified-ci-app[bot]
48b1080d51
Update latest minor version to 10.8.0 ( #30632 )
...
Automatic Merge
2025-04-07 09:38:41 +03:00
Miguel de la Cruz
03d724b6a6
Adds the CPA property group endpoint ( #30620 )
...
* Adds the CPA property group endpoint
* Fix test calls
---------
Co-authored-by: Miguel de la Cruz <miguel@ctrlz.es >
2025-04-04 16:06:55 +00:00
Agniva De Sarker
09488558a0
MM-63298: [AI assisted] Elasticsearch add a global search prefix ( #30417 )
...
This PR adds functionality to search by a global search prefix.
This allows Mattermost to be used across multiple data centers
with multiple Elasticsearch instances synchronized using
cross-cluster replication.
While here, we also add tests cases to cover for some missing
search interface methods.
For now, no system console setting is exposed. Because IndexPrefix
is also not exposed. It can be added later if a need arises.
https://mattermost.atlassian.net/browse/MM-63298
```release-note
A new config setting ElasticsearchSettings.GlobalSearchPrefix is added
which can be used to search across multiple indices having a common prefix.
This is useful in a scenario with multiple Elasticsearch instances, where
multiple instances are writing to different indices with different prefixes
using the ElasticsearchSettings.IndexPrefix setting.
```
Co-authored-by: Mattermost Build <build@mattermost.com >
2025-04-04 11:42:12 +05:30
Claudio Costa
7250095f86
Fix potential nil dereference in app.isChannelArchivedAndHidden ( #30628 )
2025-04-03 15:31:09 -06:00
Claudio Costa
a219fbcfa1
Update golang-jwt/jwt dependency to latest ( #30625 )
2025-04-03 15:30:21 -06:00
Harshil Sharma
a9f09cadc2
Premium SKU ( #30396 )
...
* Added premium SKU
* removed duplicate enterprise license check functions
* Added license check on API layer
* lint fix
* lint fix
* refactured signature:
* test: Add comprehensive tests for license tier check functions
* fixed test
* text update
* optimised license checks
* fixedf test
* Updated license valid function
* webapp license checks
* handling prekium SKU in webappp:
* added plugin api method and general refactoring
* Updated tests
---------
Co-authored-by: Mattermost Build <build@mattermost.com >
2025-04-03 13:07:54 +05:30
Julien Tant
65343f84a7
[MM-63480] Remove user cache early when deactivating user ( #30571 )
...
* remove user cache early when deactivating user
* add e2e test
* fix test style
---------
Co-authored-by: Mattermost Build <build@mattermost.com >
2025-04-02 12:31:07 -07:00
Caleb Roseland
035b9ad402
MM-62696, MM-62697: CPA Ext. Types & Visibility in System Console ( #30511 )
...
* Squashed commit of the following:
commit 42ef1ff8c3ff881b0f21cb4de23a5964f0bb106b
Merge: 4940da4326 c049748b88
Author: Mattermost Build <build@mattermost.com >
Date: Fri Mar 14 21:15:22 2025 +0200
Merge branch 'master' into MM-62695
commit 4940da4326ff787dd43fc486f06be415257181ae
Author: Julien Tant <julien@craftyx.fr >
Date: Fri Mar 14 12:14:45 2025 -0700
manage error the same way property field and value do
commit cd9ec590264ca3751a55fc0926318cbb6f46d471
Author: Julien Tant <julien@craftyx.fr >
Date: Fri Mar 14 12:05:02 2025 -0700
sanitize and validate
commit 2672e90b06331ff2e31a7807737cc1feff1c1beb
Author: Julien Tant <julien@craftyx.fr >
Date: Fri Mar 14 12:02:20 2025 -0700
use Len test method
commit d101950d655c7d6fd7a668a15554cc52a1d42667
Author: Julien Tant <julien@craftyx.fr >
Date: Fri Mar 14 11:59:12 2025 -0700
rearrange consts
commit ed1b8f66fb08f7be38615ced74282380d5d680b7
Author: Julien Tant <julien@craftyx.fr >
Date: Fri Mar 14 11:58:56 2025 -0700
rename CPASortOrder method
commit d3bc303fa3c9694d2f6d1531186f4fbe69efb956
Author: Julien Tant <julien@craftyx.fr >
Date: Fri Mar 14 11:54:24 2025 -0700
rename CustomProfileAttributes in method to CPA
commit b2323d44a6c3f31ea7c798f8a88c62878d5d2cdf
Author: Julien Tant <julien@craftyx.fr >
Date: Fri Mar 14 11:54:02 2025 -0700
Add SAML and LDAP attr
commit d411ae9da5a078cfbac60c5662bee27622ff31e5
Author: Julien Tant <julien@craftyx.fr >
Date: Wed Mar 12 11:58:21 2025 -0700
i18n
commit 27bc74c71462ae08d496104c908454ebc4f2def3
Author: Julien Tant <julien@craftyx.fr >
Date: Wed Mar 12 11:11:23 2025 -0700
fix TestDeleteCPAField test
commit 0d77071225d8575ace89cbe38c6c06fa94d7696b
Author: Julien Tant <julien@craftyx.fr >
Date: Wed Mar 12 10:28:49 2025 -0700
err->appErr
commit fe87a68caa49c7264c20c32cd4f598ffd18d503f
Author: Julien Tant <julien@craftyx.fr >
Date: Wed Mar 12 10:22:13 2025 -0700
i18n
commit 3b3ddf978fce66d9506416a10c03b21d6a12e9d0
Author: Julien Tant <julien@craftyx.fr >
Date: Wed Mar 12 10:21:12 2025 -0700
tests
commit 2f898bd53b832dea60dcdb960a71cd47709cddf8
Author: Julien Tant <julien@craftyx.fr >
Date: Tue Mar 11 15:09:12 2025 -0700
add validation and tests
commit a8c20841af6e82a6bf4f5dde6324b5e56c4d754e
Author: Julien Tant <julien@craftyx.fr >
Date: Tue Mar 11 13:45:53 2025 -0700
code style
commit 5bb3868b2ce93b9eb6e9d0836c597fa1176fbbbd
Merge: a4180d5d8f 7c25de2cff
Author: Mattermost Build <build@mattermost.com >
Date: Tue Mar 11 22:24:06 2025 +0200
Merge branch 'master' into MM-62695
commit a4180d5d8ff5e23a7a0a73b08806d37289e076ce
Author: Julien Tant <julien@craftyx.fr >
Date: Tue Feb 25 11:53:54 2025 -0700
use CPAField
commit 988177024ceebe73750ce48c40ea0a9ca6db75d6
Author: Julien Tant (aider) <julien@craftyx.fr >
Date: Tue Feb 25 10:52:47 2025 -0700
refactor: Move validateCustomProfileAttributesField to Validate method on CPAField struct
commit 783e64472c7ef3c1e33ce9a94b0716e96a72b105
Author: Julien Tant <julien@craftyx.fr >
Date: Tue Feb 25 10:52:45 2025 -0700
refactor: Improve custom profile attributes field handling and validation
commit aee06af59c748e74e5dc7718c1529527ac8c052a
Author: Julien Tant (aider) <julien@craftyx.fr >
Date: Tue Feb 25 10:50:29 2025 -0700
test: Add test case for CPA field with empty attributes
commit 7ab4455f9feb88826fcf6abb3b93a8a7bb53ed3e
Author: Julien Tant <julien@craftyx.fr >
Date: Tue Feb 25 10:50:28 2025 -0700
refactor: Cleanup whitespace and remove empty Attrs in custom profile attributes test
commit dbdb47d75818d58739c3962d8624388214382611
Author: Julien Tant (aider) <julien@craftyx.fr >
Date: Tue Feb 25 10:48:08 2025 -0700
test: Add test case for property field with empty attributes
commit 43872e06933b40f45caadbca7708eab283cebd8d
Author: Julien Tant (aider) <julien@craftyx.fr >
Date: Tue Feb 25 10:44:39 2025 -0700
test: Add tests for NewCPAFieldFromPropertyField and CPAFieldToPropertyField
commit 335f6b5c8901b6ecdc1e9f031a81695ffc269029
Merge: 01f632db46 e8ef26196c
Author: Julien Tant <julien@craftyx.fr >
Date: Tue Feb 25 10:05:43 2025 -0700
Merge branch 'master' into MM-62695
commit 01f632db46cf0eeeea0bac337b10c66fad815a24
Author: Julien Tant <julien@craftyx.fr >
Date: Thu Feb 13 19:16:33 2025 -0700
removed unused i18n
commit 0214d7eb947d3d8ecfde169cb07c210ecbfc9c92
Merge: db0e371ca2 68c11e9ecb
Author: Julien Tant <julien@craftyx.fr >
Date: Thu Feb 13 19:15:08 2025 -0700
Merge remote-tracking branch 'origin/master' into MM-62695
commit db0e371ca239b5286e58ad264c46a8891eafbe9b
Author: Julien Tant <julien@craftyx.fr >
Date: Thu Feb 13 19:05:58 2025 -0700
generic options
commit 3cd62774a1b54e5e9da0c1c5b2626de4f49116ca
Merge: d95e5d9838 41e0f97176
Author: Julien Tant <julien@craftyx.fr >
Date: Thu Feb 13 10:48:47 2025 -0700
Merge remote-tracking branch 'origin/master' into MM-62695
commit d95e5d9838b9b00bd4ef9ec066df03cfc52596d7
Author: Julien Tant <julien@craftyx.fr >
Date: Wed Feb 12 17:07:28 2025 -0700
style
commit 2256076ed174b25a5decc2631ee6abaa9fa1a3c1
Author: Julien Tant (aider) <julien@craftyx.fr >
Date: Wed Feb 12 17:06:22 2025 -0700
refactor: Make color field optional in custom profile attributes
commit 7382b8ecb3964083d24d879210aa3d137983b404
Author: Julien Tant <julien@craftyx.fr >
Date: Wed Feb 12 16:40:10 2025 -0700
fix api test
commit a54c2d653f9a2e46d989181f9ef5ffd3dcbdb8c0
Author: Julien Tant <julien@craftyx.fr >
Date: Wed Feb 12 16:02:27 2025 -0700
lint
commit 9d2e3f78f6ba836b599df7f3cdd4766bf47cd600
Author: Julien Tant <julien@craftyx.fr >
Date: Wed Feb 12 15:50:31 2025 -0700
use custom types rather than string
commit 4624df52cbda3cb9b0f8fa60b7a3d4f5ecf1c845
Author: Julien Tant (aider) <julien@craftyx.fr >
Date: Wed Feb 12 15:40:52 2025 -0700
refactor: Use consistent "ValidateCPAField" in error messages for custom profile attributes
commit 42716170b7158cc4d3ce06cfef36046be6290def
Author: Julien Tant <julien@craftyx.fr >
Date: Wed Feb 12 15:36:04 2025 -0700
fix casing in custom profilte attributes test
commit bcca3d87c47efcf95fcea2d1b380ce8aee89f7d4
Author: Julien Tant (aider) <julien@craftyx.fr >
Date: Wed Feb 12 15:33:26 2025 -0700
refactor: Modify CustomProfileAttributesSelectOption to use lowercase JSON keys
commit 861e12c1fcaedb69d331120bd4ae58757df1fae1
Author: Julien Tant <julien@craftyx.fr >
Date: Wed Feb 12 15:29:23 2025 -0700
i18n
commit a44f6f40eb5babab5f72a49078bec110a4645ddb
Author: Julien Tant <julien@craftyx.fr >
Date: Wed Feb 12 15:21:08 2025 -0700
improve test
commit b2f002016fb7438a4507f9cb1cc236a43fb71e27
Author: Julien Tant (aider) <julien@craftyx.fr >
Date: Wed Feb 12 15:10:00 2025 -0700
test: Add test case for preserving option IDs when patching select field
commit aac155ef23866d7b85ef49483eec5b610b2a8bc0
Author: Julien Tant <julien@craftyx.fr >
Date: Wed Feb 12 15:04:18 2025 -0700
don't do validation in constructor
commit a88c092768fb0c46b76e72d6e27f417d3f25ba86
Author: Julien Tant (aider) <julien@craftyx.fr >
Date: Wed Feb 12 15:00:10 2025 -0700
feat: Enhance ID validation and trimming in custom profile attributes
commit b6fb5f274a97f9de4d80899a406b4397d2a4983e
Author: Julien Tant (aider) <julien@craftyx.fr >
Date: Wed Feb 12 14:57:24 2025 -0700
test: Add test cases for preserving IDs in custom profile attributes
commit bbb7f3e2610f4ebc96c6043504710f359d48a733
Author: Julien Tant (aider) <julien@craftyx.fr >
Date: Wed Feb 12 14:56:15 2025 -0700
refactor: Update CustomProfileAttributesSelectOption constructor to prioritize ID parameter
commit dbd1728a14fd708e60a3c1180b21a155221a032a
Author: Julien Tant <julien@craftyx.fr >
Date: Wed Feb 12 14:50:14 2025 -0700
feat: Add validation for custom profile attributes fields
commit e87689571bde77c2881f50af537930be9355f815
Author: Julien Tant (aider) <julien@craftyx.fr >
Date: Wed Feb 12 14:44:15 2025 -0700
test: Add comprehensive test for NewCustomProfileAttributesSelectOptionFromMap
commit a2292d44ff2cc496e36633440c3d0cbdb1930e45
Author: Julien Tant (aider) <julien@craftyx.fr >
Date: Wed Feb 12 14:43:14 2025 -0700
feat: Add support for lowercase and title case keys in custom profile attributes map
commit 47ca1848767d597f8305c4c183a68be476c034b9
Author: Julien Tant <julien@craftyx.fr >
Date: Wed Feb 12 14:43:12 2025 -0700
fix: Update custom profile attributes map keys to use capitalized names
commit e8de7dfc6d01c73064c10f65e0ecc86c4b2ae320
Author: Julien Tant (aider) <julien@craftyx.fr >
Date: Wed Feb 12 14:01:31 2025 -0700
feat: Add comprehensive test cases for custom profile attributes field validation
commit e798a53170d0aedbe25916cdaef3a11ac4191fd5
Author: Julien Tant <julien@craftyx.fr >
Date: Wed Feb 12 13:56:25 2025 -0700
add default visibility
commit e54ea2ba2f19bbcea06c9deed1a28923a2db5532
Author: Julien Tant <julien@craftyx.fr >
Date: Wed Feb 12 13:22:04 2025 -0700
fix tests
commit db1839a6e9b7d6a86ae334fa7bcae5e3aa622295
Author: Julien Tant (aider) <julien@craftyx.fr >
Date: Wed Feb 12 13:18:51 2025 -0700
feat: Add index number to validation error messages in custom profile attributes
commit 35e29a0dfd3fb3cc09b7a2ec9234791719224c01
Author: Julien Tant <julien@craftyx.fr >
Date: Wed Feb 12 13:18:49 2025 -0700
refactor: Add validation and creation methods for custom profile attributes
commit eac47527d27607fef30e840175c6ddb855445467
Author: Julien Tant (aider) <julien@craftyx.fr >
Date: Wed Feb 12 12:49:00 2025 -0700
feat: Add validation to prevent empty custom profile attribute options
commit 1baece68f945de3d8fe8d4fe9df0ebcb243ba5f7
Author: Julien Tant <julien@craftyx.fr >
Date: Wed Feb 12 12:48:36 2025 -0700
refactor: Rename NewCustomProfileAttributeSelectOption to NewCustomProfileAttributesSelectOption
commit 43710b018ab102f74ecaf2339e29593ae5dd3f55
Author: Julien Tant (aider) <julien@craftyx.fr >
Date: Wed Feb 12 12:46:43 2025 -0700
refactor: Replace map[string]bool with map[string]struct{} for key existence check
commit 3263b04478cf69533e298535f75a9d6f252e46de
Author: Julien Tant (aider) <julien@craftyx.fr >
Date: Wed Feb 12 12:46:06 2025 -0700
feat: Add IsValid method to validate CustomProfileAttributesSelectOptions
commit 4531710f560fbc22ab76f6a67597e154fec3c896
Author: Julien Tant <julien@craftyx.fr >
Date: Wed Feb 12 12:46:04 2025 -0700
refactor: Fix typo in custom profile attributes select option function name
commit c1c821275c574e15a0e03987098891e191e9aa55
Author: Julien Tant <julien@craftyx.fr >
Date: Wed Feb 12 12:42:50 2025 -0700
gofmt
commit 328c898a3f0c50f8b0dd83aa37c84c099342a8a4
Author: Julien Tant (aider) <julien@craftyx.fr >
Date: Wed Feb 12 12:41:14 2025 -0700
refactor: Trim spaces from name and color in custom profile attribute select option constructor
commit b924431499b1b1472f377fd6c8bc1e726e8857c3
Author: Julien Tant <julien@craftyx.fr >
Date: Wed Feb 12 12:41:12 2025 -0700
feat: Add custom profile attributes model with validation and constants
commit 463ad161c5141cc8994bab0278cdc1df54f4b4e3
Author: Julien Tant (aider) <julien@craftyx.fr >
Date: Wed Feb 12 12:40:19 2025 -0700
test: Add unit tests for custom profile attributes select options
* sort_order int temp
* name, type menu, dot menu
* values add/remove
* disabled when deleted
* - max length
- full height
- validate options
- clear attrs.options when not select/multiselect
* Revert "sort_order int temp"
This reverts commit ed675983c21965d7a9534e6c7b4eb38b8a751002.
* Revert "Squashed commit of the following:"
This reverts commit faf8b01169f0c285b7c77333f601e3cc7a1f4f18.
* field values test
* test type menu
* test table
* fix dot menu item id
* test delete modal
* test dot menu
* fix system_properties test
* fix user_properties_utils tests
* fix attr sort_order type
* i18n
* fix lint
* fix test types
* lint scss
* disable email type
---------
Co-authored-by: Mattermost Build <build@mattermost.com >
2025-04-02 13:46:28 -05: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
Ben Cooke
ce9632cca3
MM-63311 ( #30387 )
...
* allow reference group changes
2025-03-31 15:49:55 -04: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
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
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
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
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
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
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
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
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
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
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
0301d10778
Translated using Weblate (Russian)
...
Currently translated at 97.4% (2554 of 2621 strings)
Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/ru/
2025-03-31 18:15:51 +00:00
Miguel de la Cruz
1ca6f6d6fb
Adds a groupID filter to the property service methods ( #30420 )
...
* Adds a groupID filter to the property service methods
This allows the property service caller to directly ensure that a
given call is only going to affect a field or value that belongs to a
given group, instead of (for example) retrieving a property value
before deleting it by id to ensure that the value belongs to a
specific property group. The groupID filter is optional and has no
effect if called with the empty string value.
The changes also remove references to input sanitization on trimming
the whitespace for the CPA field names and validate at the API level
the input for the field patch endpoint.
* Fix linter
---------
Co-authored-by: Miguel de la Cruz <miguel@ctrlz.es >
Co-authored-by: Mattermost Build <build@mattermost.com >
2025-03-31 16:51:16 +00:00
Jesse Hallam
eb851684e9
MM-62162: Replace SELECT * in user_access_token_store.go ( #30421 )
...
* MM-62162: Replace SELECT * in user_access_token_store.go
- Replaced all SELECT * queries with explicit column selection
- Used query builder instead of raw SQL strings for all queries
- Added reusable userAccessTokensSelectQuery in the store constructor
- Added comprehensive test for pagination and IsActive flag
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
* Fix code formatting in user_access_token_store test file
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
* MM-62162: Update UserAccessToken Search method to use explicit column names
- Fixed "ambiguous column" errors by explicitly naming columns with table qualifiers
- Added test for the Search functionality
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
* MM-62162: Update UserAccessToken Search method to use explicit column names
- Fixed "ambiguous column" errors by explicitly naming columns with table qualifiers
- Maintained exact semantics of original query's LIKE filters
- Refactored to use query builder instead of raw SQL
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
* MM-62162: Update UserAccessToken Search method to use reusable query
- Modified userAccessTokensSelectQuery to use fully qualified column names
- Updated Search method to use the existing query builder
- Fixed "ambiguous column" errors by using full column qualifiers
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
* MM-62162: Remove unnecessary comment in user_access_token_store.go
Removed redundant comment in Search method explaining the use of qualified column names, as the code is self-documenting.
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
* MM-62162: Use t.Cleanup() for token cleanup in userAccessTokenPagination test
* MM-62162: Handle error in Cleanup function
* linting
---------
Co-authored-by: Mattermost Build <build@mattermost.com >
2025-03-31 13:47:43 -03:00