mattermost/api4
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
..
api.go [MM-26812] Add support for resumable file uploads (#15252) 2020-09-15 21:28:25 +02:00
apitestlib.go [MM-27967] api4/config_test: fix flaky test if siteurl is already set (#15403) 2020-09-08 12:44:18 +03:00
bleve.go [MM-20979] Add first implementation of the Bleve search engine (#14562) 2020-05-20 01:29:55 +02:00
bleve_test.go MM-27149: optimize initBasic (#15063) 2020-07-22 13:50:33 +05:30
bot.go api4/bot: fix permission check in convert handler (#15196) 2020-08-07 09:41:22 +03:00
bot_local.go [MM-25648] api4: add user/bot convert endpoints (#14877) 2020-07-17 10:00:43 +03:00
bot_test.go MM-27149: optimize initBasic (#15063) 2020-07-22 13:50:33 +05:30
brand.go MM-25543: New Admin Roles (#14960) 2020-08-21 16:49:31 -04:00
brand_test.go MM-27149: optimize initBasic (#15063) 2020-07-22 13:50:33 +05:30
channel.go ChannelStore migration Part 2 (#15405) 2020-09-15 23:18:30 +05:30
channel_category.go MM-27722 Make sidebar category validation silently reject bad channel IDs (#15324) 2020-08-31 09:45:50 -04:00
channel_category_test.go MM-27722 Make sidebar category validation silently reject bad channel IDs (#15324) 2020-08-31 09:45:50 -04:00
channel_local.go [MM-25659] ability to permanent delete channel through client (#15202) 2020-08-14 14:12:39 +05:30
channel_test.go [MM-27274] Add permission to convert public channel to private (#15370) 2020-09-03 13:41:07 -04:00
cluster.go MM-25543: New Admin Roles (#14960) 2020-08-21 16:49:31 -04:00
cluster_test.go MM-27149: optimize initBasic (#15063) 2020-07-22 13:50:33 +05:30
command.go MM-26339 - Add context and CommandArgs to dynamic autocomplete calls (#14940) 2020-07-02 08:08:58 -07:00
command_help_test.go Passing t to all tests setup functions (#13841) 2020-02-10 19:31:41 +01:00
command_local.go MM-24847 MM-24484 MM-24850 MM-24849 - local mode for commands (#14571) 2020-05-31 16:57:04 +02:00
command_test.go MM-24847 MM-24484 MM-24850 MM-24849 - local mode for commands (#14571) 2020-05-31 16:57:04 +02:00
commands_test.go Include deleted channels on get user channels endpoint (#13877) 2020-03-02 22:15:15 +01:00
compliance.go MM-25543: New Admin Roles (#14960) 2020-08-21 16:49:31 -04:00
config.go MM-25543: New Admin Roles (#14960) 2020-08-21 16:49:31 -04:00
config_local.go MM-25543: New Admin Roles (#14960) 2020-08-21 16:49:31 -04:00
config_test.go [MM-27967] api4/config_test: fix flaky test if siteurl is already set (#15403) 2020-09-08 12:44:18 +03:00
cors_test.go Removing all FakeApp usages (#14174) 2020-06-12 13:43:50 +02:00
data_retention.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
data_retention_test.go MM-27149: optimize initBasic (#15063) 2020-07-22 13:50:33 +05:30
elasticsearch.go MM-25543: New Admin Roles (#14960) 2020-08-21 16:49:31 -04:00
elasticsearch_test.go MM-27149: optimize initBasic (#15063) 2020-07-22 13:50:33 +05:30
emoji.go MM-22785 audit server CLI (#14144) 2020-04-08 00:52:30 -04:00
emoji_test.go Passing t to all tests setup functions (#13841) 2020-02-10 19:31:41 +01:00
file.go [MM-27293] Remove heap pre-allocation for file uploads (#15143) 2020-08-03 08:25:47 +02:00
file_test.go MM-22056: Fix flaky test TestUploadFiles (#14234) 2020-04-07 07:09:04 -07:00
group.go MM-25543: New Admin Roles (#14960) 2020-08-21 16:49:31 -04:00
group_local.go MM-25073/MM-25074: local mode for getGroupsByChannel and getGroupsByTeam (#14668) 2020-06-01 12:01:05 +02:00
group_test.go MM-27149: optimize initBasic (#15063) 2020-07-22 13:50:33 +05:30
handlers.go MM-26065: Reverts Brotli encoding. (#14834) 2020-06-16 18:15:31 -04:00
handlers_test.go MM-27149: optimize initBasic (#15063) 2020-07-22 13:50:33 +05:30
helpers.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
image.go MM-23185 - Markdown image hosted by plugins are not shown if l… (#14185) 2020-04-01 11:45:26 +03:00
image_test.go MM-27149: optimize initBasic (#15063) 2020-07-22 13:50:33 +05:30
integration_action.go MM-21898 - Part 1: Generate and use an interface instead of *A… (#13840) 2020-02-13 13:26:58 +01:00
integration_action_test.go Passing t to all tests setup functions (#13841) 2020-02-10 19:31:41 +01:00
job.go MM-25543: New Admin Roles (#14960) 2020-08-21 16:49:31 -04:00
job_test.go [MM-19640] Retrieve Compliance files from the System Console (#14976) 2020-07-27 08:37:04 -04:00
ldap.go Implement LDAP Certificate (#15361) 2020-09-14 12:53:42 -06:00
ldap_local.go Implement LDAP Certificate (#15361) 2020-09-14 12:53:42 -06:00
ldap_test.go Implement LDAP Certificate (#15361) 2020-09-14 12:53:42 -06:00
license.go Moving diagnostics into a service (#14832) 2020-09-08 20:30:54 +02:00
license_local.go Removing all FakeApp usages (#14174) 2020-06-12 13:43:50 +02:00
license_test.go MM-27149: optimize initBasic (#15063) 2020-07-22 13:50:33 +05:30
main_test.go MM-27744 disable Zap for unit tests. (#15398) 2020-09-09 15:25:55 -04:00
oauth.go MM-22785 audit server CLI (#14144) 2020-04-08 00:52:30 -04:00
oauth_test.go MM-27149: optimize initBasic (#15063) 2020-07-22 13:50:33 +05:30
openGraph.go move cache2 package to cache (#14921) 2020-07-18 13:31:06 +05:30
openGraph_test.go Passing t to all tests setup functions (#13841) 2020-02-10 19:31:41 +01:00
plugin.go MM-25543: New Admin Roles (#14960) 2020-08-21 16:49:31 -04:00
plugin_local.go [MM-27022] Add marketplace endpoints to local mode (#15053) 2020-08-19 13:54:46 +02:00
plugin_test.go [MM-27022] Add marketplace endpoints to local mode (#15053) 2020-08-19 13:54:46 +02:00
post.go Fix panic in api4.searchPosts (#15410) 2020-09-08 20:36:59 +02:00
post_local.go MM-25071: local mode for getPostsForChannel (#14848) 2020-06-22 14:06:37 +05:30
post_test.go StatusStore migration (#14978) 2020-08-13 11:12:08 +05:30
preference.go MM-22273 New auditing system (phase 1) (#13967) 2020-03-12 15:50:21 -04:00
preference_test.go MM-26410/MM-26825 Improve syncing between favorites category and preferences (#15048) 2020-07-22 09:04:40 -04:00
reaction.go MM_22682_Centralize_ID_Validation (#14237) 2020-05-07 13:27:35 -04:00
reaction_test.go Removing all FakeApp usages (#14174) 2020-06-12 13:43:50 +02:00
role.go MM-25543: New Admin Roles (#14960) 2020-08-21 16:49:31 -04:00
role_local.go api4/role: add role endpoints to local mode (#14876) 2020-06-23 12:56:52 +03:00
role_test.go MM-27149: optimize initBasic (#15063) 2020-07-22 13:50:33 +05:30
saml.go MM-22273 New auditing system (phase 1) (#13967) 2020-03-12 15:50:21 -04:00
saml_test.go MM-27149: optimize initBasic (#15063) 2020-07-22 13:50:33 +05:30
scheme.go MM-25543: New Admin Roles (#14960) 2020-08-21 16:49:31 -04:00
scheme_test.go MM-27149: optimize initBasic (#15063) 2020-07-22 13:50:33 +05:30
status.go MM-23484 - add simple validation to getUserStatusesByIds (#14158) 2020-03-31 20:28:26 +02:00
status_test.go MM-23484 - add simple validation to getUserStatusesByIds (#14158) 2020-03-31 20:28:26 +02:00
system.go MM-25543: New Admin Roles (#14960) 2020-08-21 16:49:31 -04:00
system_local.go [MM-25652] Add /integrity endpoint to local mode API (#15033) 2020-07-27 10:20:22 +02:00
system_test.go app/testEmail: remove a setting that blocks testEmail (#15022) 2020-08-15 00:43:42 +03:00
team.go [MM-23651] No more than 256 members are allowed to be invited (#15414) 2020-09-11 11:02:59 -04:00
team_local.go Migration of TeamStore Part 1 (#15246) 2020-09-03 00:29:57 -04:00
team_test.go [MM-23651] No more than 256 members are allowed to be invited (#15414) 2020-09-11 11:02:59 -04:00
terms_of_service.go Removing all FakeApp usages (#14174) 2020-06-12 13:43:50 +02:00
terms_of_service_test.go Removing all FakeApp usages (#14174) 2020-06-12 13:43:50 +02:00
upload.go [MM-26812] Add support for resumable file uploads (#15252) 2020-09-15 21:28:25 +02:00
upload_test.go [MM-26812] Add support for resumable file uploads (#15252) 2020-09-15 21:28:25 +02:00
user.go [MM-26812] Add support for resumable file uploads (#15252) 2020-09-15 21:28:25 +02:00
user_local.go [MM-25645] api4/user: add migrate_auth endpoints (#14966) 2020-08-31 14:56:36 +03:00
user_test.go Migration of TeamStore Part 1 (#15246) 2020-09-03 00:29:57 -04:00
user_viewmembers_test.go Passing t to all tests setup functions (#13841) 2020-02-10 19:31:41 +01:00
webhook.go MM-22785 audit server CLI (#14144) 2020-04-08 00:52:30 -04:00
webhook_test.go WebhookStore migration (#15042) 2020-07-31 15:53:10 +02:00
websocket.go MM-21898 - Part 1: Generate and use an interface instead of *A… (#13840) 2020-02-13 13:26:58 +01:00
websocket_test.go MM-27149: optimize initBasic (#15063) 2020-07-22 13:50:33 +05:30