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

Remove Consultation presentation #3006

Merged
merged 1 commit into from
Feb 10, 2017
Merged

Conversation

andrewgarner
Copy link
Contributor

Consultations have been migrated and are now rendered by Government Frontend. This removes the frontend code that is no longer needed.

Trello

@@ -1,18 +0,0 @@
class ConsultationsController < DocumentsController
def index
filter_params = params.except(:controller, :action, :format, :_)
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't this still needed? I think it's responsible for this redirect: https://www.gov.uk/government/consultations

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is. Good spot.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should be fixed with 53ddfb7

Copy link
Contributor

@fofr fofr left a comment

Choose a reason for hiding this comment

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

👍

(Also good spot on the bug with final documents attachment published date which we'd missed before)

@andrewgarner andrewgarner changed the title Remove Consultation presentation [DO NOT MERGE] Remove Consultation presentation Feb 2, 2017
@andrewgarner
Copy link
Contributor Author

We can merge this once the 4 unpublishing routes that currently point to whitehall are addressed.

@@ -3,16 +3,4 @@ def index
filter_params = params.except(:controller, :action, :format, :_)
redirect_to publications_path(filter_params.merge(publication_filter_option: 'consultations'))
Copy link
Contributor

Choose a reason for hiding this comment

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

It's a shame to have to leave this in. We could just add the redirect into the router. That might be a bit 'magic' though. Thoughts?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'd prefer it to be in the router. That's where I'd go to look for redirects.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can we do merging of filter_params in the router? Do we still need to?

Copy link
Contributor

Choose a reason for hiding this comment

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

Could we use a prefix route? /government/consultations. That might let the filter params pass through to Whitehall with the explicit routes taking the actual consultation requests to government frontend. Need to check that though as I'm not sure.

Copy link
Contributor Author

@andrewgarner andrewgarner Feb 10, 2017

Choose a reason for hiding this comment

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

Going to merge this and look to address the index action in a subsequent PR.

Consultations have been migrated and are now rendered by Government
Frontend. This removes the frontend code that is no longer needed.
@andrewgarner andrewgarner changed the title [DO NOT MERGE] Remove Consultation presentation Remove Consultation presentation Feb 10, 2017
@andrewgarner andrewgarner merged commit 3977c39 into master Feb 10, 2017
@andrewgarner andrewgarner deleted the remove-consultation-templates branch February 10, 2017 12:40
gpeng added a commit that referenced this pull request Feb 22, 2017
Reverting #3006 has angered the linter.
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

3 participants