Commit 798eed5
committed
Unpublishes /info page prefix route
After running the migration all /info pages will return a 410.
Originally created the rake task in info-frontend [1] (where the route is
published), however the publishing-api bearer token no longer exists so
moving the tmp migration to publishing-api.
Didn't particularly trust the content-id specified in info-frontend [2]
so pulling the id from the edition in publishing-api. A manual check
shows they're both the same.
Trello:
https://trello.com/c/zODyxEf3/2372-unpublish-info-prefix-route-and-mark-as-gone
[1]: alphagov/info-frontend#1363
[2]: https://github.com/alphagov/info-frontend/blob/07e5bd441549d3ea7697584cf6d474f0f1de0674/lib/tasks/publishing_api.rake#L191 parent 7827dcd commit 798eed5
1 file changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
0 commit comments