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

Attach CSVs to runs #300

Merged
merged 1 commit into from
Jan 18, 2021
Merged

Attach CSVs to runs #300

merged 1 commit into from
Jan 18, 2021

Conversation

adrianna-chang-shopify
Copy link
Contributor

Smallish PR, as ActiveStorage handles all of the complexity associated with attaching an uploaded file to an ActiveRecord.
This PR attaches a csv_file to our Run model using the has_one_attached macro (this will always be a 1:1 relationship).

The Runner class is now responsible for attaching an incoming csv_file to newly created runs in its #run method. It will be up to the TasksController / CLI to pass the CSV from the UI or command line to the runner.

@adrianna-chang-shopify adrianna-chang-shopify added the CSV Requirements for CSV feature label Jan 14, 2021
Base automatically changed from active-storage-in-dummy to main January 14, 2021 16:33
test/models/maintenance_tasks/runner_test.rb Outdated Show resolved Hide resolved
test/models/maintenance_tasks/runner_test.rb Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CSV Requirements for CSV feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants