Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a:
Description
Check out the branch
Run
npm run migration -- up
to apply the migrationnpm run migration -- down 1
to check the migration can be reversed, then-- up
againLog in and visit the "Suggest" page
There should be a new "Topic" field, with a drop-down menu to select a topic:
The topic should be optional (i.e. you can still create a resource without one)
If a resource does have a topic, the name of the topic should be shown in the drafts list (when draft) and on the home page (when published):
Review the API docs,
/api/topics
and/api/resources
endpoint descriptions should match the observed behaviourRun
npm run migration -- down 1
before switching back to any other branchesLinks
Author checklist
I have written a title that reflects the relevant ticketI have linked to the project board ticket (and any related PRs/issues) in the Links sectionI have added a link to this PR to the ticketmain
from a branch named<category>/<name>
, e.g.feature/edit-spaceships
orbugfix/restore-oxygen
I have requested reviewers here and in my team chat channelI have spoken with my PM or TL about any parts of this task that may have become out-of-scope, or any additional improvements that I now realise may benefit my projectnew tests were not requireddocumentation updates were not required