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

Task/fix grant redirect on slug change #1056

Merged
merged 5 commits into from
Jun 11, 2024

Conversation

jseraf
Copy link
Collaborator

@jseraf jseraf commented Jun 11, 2024

Closes #1051

Fixes redirect on change to the grant's friendly URL.

@jseraf jseraf merged commit de71c49 into develop Jun 11, 2024
@jseraf jseraf mentioned this pull request Jun 24, 2024
@lmkw
Copy link
Contributor

lmkw commented Jun 26, 2024

i put in a short name that violated rules (had a character, !, that's not allowed) and when i clicked Update it gave me an error (expected behavior). then i went back and changed the short name to something that was acceptable but when i clicked Update another time, it gave me the same error and in the URL i could see it was using the incorrect short name (the one with the !). then i tried it again, editing the short name to the same acceptable one, and it finally "took".

error message i got when short name was: https://[host[/grants/againagain!
The page you were looking for doesn't exist.

You may have mistyped the address or the page may have moved.

[Visit the homepage to see a list of current grants.]

@jseraf
Copy link
Collaborator Author

jseraf commented Jun 27, 2024

I think this is due to norman/friendly_id#1012

jseraf added a commit that referenced this pull request Jul 9, 2024
* Task/submission review assignments (#1046)

* WIP: misc formatting, typos, cleanup

* WIP: add modal to layout

* WIP: add modal controller

* WIP: add assign review modal

* WIP: Use modal on grant submissions index

* WIP: remove policy scope from submissions controller

* WIP: add submission.eligible_reviewers specs

* WIP: update submission index specs

* WIP: display explanation when reviewer/review limits reached

* WIP: resolve merge conflict

* WIP: additional modal close options

* Redirect opt-out reviewer to grant, update specs (#1047)

* Move modal frame to a partial (#1048)

* Update jquery-ui-rails gem (#1049)

* Task/rework reviewer assignment page (#1053)

* Redesign reviewer tab and review assignment process

* Add assignment of reviews to the Submission page

* Task/update manage links (#1055)

* Update manage grant links

* Add specs for panel and permissions links

* WIP: remove condition for edit link display

* Task/fix grant redirect on slug change (#1056)

* Reload grant on edit to get current friendly url

* WIP: add friendly url spec, remove instance variables

* WIP: rubocop refactor, code and comment cleanup

* WIP: add draft banner specs

* Task/misc updates (#1057)

* WIP: removed unused scope

* WIP: delete unused partial

* WIP: Clarify tool tip text for score count and scores

* WIP: Remove unused css file

* WIP: prevent page bouncing on clear file button click

* WIP: remove file clear button after click

* Reduce n+1 queries on panel page

* Bump rails, hotwire

* Add stimulus controller to Remove disallowed characters from slug input

* Hide assign review on Submission index after review period

* Code cleanup

* Bump version, update release notes
@jseraf jseraf mentioned this pull request Jul 9, 2024
jseraf added a commit that referenced this pull request Jul 10, 2024
* Task/submission review assignments (#1046)

* WIP: misc formatting, typos, cleanup

* WIP: add modal to layout

* WIP: add modal controller

* WIP: add assign review modal

* WIP: Use modal on grant submissions index

* WIP: remove policy scope from submissions controller

* WIP: add submission.eligible_reviewers specs

* WIP: update submission index specs

* WIP: display explanation when reviewer/review limits reached

* WIP: resolve merge conflict

* WIP: additional modal close options

* Redirect opt-out reviewer to grant, update specs (#1047)

* Move modal frame to a partial (#1048)

* Update jquery-ui-rails gem (#1049)

* Task/rework reviewer assignment page (#1053)

* Redesign reviewer tab and review assignment process

* Add assignment of reviews to the Submission page

* Task/update manage links (#1055)

* Update manage grant links

* Add specs for panel and permissions links

* WIP: remove condition for edit link display

* Task/fix grant redirect on slug change (#1056)

* Reload grant on edit to get current friendly url

* WIP: add friendly url spec, remove instance variables

* WIP: rubocop refactor, code and comment cleanup

* WIP: add draft banner specs

* Task/misc updates (#1057)

* WIP: removed unused scope

* WIP: delete unused partial

* WIP: Clarify tool tip text for score count and scores

* WIP: Remove unused css file

* WIP: prevent page bouncing on clear file button click

* WIP: remove file clear button after click

* Reduce n+1 queries on panel page

* Bump rails, hotwire

* Add stimulus controller to Remove disallowed characters from slug input

* Hide assign review on Submission index after review period

* Code cleanup

* Bump version, update release notes
@jseraf jseraf deleted the task/fix-grant-redirect-on-slug-change branch July 24, 2024 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Redirect breaks when grant short name changes
2 participants