-
-
Notifications
You must be signed in to change notification settings - Fork 824
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Ref] [Import] move metadata calculations to a trait
A lot of the complexity of the import classes comes from complex & convoluted handling of metadata. For reasons now obsolete the metadata is loaded & wrangled into various arrays on the first form and then passed through storing the form in the session object to later forms (which don't have a shared parent). We should be passing user form input around but not metadata as that can be retrieved as needed (and cached for performance). This moves couple of functions out to the metadata and adds a couple of calls to them - more could be done but it would be hard going. Am also open to breaking this into more steps per reviewer preference
- Loading branch information
1 parent
c67a47b
commit dae8945
Showing
5 changed files
with
83 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters