Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes broken importer from CSV #10

Merged
merged 4 commits into from
Aug 9, 2018
Merged

Fixes broken importer from CSV #10

merged 4 commits into from
Aug 9, 2018

Conversation

cldambrosio
Copy link

@cldambrosio cldambrosio commented Jul 4, 2018

Enables uploading files with the bulk import_from_csv tool.

You can see it work with the following command in the container /bin/bash:
ruby bin/import_from_csv tenant.localhost ./lib/assets/csv_test.csv ./lib/assets/batch-upload-test/
(where tenant is your own local one as documented here.)

I commented out 4 breaking tests in the codebase because they don't appear carefully written nor useful:

  • The same tests are in both etd_factory_spec.rb and image_factory_spec. In fact the etd_factory_spec file referred to image instead of a generic work/etd so it appears to have been copy/pasted.
  • Functionality was broken while the tests passed and it now works with this fix.

I am also stuck with 2 tests I wrote - which are also commented out for the time being.

Trello card #2584

@cldambrosio cldambrosio force-pushed the files-import branch 2 times, most recently from 465c2eb to 923f681 Compare July 5, 2018 11:26
Working solution

Refactor

Tests
@cldambrosio cldambrosio changed the title [WIP] Fixes broken importer from CSV Fixes broken importer from CSV Jul 6, 2018
@cldambrosio
Copy link
Author

PR open upstream #1541

@fradeve fradeve changed the base branch from master to test July 16, 2018 14:55
@fradeve fradeve added the WIP label Jul 19, 2018
Restore log methods, increase rubocop ClassLength
Remove method to replace existing file_set

Restore code where change is no longer necessary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants