discourse/spec/system
Martin Brennan e8a6079c29
FIX: Video thumbnail uploads interfering with subsequent uploads (#23216)
Short answer -- the problem is the video thumbnail generator & uploader
code added a couple of months back in f144c64e13.
It was implemented as another Mixin which overrides `this._uppyInstance`
when uploading the video thumbnail after the initial upload is complete,
which means the composer's `this._uppyInstance` value is overridden,
and it loses all of its preprocessors & upload code.

This is generally a problem with the Mixin based architecture that I
used for the Uppy code, which we need to remove at some point and
refacotr.

The most ideal thing to do here would be to convert this video thumbnail
code into an Uppy
[postprocessor](https://uppy.io/docs/uppy/#addpostprocessorfn) plugin,
which runs on each upload after they are complete. I started looking
into this, and the main hurdle here is adding support to tracking the
progress of postprocessors to
[ExtendableUploader](cf42466dea/app/assets/javascripts/discourse/app/mixins/extendable-uploader.js)
so that is out of scope at this time.

The fix here makes it so the ComposerVideoThumbnailUppy code is no
longer a Mixin, but acts more like a normal class, a pattern which
we have used in chat. I also clean up a lot of the thumbnail uploader
code and remove some unnecessary things.

Attempted to add a system spec, but video streaming does not work
in Chrome for Testing at this time, and it is needed for the
onloadedmetadata event.
2023-08-24 14:04:26 +10:00
..
composer DEV: Remove OpenComposer mixin and refactor related logic (#23015) 2023-08-11 09:53:44 +01:00
emojis DEV: Remove superfluous js: true metadata (#21960) 2023-06-07 09:26:58 +08:00
helpers DEV: make sure we don't load all data into memory when exporting chat messages (#22276) 2023-07-12 18:52:18 +04:00
page_objects FIX: Video thumbnail uploads interfering with subsequent uploads (#23216) 2023-08-24 14:04:26 +10:00
user_page FEATURE: Count only approved flagged posts in user pages (#22799) 2023-07-31 13:33:10 +08:00
admin_customize_form_templates_spec.rb DEV: Add support for uploads to form templates (#22232) 2023-06-28 12:49:05 -07:00
admin_customize_themes_spec.rb DEV: Remove superfluous js: true metadata (#21960) 2023-06-07 09:26:58 +08:00
bookmarks_spec.rb DEV: Fix bookmark system spec flaky (#22630) 2023-07-17 15:34:11 +10:00
category_edit_spec.rb DEV: Remove superfluous js: true metadata (#21960) 2023-06-07 09:26:58 +08:00
category_topics_spec.rb DEV: Fix flaky system test in system/category_topics_spec.rb (#22652) 2023-07-18 07:35:47 +08:00
composer_uploads_spec.rb FIX: Video thumbnail uploads interfering with subsequent uploads (#23216) 2023-08-24 14:04:26 +10:00
csv_exports_spec.rb DEV: find_each in CSV exports (#22573) 2023-08-17 12:33:52 +10:00
custom_sidebar_sections_spec.rb FIX: sidebar URL full reload when anchor (#23121) 2023-08-24 08:39:30 +10:00
discovery_breadcrumb_navigation_spec.rb DEV: Fix random typos (#22078) 2023-06-13 22:02:21 +02:00
dismissing_new_spec.rb FIX: Dismissing unread posts did not publish changes to other clients (#22584) 2023-07-13 18:05:56 +08:00
editing_sidebar_categories_navigation_spec.rb UX: Remove section heading for community section (#22405) 2023-07-11 09:40:37 +08:00
editing_sidebar_community_section_spec.rb FIX: display customised community section button when no secondary links (#22948) 2023-08-03 12:53:34 +10:00
editing_sidebar_tags_navigation_spec.rb FIX: Loading more tags in edit nav menu tags modal not working (#22770) 2023-07-25 13:44:25 +08:00
ember_deprecation_test.rb DEV: Remove superfluous js: true metadata (#21960) 2023-06-07 09:26:58 +08:00
fast_edit_spec.rb DEV: Remove superfluous js: true metadata (#21960) 2023-06-07 09:26:58 +08:00
filtering_topics_spec.rb FIX: /filter route input field not updating on route change (#23119) 2023-08-17 09:04:48 +08:00
group_card_spec.rb FIX: Member Highlights on Group Cards (#22828) 2023-07-28 14:33:42 +00:00
hashtag_autocomplete_spec.rb FIX: Cook hashtags in small action posts (#23008) 2023-08-08 15:38:37 +10:00
network_disconnected_spec.rb DEV: Skip flakey network disconnected spec (#23087) 2023-08-14 12:24:16 -05:00
new_topic_list_spec.rb UX: update /new toggle styles, class names (#23154) 2023-08-21 09:34:12 +08:00
reviewables_spec.rb UX: Add show more button to long post queued reviewables (#23075) 2023-08-14 10:11:30 -07:00
s3_uploads_spec.rb FIX: Video thumbnail uploads interfering with subsequent uploads (#23216) 2023-08-24 14:04:26 +10:00
scroll_manager_service_spec.rb DEV: Move all scroll position reset/remember logic to a shared service (#22552) 2023-07-13 13:40:08 +01:00
search_spec.rb DEV: Remove superfluous js: true metadata (#21960) 2023-06-07 09:26:58 +08:00
tag_notification_level_spec.rb DEV: Remove superfluous js: true metadata (#21960) 2023-06-07 09:26:58 +08:00
tag_synonyms_spec.rb DEV: Fix random typos (#22078) 2023-06-13 22:02:21 +02:00
topic_list_focus_spec.rb A11Y: Fix selecting topic when navigation via keyboard (#22996) 2023-08-07 17:05:16 -04:00
topic_page_spec.rb DEV: Try to de-flake topic page specs (#22065) 2023-06-13 11:05:19 +02:00
user_preferences_interface_spec.rb DEV: Remove superfluous js: true metadata (#21960) 2023-06-07 09:26:58 +08:00
user_preferences_navigation_spec.rb DEV: Remove superfluous js: true metadata (#21960) 2023-06-07 09:26:58 +08:00
user_selector_spec.rb DEV: Remove superfluous js: true metadata (#21960) 2023-06-07 09:26:58 +08:00
viewing_category_spec.rb DEV: Remove superfluous js: true metadata (#21960) 2023-06-07 09:26:58 +08:00
viewing_group_members_spec.rb FIX: Infinite loading broken on group members list (#23214) 2023-08-24 08:50:20 +08:00
viewing_navigation_menu_preferences_spec.rb UX: Use modals to edit categories and tags that appear in sidebar (#22295) 2023-06-28 07:20:31 +08:00
viewing_sidebar_as_anonymous_user_spec.rb UX: support links in tag descriptions (#22994) 2023-08-16 11:43:54 -04:00
viewing_sidebar_mobile_spec.rb UX: Remove section heading for community section (#22405) 2023-07-11 09:40:37 +08:00
viewing_sidebar_spec.rb UX: support links in tag descriptions (#22994) 2023-08-16 11:43:54 -04:00
viewing_user_menu_spec.rb UX: Move group mentions notifications into the reply tab (#22562) 2023-07-13 06:52:03 +08:00
viewing_user_private_messages_spec.rb FIX: Broken group messages inboxes when group name is mixed case (#22183) 2023-06-19 17:36:04 +08:00