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

chore: retire BOPS v1 submission endpoints and events #2857

Merged
merged 3 commits into from
Mar 6, 2024

Conversation

jessicamcinchak
Copy link
Member

@jessicamcinchak jessicamcinchak commented Mar 5, 2024

We have the go ahead from BOPS to stop sending parallel application payloads and only submit via their v2 endpoint.

Changes here:

  • Creates a single Hasura event when sending to BOPS rather than two
    • Also applies to submission events created by Invite to Pay payment requests
  • /send/bops endpoint is removed, and /send/bops-v2 is renamed to /send/bops for simplicity
  • /admin/session/:sessionId/bops endpoint is removed (we use existing /admin/session/:sessionId/digital-planning-application endpoint to inspect v2 payload)
  • Removes tests and mock data that were v1 specific

I'll open a followup PR to additionally clean up planx-core, but this one can merge anytime before that as we're no longer calling $api.export.bopsPayload(sessionId) & v1 submissions are already failing on file tag validation.

Testing:

  • Go through a submission service & confirm a single BOPS event is created on Send
  • Repeat using Invite to Pay (you'll have to successfully complete mock payment)
  • Confirm that submission succeeds (valid digital planning payload and audit table entry)

@jessicamcinchak
Copy link
Member Author

Copy link

github-actions bot commented Mar 5, 2024

Removed vultr server and associated DNS entries

@jessicamcinchak jessicamcinchak marked this pull request as ready for review March 6, 2024 08:34
@jessicamcinchak jessicamcinchak requested a review from a team March 6, 2024 08:34
Copy link
Contributor

@DafyddLlyr DafyddLlyr left a comment

Choose a reason for hiding this comment

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

Code-only review looks great, working through manual tests now 👍

api.planx.uk/modules/send/bops/bops.ts Show resolved Hide resolved
Copy link
Contributor

@DafyddLlyr DafyddLlyr left a comment

Choose a reason for hiding this comment

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

Testing notes

  • Go through a submission service & confirm a single BOPS event is created on Send
  • Repeat using Invite to Pay (you'll have to successfully complete mock payment)
  • Confirm that submission succeeds (valid digital planning payload and audit table entry)

All working as expected ✅

@jessicamcinchak jessicamcinchak merged commit 8abdaee into main Mar 6, 2024
12 checks passed
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