This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/tests/unit/lib
Martin Brennan 02f7035cbe
DEV: Improve uppy plugin base and large file handling (#14395)
We want to be able to skip plugins from doing any work under
certain conditions, and to be able raise their own errors if
a file being uploaded is completely incompatible with the concept
of the plugin if it is enabled. For example, the UppyChecksum plugin
is happy to skip hashing large files, but the UppyUploadEncrypt
plugin from discourse-encrypt relies on the file being encrypted
to do anything with the upload, so it is considered a blocking
error if the user uploads a file that is too large.

This improves the base functions available in uppy-plugin-base and
extendable-uploader to handle this, as well as introducing a
HUGE_FILE_THRESHOLD_BYTES variable which represents 100MB in bytes,
matching the ExternalUploadManager::DOWNLOAD_LIMIT on the
server side.

discourse-encrypt to take advantage of this new functionality will
follow in discourse/discourse-encrypt#141
2021-09-21 08:41:07 +10:00
..
allow-lister-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
bookmark-test.js FIX: flaky javascript tests with fake timers (#13235) 2021-06-11 13:51:27 +04:00
category-badge-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
click-track-edit-history-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
click-track-profile-page-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
click-track-test.js FIX: Some absolute links were causing full page reloads (#13377) 2021-06-15 12:30:36 +10:00
computed-test.js DEV: prettier 2.2.1 (#11862) 2021-01-27 12:39:20 +01:00
emoji-store-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
emoji-test.js DEV: Remove JoyPixels emoji option (#12197) 2021-02-26 07:44:52 -05:00
formatter-test.js DEV: prettier 2.2.1 (#11862) 2021-01-27 12:39:20 +01:00
get-url-test.js FIX: subfolder prefix should work even if url starts with the prefix (#12284) 2021-03-04 16:46:22 -05:00
highlight-search-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
i18n-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
icon-library-test.js FIX: Escape Font Awesome icons (#12421) 2021-03-17 16:11:40 +03:00
key-value-store-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
keyboard-shortcuts-test.js DEV: Add more keyboard shortcut acceptance tests (#13280) 2021-06-04 14:04:20 +10:00
link-lookup-test.js FIX: Normalize links by converting them to lower case 2020-12-11 11:16:51 -05:00
link-mentions-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
load-script-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
oneboxer-test.js FIX: Tests were broken in Firefox (#12456) 2021-03-22 11:35:51 +11:00
parse-bbcode-tag-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
preload-store-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
pretty-text-test.js FIX: Add word boundaries to replace and tag watched words (#13405) 2021-06-18 18:54:06 +03:00
sanitizer-test.js SECURITY: Sanitize d-popover attributes (#13958) 2021-08-05 16:39:17 +03:00
screen-track-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
search-test.js DEV: Add plugin API to extend search results (#12966) 2021-06-15 15:32:41 +10:00
sharing-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
text-direction-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
time-utils-test.js FEATURE: make date pickers in the bookmarks UI and topic timer UI consistent with all other pickers (#13365) 2021-06-15 16:54:00 +04:00
timeframes-builder-test.js DEV: select-kit third major update with focus on accessibility (#13303) 2021-08-23 10:44:19 +02:00
to-markdown-test.js FEATURE: support mark tag (#12088) 2021-02-15 21:47:30 +05:30
upload-short-url-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
uploads-test.js FEATURE: Initial implementation of direct S3 uploads with uppy and stubs (#13787) 2021-07-28 08:42:25 +10:00
uppy-checksum-plugin-test.js DEV: Improve uppy plugin base and large file handling (#14395) 2021-09-21 08:41:07 +10:00
uppy-media-optimization-plugin-test.js DEV: Refactor uppy plugin interfaces (#14275) 2021-09-10 09:09:47 +10:00
url-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
user-search-test.js DEV: Correct typos and spelling mistakes (#12812) 2021-05-21 11:43:47 +10:00
utilities-test.js FIX: Do not suggest Emoji when in open code blocks (#14337) 2021-09-14 17:37:14 +03:00