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 unused publication checks #1804

Merged
merged 1 commit into from
Feb 7, 2024
Merged

Conversation

beccapearce
Copy link
Contributor

@beccapearce beccapearce commented Feb 5, 2024

This code is not used anywhere, let's get rid of it.

The model Publish request in production does not have any data filled in beyond the default values and it seems this is a check that is no longer used.

Trello card: https://trello.com/c/2YjMbfcg/2332-travel-advice-publisher-improvements-legacy-code-clean-up

@beccapearce
Copy link
Contributor Author

Should we be dropping the table for Publishing requests too? I'd be inclined to, but maybe we could leave it for a couple of weeks just in case there is any issue

@beccapearce beccapearce force-pushed the remove-unused-publication-checks branch from 66dcfb6 to 0e2ee13 Compare February 6, 2024 08:12
Copy link
Contributor

@ryanb-gds ryanb-gds left a comment

Choose a reason for hiding this comment

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

This is really interesting. It looks like this was an attempt at acknowledging the fact that we don't really know what has happened after a publishing app makes a call to publishing API. I assume the rake task would run on a regular schedule to try to rectify things if the publishing API hadn't succeeded in publishing. I take it we've checked there isn't a scheduled task in the helm charts running that rake task?

We may have to solve this problem ourselves if we move the scheduling logic into Publishing API, but I feel a webhook from Publishing API back to the publishing app might be a better approach.

@beccapearce
Copy link
Contributor Author

So I think that when this was written the publishing infrastructure was a bit different, travel advice had its own front end that we weren't sure it was making it into which is part of the reason I don't think it's used anymore.

And yes I had a look and couldn't find the job running anywhere, or see it mentioned as a fix for anything.

Copy link
Contributor

@baisa baisa left a comment

Choose a reason for hiding this comment

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

Nice clean up @beccapearce, it will super helpful to merge it before we start scheduling implementation ❤️

@beccapearce beccapearce marked this pull request as ready for review February 7, 2024 09:39
@beccapearce beccapearce merged commit 8e30dfa into main Feb 7, 2024
12 checks passed
@beccapearce beccapearce deleted the remove-unused-publication-checks branch February 7, 2024 09: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.

3 participants