-
Notifications
You must be signed in to change notification settings - Fork 5
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
LIBHYDRA-548: Configuraiton for communicating with Plastron for Publish Jobs #385
LIBHYDRA-548: Configuraiton for communicating with Plastron for Publish Jobs #385
Conversation
Publish job additions
Using form_with instead for the checkbox and form submission and updated the check for visbility in the submit method https://umd-dit.atlassian.net/browse/LIBHYDRA-548
Adding hidden flag for the Plastron command Updated the visibility variable in publish_job to force_hidden https://umd-dit.atlassian.net/browse/LIBHYDRA-548
- Renamed PublishJobController to PublishJobsController - Use resourceful routing in the routes.rb config - Use the URL-helper functions instead of hard-coding URLs - Changed the label of the force_hidden checkbox to fit the logic of the flag: "Suppress these items in search results" - Fixed join character in the message body for the publish message
Parallels the other *JobsChannel classes
Code review for LIBHYDRA-548
Adding status messages for the different states of the publish job Removing old code to set the state to use the partial status html instead Also added some breaks between the buttons when viewing. https://umd-dit.atlassian.net/browse/LIBHYDRA-548
app/models/publish_job.rb
Outdated
publish_in_progress: 3, | ||
publish_complete: 4, | ||
publish_incomplete: 5, | ||
publish_error: 6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Plastron also returns unpublish_complete
, unpublish_incomplete
, and unpublish_error
, so those need to be added to this enum.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just one update to the PublishJob state enum needed.
These states are returned by plastron https://umd-dit.atlassian.net/browse/LIBHYDRA-548
The tests are failing because of a mismatch between the final db schema and the test fixtures. |
Fixed failing tests
https://umd-dit.atlassian.net/browse/LIBHYDRA-548