Skip to content

Conversation

thomasleese
Copy link
Contributor

This adds the ability to edit existing campaigns, using most of the same logic and UI as when new campaigns are created, but adding an additional step for modifying the vaccines.

Screenshots

Screenshot 2024-09-03 at 15 01 50 Screenshot 2024-09-03 at 15 01 55 Screenshot 2024-09-03 at 15 02 00

This is being renamed to `Campaigns::EditController` as it'll be used
both for creating new campaigns (i.e. from draft to active) and editing
existing (i.e. active) campaigns.
This simplifies the validation on the campaign model to rely entirely on
the `on_wizard_step` validation options like all the other models. The
behaviour should be the same before and after.
This makes a number of small changes to the tests to support them being
used in the future to also test the edit campaign journey.
This adds a link to the campaign overview page that allows the user to
make changes to the campaign.
When creating a new campaign we don't show the vaccines as they are
picked automatically, but when editing an existing campaign we would
want to be able to change the vaccines, perhaps to add any discontinued
ones.
This adds the ability to change the existing information on a campaign,
using the same controller that we have for creating new campaigns. This
is built by adding "Change" links to the summary list for the campaign,
and ensuring we skip straight to the confirmation step rather than the
next step.
This adds a new step for editing campaigns where the user can choose the
vaccines that belong to a campaign. When creating a campaign the
vaccines default to the active vaccines for a particular programme type,
but we may need to add discontinued vaccines to campaigns that happened
in the past, to support importing historical records.
@tvararu tvararu temporarily deployed to mavis-pr-1701 September 4, 2024 09:43 Inactive
Copy link

sonarqubecloud bot commented Sep 4, 2024

@thomasleese thomasleese merged commit 3c87bb1 into main Sep 4, 2024
11 checks passed
@thomasleese thomasleese deleted the edit-campaign branch September 4, 2024 09:48
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.

2 participants