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

Hub and efile submission page cleanups #4382

Merged
merged 8 commits into from
Mar 25, 2024

Conversation

embarnard
Copy link
Contributor

@embarnard embarnard commented Mar 19, 2024

This PR shows the efile-error on the index page if the submission is in waiting or notified-of-rejected states, adds a transition to rejected button on the show page for testing only, cleans up the show a bit and corrects some of the descriptions on the efile-errors form page
Screenshot 2024-03-22 at 2 57 49 PM

Copy link

Heroku app: https://gyr-review-app-4382-fb3c763897c9.herokuapp.com/
View logs: heroku logs --app gyr-review-app-4382 (optionally add --tail)

@embarnard embarnard force-pushed the allow-transition-from-failed-to-rejected-for-tesing branch from 3541d9f to 879ce6e Compare March 21, 2024 21:26
@embarnard embarnard changed the title Hub and efile submission page changes Hub and efile submission page cleanups Mar 22, 2024
@embarnard embarnard marked this pull request as ready for review March 22, 2024 19:09
Comment on lines 61 to 62
<% errors = submission&.efile_submission_transitions&.where(to_state: 'rejected')&.last&.efile_errors if ['waiting', 'notified_of_rejection'].include?(submission.current_state) %>
<% errors&.each do |error| %>
Copy link
Contributor

Choose a reason for hiding this comment

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

For for readability sakes:

<% if ['waiting', 'notified_of_rejection'].include?(submission.current_state)
    errors = submission&.efile_submission_transitions&.where(to_state: 'rejected')&.last&.efile_errors  
end
%>

@embarnard embarnard merged commit ae00b01 into main Mar 25, 2024
7 checks passed
@embarnard embarnard deleted the allow-transition-from-failed-to-rejected-for-tesing branch March 25, 2024 15:43
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.

None yet

2 participants