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

Turn on characterization in development environment based on ENV var. #535

Merged
merged 5 commits into from
Mar 8, 2018

Conversation

cwant
Copy link
Contributor

@cwant cwant commented Mar 6, 2018

No description provided.

@@ -56,5 +56,5 @@
config.active_storage.service = (ENV['ACTIVE_STORAGE_SERVICE'] || :local).to_sym

# FITS characterization
config.run_fits_characterization = false
config.run_fits_characterization = ENV['RUN_FITS_CHARACTERIZATION'].present? || false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe just throw a small note in the README about how to enable fits in development mode using this ENV VAR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shoot, was going to do that, completely forgot 👍

murny
murny previously approved these changes Mar 6, 2018
Copy link
Contributor

@murny murny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gif

@@ -141,6 +141,7 @@ def add_files(files)
self.ordered_members += [unlocked_fileset]
if Rails.configuration.run_fits_characterization
Hydra::Works::CharacterizationService.run(unlocked_fileset.original_file)
unlocked_fileset.original_file.save
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comment here for motivation about this change:

22dbcb6#r27976028

@cwant cwant merged commit 11c0317 into master Mar 8, 2018
@cwant cwant deleted the cwant/fits_on_dev branch March 8, 2018 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants