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

refactor: Make redaction explicit in ExportClient #162

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

DafyddLlyr
Copy link
Contributor

@DafyddLlyr DafyddLlyr commented Oct 16, 2023

What does this PR do?

This PR makes redaction of export payloads explicit. Currently we always generate both a redacted and non-redacted payload per request which needlessly calls an expensive operation twice. The aim here is to make PlanX submissions run a bit more smoothly and quickly.

Implemented in theopensystemslab/planx-new#2313

Also...

  • Standardise types in the ExportClient
  • Moves generateOneAppXML() from requests to export

@DafyddLlyr DafyddLlyr force-pushed the dp/simplify-redaction-calls branch from f93f3cc to 65f07f1 Compare October 16, 2023 14:41
@DafyddLlyr DafyddLlyr force-pushed the dp/simplify-redaction-calls branch from 65f07f1 to 8be6bd2 Compare October 16, 2023 14:54
@DafyddLlyr DafyddLlyr changed the title refactor: Simplify redaction handling for exports refactor: Make redaction explicit in ExportClient Oct 16, 2023
Copy link
Member

@jessicamcinchak jessicamcinchak left a comment

Choose a reason for hiding this comment

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

A very good tidy up! 🤞 performance gains extend beyond local testing next

@DafyddLlyr DafyddLlyr marked this pull request as ready for review October 16, 2023 20:27
@DafyddLlyr DafyddLlyr merged commit 3a85966 into main Oct 16, 2023
3 checks passed
@DafyddLlyr DafyddLlyr deleted the dp/simplify-redaction-calls branch October 16, 2023 20:28
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