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 ophan status as nothing async happens #320

Merged
merged 4 commits into from
Jun 16, 2024

Conversation

phillipbarron
Copy link
Contributor

@phillipbarron phillipbarron commented Jun 10, 2024

What does this change?

This removes the async status for Ophan as there is no async process for Ophan so this is just noise.
The property is left in the model as an optional so we do not get validation errors on the existing newsletters that have this property. We can, at a later date, run a backfill to remove this property from all the existing live newsletters and then remove the property altogether

This also removed the Ophan element of the launch Wizard. Editorial launch newsletters and don't cre about this. We can edit the Campain code later if required.

How to test

Make sure we can create and launch newsletters and that we can view existing newsletters. (Draft and Live), and that the API response is as expected

How can we measure success?

It still working

Have we considered potential risks?

Should be fine - nothing externally cares about these properties

Images

Screenshot 2024-06-10 at 11 30 10

@phillipbarron phillipbarron requested a review from a team as a code owner June 10, 2024 10:19
Copy link
Contributor

@dblatcher dblatcher left a comment

Choose a reason for hiding this comment

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

tested locally - all works!

Suggested adding a comment on newsletter data type to say why this property is optional (just until we get round to removing it properly after a backfill)

ophanCampaignCreationStatus: workflowStatusEnumSchema
.optional()
.describe(
'Ophan campaign creation status',
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe add a comment or update the field description to mark the property as deprecated?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, great idea. Thanks

@phillipbarron phillipbarron changed the title Remove ophan status and nothing async happens Remove ophan status as nothing async happens Jun 13, 2024
@phillipbarron phillipbarron merged commit f6f3c77 into main Jun 16, 2024
2 checks passed
@phillipbarron phillipbarron deleted the pb/remove-ophan-status branch June 16, 2024 19:39
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