Refactoring for hopefully making 4195 easier #4243
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This morning, I thought I'd tackle one of the jobs. However, it is not immediately obvious how I should proceed (my Hyrax w/ Valkyrie skills are academic at best). These commits reflect a bit of work to get things into a state that I could make it easier to incorporate Valkyrie.
What would be helpful is to see what the next work should be. I attempted to follow #4213, but did not find that helpful in the limited time that I had to look into the problem. My hope is that this is a "leaves the code-base a little better than before I touched it" set of commits.
I'm very curious what the next steps are regarding Valkyrizing this particular job. I feel once I see a pattern, I may be able to crank out a few more.
Below are the two commits and their messages.
Refactoring ImportUrlJob to ease Valkyrization
369f318
The code changes reflect a simple re-structuring that will make future
work easier:
instance variables
Refactoring related to #4195
Refactoring object to leverage instance vars
bfd316e
Prior to this commit, there were parameters passed that could be
instead assigned at the beginning of the
#perform
method. In doing,we have less chatter on the method calls.
This also involved extract additional instance variables that were
commonly used throughout.
Refactoring related to #4195
@samvera/hyrax-code-reviewers