Skip to content
This repository has been archived by the owner on Jun 20, 2022. It is now read-only.

Remove employment income manual code #155

Merged
merged 1 commit into from
Sep 8, 2015

Conversation

tommyp
Copy link
Contributor

@tommyp tommyp commented Aug 20, 2015

This manual was used as a placeholder to demonstrate Manuals Frontend
before we had any content. The placeholder is no longer being used so
this commit removes the before_filter, the tests and a rake task which
publishes a route for the manual.

@jamiecobbett
Copy link
Contributor

Oh, the memories 😿

expect_manual_title_to_be("This prototype of the Employment Income Manual is no longer available")
expect(page.status_code).to eq(200)
end

context "prototype HMRC manual has now been published for real" do
Copy link
Contributor

Choose a reason for hiding this comment

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

It probably makes sense to get rid of this test too, it doesn't make sense with the fallback code gone.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh yeah! Deleted it. I forgot to read any further down the file...

@tommyp tommyp force-pushed the remove-employment-income-manual-code branch from da087b1 to da656b2 Compare August 20, 2015 15:56
base_path: "/guidance/employment-income-manual",
type: "prefix",
publishing_app: 'manuals-frontend',
rendering_app: 'manuals-frontend'
Copy link
Contributor

Choose a reason for hiding this comment

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

We should make sure that this route is properly withdrawn too.

@jennyd
Copy link
Contributor

jennyd commented Aug 26, 2015

The view for the manual won't be used any more, so we should remove that too.

@tommyp tommyp force-pushed the remove-employment-income-manual-code branch from da656b2 to fd18f3a Compare August 28, 2015 10:48
@tommyp
Copy link
Contributor Author

tommyp commented Aug 28, 2015

I've made use of the new SpecialRouteUnpublisher that I've added in alphagov/gds-api-adapters#350 in order to remove the route for this. That PR needs merged and gds-api-adapters needs bumped in order for this to go green.

This manual was used as a placeholder to demonstrate Manuals Frontend
before we had any content. The placeholder is no longer being used so
this commit removes the `before_filter`, the tests, the views and
changes the rake task which publishes the route for one which
publishes a gone route.
@tommyp tommyp force-pushed the remove-employment-income-manual-code branch from fd18f3a to 7e078d1 Compare September 8, 2015 09:25
@tommyp
Copy link
Contributor Author

tommyp commented Sep 8, 2015

I've updated this PR to publish a gone content item to the Publishing API. This code can be removed after this is merged and deployed.

jamiecobbett added a commit that referenced this pull request Sep 8, 2015
…-code

Remove employment income manual code
@jamiecobbett jamiecobbett merged commit becb545 into master Sep 8, 2015
@jamiecobbett jamiecobbett deleted the remove-employment-income-manual-code branch September 8, 2015 10:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants