mattermost/server/channels/api4
Scott Bishel 82b8d4dc07
MM-55966 - Update ArrayFromJSON to use LimitedReader (#25510)
* update ArrayFromJSON to use LimitedReader

* update for bad merge

* fix lint errors

* update test code

* update unit tests

* update unit tests

* fix unit tests

* use consts, other cleanup

* add non sorting duplicate check

* set config to default value, then config setting if available

* fix lint errors

* fixes and debugs

* fix log test

* remove setting from Client, add unlimited Parser to client

* a couple more fixes

* another fix

* rename some variables

* remove superflous call

* check for valid MaximumPayloadSize

* update language file

* fix for e2e-tests

* update util function to return error

* lint fix

* update config property name to include unit

* fix for unit test

* add new config to telemetry

* call function to create LimitedReader

* Deprecate old function, use new function name

* return new AppError on failed parse

* return new AppError on failed parse

* return new AppError on failed parse

* add constant for i18n valid constants

* Update server/public/model/utils_test.go

Co-authored-by: Miguel de la Cruz <mgdelacroix@gmail.com>

* Apply suggestions from code review

Co-authored-by: Miguel de la Cruz <mgdelacroix@gmail.com>

* update error variable, remove unnecessary check

* Update function names

* fix errors from merge

* update unit test to create unique ids

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Miguel de la Cruz <mgdelacroix@gmail.com>
2024-01-09 10:04:16 -07:00
..
api.go [WIP] [MM-55031] OAuth Outgoing Connection App integration (#25379) 2023-12-26 10:46:20 +01:00
apitestlib.go Mm 16623 fix all initialism errors in channels/app and channels/api4 dir (#25743) 2023-12-20 06:46:54 +01:00
bleve.go [MM-55595] Use annotated logger in search layer (#25468) 2023-12-04 18:34:57 +01:00
bleve_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
bot.go [MM-55595] Use annotated logger in search layer (#25468) 2023-12-04 18:34:57 +01:00
bot_local.go Mono repo -> Master (#22553) 2023-03-22 17:22:27 -04:00
bot_test.go Add whitespace linter (#24855) 2023-10-11 10:13:36 +02:00
brand.go [MM-55606]: add the request context to all public methods in server/channels/app/brand.go (#25542) 2023-11-29 17:07:16 +01:00
brand_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
channel.go MM-55966 - Update ArrayFromJSON to use LimitedReader (#25510) 2024-01-09 10:04:16 -07:00
channel_category.go MM-55966 - Update ArrayFromJSON to use LimitedReader (#25510) 2024-01-09 10:04:16 -07:00
channel_category_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
channel_local.go [MM-54024] Handle JSON nulls when unmarshalling in api4 (#24656) 2023-10-05 19:25:59 +05:30
channel_test.go [MM-56266] Check for public channels when getting channel member counts to avoid 403 errors (#25831) 2024-01-05 12:28:22 -05:00
cloud.go [CLD-6537] Cloud Annual Renewals - Banners Implementation (#25267) 2023-11-29 09:10:17 -05:00
cloud_test.go [CLD-6537] Cloud Annual Renewals - Banners Implementation (#25267) 2023-11-29 09:10:17 -05:00
cluster.go [GH-25492] Add the request context to all public methods in server/channels/app/admin.go (#25498) 2023-11-29 17:07:54 +01:00
cluster_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
command.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
command_help_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
command_local.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
command_test.go Mm 16623 fix all initialism errors in channels/app and channels/api4 dir (#25743) 2023-12-20 06:46:54 +01:00
commands_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
compliance.go [MM-54435] Use annotated logger to capture compliance export logs (#24791) 2023-10-23 10:20:32 +02:00
config.go [MM-45065] Switch all api4 methods to use the new logger (#24896) 2023-10-31 11:00:22 +01:00
config_local.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
config_test.go [MM-55990] Logger improvements for tests (#25467) 2023-11-30 10:47:04 +01:00
cors_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
data_retention.go MM-55966 - Update ArrayFromJSON to use LimitedReader (#25510) 2024-01-09 10:04:16 -07:00
data_retention_test.go [MM-49989] Pass a context.Context to Client4 methods (#22922) 2023-06-06 23:29:29 +02:00
drafts.go [MM-55631] Remove extra call to Draft().Get() (#25563) 2023-11-30 10:45:32 -05:00
drafts_test.go [MM-52088] Fix flaky draft tests (#24405) 2023-08-30 12:52:37 +02:00
elasticsearch.go [MM-55595] Use annotated logger in search layer (#25468) 2023-12-04 18:34:57 +01:00
elasticsearch_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
emoji.go MM-55966 - Update ArrayFromJSON to use LimitedReader (#25510) 2024-01-09 10:04:16 -07:00
emoji_test.go MM-55966 - Update ArrayFromJSON to use LimitedReader (#25510) 2024-01-09 10:04:16 -07:00
export.go [MM-53454] Add export file settings + slash command for public link (#23915) 2023-07-19 13:01:39 -07:00
export_local.go [MM-53454] Add export file settings + slash command for public link (#23915) 2023-07-19 13:01:39 -07:00
export_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
file.go [MM-55053] Use request-specific logger in channels/app/file.go (#25037) 2023-11-07 10:04:16 +01:00
file_test.go [MM-55595] Use annotated logger in search layer (#25468) 2023-12-04 18:34:57 +01:00
group.go Fix make permission error (#25860) 2024-01-08 14:45:48 +01:00
group_local.go Mono repo -> Master (#22553) 2023-03-22 17:22:27 -04:00
group_test.go Adds a team check to get groups by team (#25462) 2024-01-08 13:28:51 +01:00
handlers.go [MM-45065] Switch all api4 methods to use the new logger (#24896) 2023-10-31 11:00:22 +01:00
handlers_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
helpers.go Mono repo -> Master (#22553) 2023-03-22 17:22:27 -04:00
hosted_customer.go Applies perfsprint linter (#24999) 2023-11-03 11:18:18 +01:00
hosted_customer_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
image.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
image_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
import.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
import_local.go Mono repo -> Master (#22553) 2023-03-22 17:22:27 -04:00
import_test.go MM-55987: Bypass uploading to S3 for local mode mmctl import (#25591) 2023-12-13 09:38:00 +05:30
integration_action.go Add read_channel_content permission (#24118) 2023-07-31 09:12:53 -04:00
integration_action_test.go [MM-53269] Add configuration setting for integration requests timeout (#23805) 2023-12-18 16:07:00 +01:00
ip_filtering.go [MM-55595] Use annotated logger in search layer (#25468) 2023-12-04 18:34:57 +01:00
ip_filtering_test.go Fix flaky test api4/Test_applyIPFilters (#25437) 2023-11-14 23:52:23 +02:00
job.go [MM-45065] Switch all api4 methods to use the new logger (#24896) 2023-10-31 11:00:22 +01:00
job_local.go Mono repo -> Master (#22553) 2023-03-22 17:22:27 -04:00
job_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
ldap.go [MM-32406] Introduce trace logging level for LDAP messages (#25118) 2023-11-03 08:06:16 +01:00
ldap_local.go Add whitespace linter (#24855) 2023-10-11 10:13:36 +02:00
ldap_test.go [MM-54132] Use annotated logger for log messages from jobs (#24275) 2023-09-07 08:50:22 +02:00
license.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
license_local.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
license_test.go MM-56359: Skip TestUploadLicenseFile (#25800) 2023-12-22 13:21:33 +01:00
limits.go Added API to return user count bands and user count (#25796) 2023-12-21 13:00:19 +00:00
main_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
notify_admin.go [MM-54024] Handle JSON nulls when unmarshalling in api4 (#24656) 2023-10-05 19:25:59 +05:30
notify_admin_test.go [MM-56061] Only render where field in model.AppError when it's present (#25648) 2023-12-11 10:27:51 +01:00
oauth.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
oauth_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
outgoing_oauth_connection.go [WIP] [MM-55031] OAuth Outgoing Connection App integration (#25379) 2023-12-26 10:46:20 +01:00
outgoing_oauth_connection_test.go [WIP] [MM-55031] OAuth Outgoing Connection App integration (#25379) 2023-12-26 10:46:20 +01:00
permission.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
permissions_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
plugin.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
plugin_local.go Mono repo -> Master (#22553) 2023-03-22 17:22:27 -04:00
plugin_test.go Add whitespace linter (#24855) 2023-10-11 10:13:36 +02:00
post.go MM-55966 - Update ArrayFromJSON to use LimitedReader (#25510) 2024-01-09 10:04:16 -07:00
post_local.go Mono repo -> Master (#22553) 2023-03-22 17:22:27 -04:00
post_test.go Lock wrangler behind enterprise (#25703) 2024-01-05 13:20:37 -05:00
preference.go MM-56082 Add PreferencesHaveChanged plugin hook (#25659) 2024-01-03 12:25:53 -05:00
preference_test.go Add whitespace linter (#24855) 2023-10-11 10:13:36 +02:00
reaction.go MM-55966 - Update ArrayFromJSON to use LimitedReader (#25510) 2024-01-09 10:04:16 -07:00
reaction_test.go Mm 16623 fix all initialism errors in channels/app and channels/api4 dir (#25743) 2023-12-20 06:46:54 +01:00
remote_cluster.go Ping new shared channels remotes immediately (#25850) 2024-01-09 12:35:05 +01:00
report.go [MM-56206] Allow for proper paging and sorting (#25726) 2023-12-18 05:56:06 +05:30
role.go MM-55966 - Update ArrayFromJSON to use LimitedReader (#25510) 2024-01-09 10:04:16 -07:00
role_local.go Mono repo -> Master (#22553) 2023-03-22 17:22:27 -04:00
role_test.go MM-55966 - Update ArrayFromJSON to use LimitedReader (#25510) 2024-01-09 10:04:16 -07:00
saml.go [MM-54434] Use job.Logger to capture ldap logs (#24493) 2023-10-06 22:43:21 +02:00
saml_test.go Fix issue 25390 (#25403) 2023-11-10 21:55:33 -04:00
scheme.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
scheme_test.go [MM-55595] Use annotated logger in search layer (#25468) 2023-12-04 18:34:57 +01:00
shared_channel.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
shared_channel_test.go Shared channels plugin APIs for MS Teams plugin (#25805) 2023-12-22 17:00:27 -05:00
status.go MM-55966 - Update ArrayFromJSON to use LimitedReader (#25510) 2024-01-09 10:04:16 -07:00
status_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
system.go MM-55966 - Update ArrayFromJSON to use LimitedReader (#25510) 2024-01-09 10:04:16 -07:00
system_local.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
system_test.go [MM-45065] Switch all api4 methods to use the new logger (#24896) 2023-10-31 11:00:22 +01:00
team.go MM-55966 - Update ArrayFromJSON to use LimitedReader (#25510) 2024-01-09 10:04:16 -07:00
team_local.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
team_test.go Mm 16623 fix all initialism errors in channels/app and channels/api4 dir (#25743) 2023-12-20 06:46:54 +01:00
terms_of_service.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
terms_of_service_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
upload.go Fix racy test issues (#24971) 2023-11-06 12:26:17 +01:00
upload_local.go Mono repo -> Master (#22553) 2023-03-22 17:22:27 -04:00
upload_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
usage.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
usage_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
user.go MM-55966 - Update ArrayFromJSON to use LimitedReader (#25510) 2024-01-09 10:04:16 -07:00
user_local.go MM-55966 - Update ArrayFromJSON to use LimitedReader (#25510) 2024-01-09 10:04:16 -07:00
user_test.go MM-56082 Add PreferencesHaveChanged plugin hook (#25659) 2024-01-03 12:25:53 -05:00
user_viewmembers_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
webhook.go Add read_channel_content permission (#24118) 2023-07-31 09:12:53 -04:00
webhook_local.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
webhook_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
websocket.go [MM-45065] Switch all api4 methods to use the new logger (#24896) 2023-10-31 11:00:22 +01:00
websocket_norace_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
websocket_test.go MM-56071: Track multiple threads (#25775) 2023-12-21 08:42:58 +05:30