FLUID-3725: Refactor the Uploader's file queue subcomponent

Metadata

Source
FLUID-3725
Type
Improvement
Priority
Critical
Status
Open
Resolution
N/A
Assignee
Colin Clark
Reporter
Justin Obara
Created
2010-09-09T13:33:25.828-0400
Updated
2014-04-02T15:28:19.287-0400
Versions
  1. 0.6
  2. 0.7
  3. 0.8
  4. 0.8.1
  5. 1.0
  6. 1.1
  7. 1.1.1
  8. 1.1.2
  9. 1.1.3
  10. 1.2beta1
  11. 1.2
  12. 1.2.1
  13. 1.3
  14. 1.4
  15. 1.5
Fixed Versions
N/A
Component
  1. Uploader

Description

The Uploader currently has a helper object called fluid.FileQueue, which contains both the core model for Uploader. It consists of a list of files to be uploaded, as well as a data structure containing state information about the current batch of files.

However, FileQueue also includes a set of convenience methods for operating on the model. It represents an awkward hybrid of traditional OO encapsulation and the familiar "open model" approach found in Infusion. The code in the FileQueue needs to be assessed, reworked, and ultimately split out into a common shared model that each component can use and a real event-aware subcomponent that can manage this model at the various important lifecycle points of the Uploader.