mattermost/model
Claudio Costa 9c272f0b20
[MM-26812] Add support for resumable file uploads (#15252)
* Implement AppendFile for FileBackend

* Split test into subtests

* [MM-26812] Add support for resumable file uploads (#15252)

* Implement UploadSession

* Implement UploadSessionStore

* Add error strings

* Implement resumable file uploads

* Add UploadType

* Fix retry layer tests

* Regenerate store layers

* Fix store error handling

* Use base for filename

* Prevent concurrent uploads on the same upload session

* Fix erroneus error string

* Improve error handling

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>

* Fix translations

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2020-09-15 21:28:25 +02:00
..
gitlab [MM-22037] Enable uppercase letters in the email (#13794) 2020-02-12 08:51:45 -05:00
testdata PLT-3383: image proxy support (#7991) 2018-01-22 15:32:50 -06:00
access.go Fix inconsistencies in variable names for struct methods (#13561) 2020-01-07 10:47:03 +01:00
access_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
analytics_row.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
analytics_row_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
at_mentions.go MM-21987 Resolve mentions in slash commands (#13762) 2020-03-11 11:50:12 +01:00
at_mentions_test.go MM-21987 Resolve mentions in slash commands (#13762) 2020-03-11 11:50:12 +01:00
audit.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
audit_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
auditconv.go MM-25014 - Default Group Name to null, until AllowGroupReference is set (#14651) 2020-05-26 19:21:29 -06:00
auditconv_test.go MM-22785 audit server CLI (#14144) 2020-04-08 00:52:30 -04:00
audits.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
audits_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
authorize.go MM_22682_Centralize_ID_Validation (#14237) 2020-05-07 13:27:35 -04:00
authorize_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
bot.go Add metric warning support (announcement bar and DM) (#14483) 2020-07-22 20:32:21 -07:00
bot_default_image.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
bot_test.go [MM-17422] Added code to update, delete last bot_icon time in model.bot. (#12229) 2019-12-29 15:30:18 +01:00
builtin.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
bundle_info.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
bundle_info_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
channel.go [MM-25990] Add filters to search all channels (#15009) 2020-07-23 10:46:33 -04:00
channel_count.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
channel_data.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
channel_list.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
channel_member.go MM_22682_Centralize_ID_Validation (#14237) 2020-05-07 13:27:35 -04:00
channel_member_history.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
channel_member_history_result.go include user delete at (#15191) 2020-08-07 12:59:34 -04:00
channel_member_test.go Remove remaining t.Fatal from the codebase (#13876) 2020-02-13 17:53:23 +01:00
channel_mentions.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
channel_search.go [MM-25990] Add filters to search all channels (#15009) 2020-07-23 10:46:33 -04:00
channel_search_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
channel_sidebar.go Sidebar V2 Phase 2 (#14967) 2020-07-06 18:20:35 -04:00
channel_stats.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
channel_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
channel_view.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
channel_view_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
client4.go [MM-26812] Add support for resumable file uploads (#15252) 2020-09-15 21:28:25 +02:00
client4_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
cluster_discovery.go MM_22682_Centralize_ID_Validation (#14237) 2020-05-07 13:27:35 -04:00
cluster_discovery_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
cluster_info.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
cluster_info_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
cluster_message.go MM-24830: Add event constants for gossip request/response (#14611) 2020-05-23 11:43:58 +05:30
cluster_message_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
cluster_stats.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
cluster_stats_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command.go MM-26057 - Add CreateCommand plugin API (#14916) 2020-07-31 17:40:15 +02:00
command_args.go MM-26055 Remove session requirement from command args. (#14880) 2020-06-23 08:33:45 -07:00
command_args_test.go MM-21987 Resolve mentions in slash commands (#13762) 2020-03-11 11:50:12 +01:00
command_autocomplete.go [MM-20684] Slash Command Autocomplete (#14557) 2020-05-21 12:24:56 +04:00
command_autocomplete_test.go [MM-20684] Slash Command Autocomplete (#14557) 2020-05-21 12:24:56 +04:00
command_request.go MM-21727 add an endpoint to move a command to another team (#13624) 2020-01-29 11:56:21 -05:00
command_response.go GH-12702 v2: Add new command response parameter: "skip_slack_p… (#13420) 2020-01-17 08:34:11 +01:00
command_response_test.go GH-12702 v2: Add new command response parameter: "skip_slack_p… (#13420) 2020-01-17 08:34:11 +01:00
command_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_webhook.go MM_22682_Centralize_ID_Validation (#14237) 2020-05-07 13:27:35 -04:00
command_webhook_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
compliance.go MM_22682_Centralize_ID_Validation (#14237) 2020-05-07 13:27:35 -04:00
compliance_post.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
compliance_post_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
compliance_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
config.go Implement LDAP Certificate (#15361) 2020-09-14 12:53:42 -06:00
config_test.go MM-28103: prepackage incident-response (#15360) 2020-09-10 21:05:20 -03:00
data_retention_policy.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
emoji.go MM_22682_Centralize_ID_Validation (#14237) 2020-05-07 13:27:35 -04:00
emoji_data.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
emoji_search.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
emoji_search_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
emoji_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
file.go MM-20934: Fixing int overflow in 32 bits on MaxImageSize check (#14280) 2020-04-16 15:23:27 +02:00
file_info.go [MM-26812] Add support for resumable file uploads (#15252) 2020-09-15 21:28:25 +02:00
file_info_test.go [MM-26812] Add support for resumable file uploads (#15252) 2020-09-15 21:28:25 +02:00
gitlab.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
group.go MM-25544:Update error message for length violations (#14853) 2020-06-23 10:47:48 -06:00
group_member.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
group_syncable.go MM-20644: Add users to teams as a SchemeAdmin based on a new configuration field on GroupTeams and GroupChannels records. (#13361) 2020-01-10 09:19:39 -08:00
guest_invite.go Fix inconsistencies in variable names for struct methods (#13561) 2020-01-07 10:47:03 +01:00
incoming_webhook.go MM_22682_Centralize_ID_Validation (#14237) 2020-05-07 13:27:35 -04:00
incoming_webhook_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
initial_load.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
initial_load_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
integration_action.go [MM-22734] Support different interactive message button styles (#14592) 2020-05-19 18:41:17 +02:00
integration_action_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
integrity.go [MM-25652] Add /integrity endpoint to local mode API (#15033) 2020-07-27 10:20:22 +02:00
job.go MM-27199 - Add metrics to MM server for total enabled user count (#15116) 2020-09-07 09:26:25 -04:00
ldap.go Implement LDAP Certificate (#15361) 2020-09-14 12:53:42 -06:00
license.go MM-27930 - Cloud license feature (#15297) 2020-08-18 15:47:29 -04:00
license_test.go Check license expiration, disable license and notify administrator (#14420) 2020-05-06 10:28:49 -07:00
link_metadata.go Fix TestLinkMetadataStore test failing for some (#15057) 2020-07-20 11:10:43 +02:00
link_metadata_test.go Use require/assert.Empty instead of require/assert.Len(t, X, 0) (#13413) 2019-12-22 12:35:31 +01:00
manifest.go Allow placeholder for types number and longtext (#13809) 2020-02-05 10:46:58 +01:00
manifest_test.go Allow placeholder for types number and longtext (#13809) 2020-02-05 10:46:58 +01:00
marketplace_plugin.go [MM-25284] Include license type in Marketplace request (#14586) 2020-05-23 07:05:51 +02:00
mention_map.go MM-21987 Resolve mentions in slash commands (#13762) 2020-03-11 11:50:12 +01:00
mention_map_test.go MM-21987 Resolve mentions in slash commands (#13762) 2020-03-11 11:50:12 +01:00
message_export.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
mfa_secret.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
mfa_secret_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
migration.go Moving diagnostics into a service (#14832) 2020-09-08 20:30:54 +02:00
modeltestlib_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
oauth.go MM_22682_Centralize_ID_Validation (#14237) 2020-05-07 13:27:35 -04:00
oauth_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
outgoing_webhook.go Prevent spurious error (#14796) 2020-07-09 13:25:23 -03:00
outgoing_webhook_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
permission.go [MM-27274] Add permission to convert public channel to private (#15370) 2020-09-03 13:41:07 -04:00
permission_test.go MM-25543: New Admin Roles (#14960) 2020-08-21 16:49:31 -04:00
plugin_event_data.go MM-16261: Synchronize plugins in HA (#11657) 2019-07-18 15:05:53 -03:00
plugin_key_value.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
plugin_key_value_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
plugin_kvset_options.go MM-21672: KVCompareAndSet improvements (#13858) 2020-02-18 16:32:46 -04:00
plugin_status.go [MM-15831] Improve system for storing status of available plug… (#11185) 2019-06-25 17:44:08 -04:00
plugin_valid.go Add IsValid method to *Manifest struct (#13609) 2020-01-17 21:08:55 +01:00
plugin_valid_test.go Add IsValid method to *Manifest struct (#13609) 2020-01-17 21:08:55 +01:00
plugins_response.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
plugins_response_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
post.go Fix panic in api4.searchPosts (#15410) 2020-09-08 20:36:59 +02:00
post_embed.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
post_list.go [MM-21378] Add mutex to model.Post to guard against race conditions on Post.Props (#13884) 2020-03-13 21:12:20 +01:00
post_list_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
post_metadata.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
post_search_results.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
post_test.go Fix panic in api4.searchPosts (#15410) 2020-09-08 20:36:59 +02:00
preference.go Sidebar V2 Phase 2 (#14967) 2020-07-06 18:20:35 -04:00
preference_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
preferences.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
push_notification.go MM-25394 session expired push notifications (#14732) 2020-06-17 14:47:54 -04:00
push_notification_test.go Avoid panic when push messages are empty or nil (#13751) 2020-01-29 10:08:27 +01:00
push_response.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
push_response_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
reaction.go MM_22682_Centralize_ID_Validation (#14237) 2020-05-07 13:27:35 -04:00
reaction_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
role.go [MM-28475] Add server telemetry for the new system roles (#15437) 2020-09-15 14:21:32 -04:00
role_test.go MM-25543: New Admin Roles (#14960) 2020-08-21 16:49:31 -04:00
saml.go [MM-27623] Add new session prop for oauth (#15221) 2020-08-11 10:24:26 -04:00
saml_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
scheduled_task.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
scheduled_task_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
scheme.go MM_22682_Centralize_ID_Validation (#14237) 2020-05-07 13:27:35 -04:00
search_params.go [MM-24522] remove duplication in OR and IncludeDeletedChannels params for search (#14573) 2020-08-31 13:40:58 +02:00
search_params_test.go [MM-24522] remove duplication in OR and IncludeDeletedChannels params for search (#14573) 2020-08-31 13:40:58 +02:00
security_bulletin.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
security_bulletin_test.go Use require/assert.Empty instead of require/assert.Len(t, X, 0) (#13413) 2019-12-22 12:35:31 +01:00
serialized_gen.go MM-27456: Use reflect-free serialization for hot structs (#15171) 2020-08-13 03:35:57 -04:00
session.go MM-27456: Use reflect-free serialization for hot structs (#15171) 2020-08-13 03:35:57 -04:00
session_test.go [MM-27623] Add new session prop for oauth (#15221) 2020-08-11 10:24:26 -04:00
slack_attachment.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
slack_attachment_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
slack_compatibility.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
slack_compatibility_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
status.go MM-24544: Fix crash in (*Status).ToClusterJson (#14484) 2020-08-13 17:30:38 +05:30
status_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
suggest_command.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
suggest_command_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
switch_request.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
switch_request_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
system.go Moving diagnostics into a service (#14832) 2020-09-08 20:30:54 +02:00
system_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
team.go [MM-26390] Ensures the generated team name in sampledata is a valid one (#14901) 2020-06-25 16:00:12 +02:00
team_member.go MM_22682_Centralize_ID_Validation (#14237) 2020-05-07 13:27:35 -04:00
team_member_test.go Remove remaining t.Fatal from the codebase (#13876) 2020-02-13 17:53:23 +01:00
team_search.go [MM-26969] Add team filters to search teams (#15065) 2020-07-27 15:11:39 -04:00
team_search_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
team_stats.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
team_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
terms_of_service.go MM_22682_Centralize_ID_Validation (#14237) 2020-05-07 13:27:35 -04:00
terms_of_service_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
token.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
typing_request.go Expand Plugin and REST APIs to trigger user typing event (#14331) 2020-06-16 11:41:05 +02:00
typing_request_test.go Expand Plugin and REST APIs to trigger user typing event (#14331) 2020-06-16 11:41:05 +02:00
upload_session.go [MM-26812] Add support for resumable file uploads (#15252) 2020-09-15 21:28:25 +02:00
upload_session_test.go [MM-26812] Add support for resumable file uploads (#15252) 2020-09-15 21:28:25 +02:00
user.go MM-27456: Use reflect-free serialization for hot structs (#15171) 2020-08-13 03:35:57 -04:00
user_access_token.go MM_22682_Centralize_ID_Validation (#14237) 2020-05-07 13:27:35 -04:00
user_access_token_search.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
user_access_token_search_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
user_access_token_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
user_autocomplete.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
user_count.go [MM-26574] Add role filters to get users, users search and add getFilteredUserStats endpoint (#14998) 2020-07-16 12:37:26 -04:00
user_get.go [MM-26574] Add role filters to get users, users search and add getFilteredUserStats endpoint (#14998) 2020-07-16 12:37:26 -04:00
user_search.go [MM-26574] Add role filters to get users, users search and add getFilteredUserStats endpoint (#14998) 2020-07-16 12:37:26 -04:00
user_search_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
user_terms_of_service.go MM_22682_Centralize_ID_Validation (#14237) 2020-05-07 13:27:35 -04:00
user_terms_of_Service_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
user_test.go MM-7881 non-case sensitive username notifications off by default (#13851) 2020-03-25 09:43:25 -07:00
users_stats.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
utils.go Replacing blacklist with blocklist (#15082) 2020-07-22 08:30:10 +02:00
utils_test.go Replacing blacklist with blocklist (#15082) 2020-07-22 08:30:10 +02:00
version.go Bump app version to 5.28 (#15005) 2020-07-20 21:28:26 +02:00
version_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
websocket_client.go MM-24547: Fix deadlock in pingTimeoutTimer (#14440) 2020-05-04 22:01:53 -07:00
websocket_client_test.go MM-25439: Skip SuddenClose flaky test (#14628) 2020-05-22 02:44:42 -07:00
websocket_message.go Add metric warning support (announcement bar and DM) (#14483) 2020-07-22 20:32:21 -07:00
websocket_message_test.go MM-21481: Fixed several issues from user marshalling (#13627) 2020-01-16 09:18:08 +01:00
websocket_request.go Added some godocs to a few websocket related structs (#13451) 2019-12-24 08:51:03 -05:00
websocket_request_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00