Skip to content

LG-13387 Remove SP cost tracking logic from VerifyInfoConcern#10786

Merged
jmhooper merged 1 commit intomainfrom
jmhooper-remove-verify-info-cost-tracking
Jun 13, 2024
Merged

LG-13387 Remove SP cost tracking logic from VerifyInfoConcern#10786
jmhooper merged 1 commit intomainfrom
jmhooper-remove-verify-info-cost-tracking

Conversation

@jmhooper
Copy link
Contributor

In #10767 we changed the ProgressiveProofer class to begin tracking SP costs closer to where costly events occur. The logic for tracking costs was left in the VerifyInfoConcern to deal with the 50/50 state. When the changes in #10767 are fully deployed this can be merged to clean up dead code.

[skip changelog]

@jmhooper
Copy link
Contributor Author

I am marking this "do not merge" until Tuesday's deploy when #10767 should be deployed.

jmhooper added a commit that referenced this pull request Jun 11, 2024
I was looking at the changes in #10786 for the move of SP cost tracking from the `VerifyInfoConcern` to the `ProgressiveProofer` when I noticed this condition that was not accounted for:

https://github.com/18F/identity-idp/pull/10786/files#diff-5d8b1370b1c579364bb79a0813ca9bf9a15c65e7a974829886ab3e00f3441cedL310

This logic prevents a AAMVA cost from being added if an AAMVA exception occurs. Presumably this is because we are not billed for AAMVA exception which happen frequently. This commit applies that logic to the `ProgressiveProofer` where SP costs are now tracked.

[skip changelog]
In #10767 we changed the `ProgressiveProofer` class to begin tracking SP costs closer to where costly events occur. The logic for tracking costs was left in the `VerifyInfoConcern` to deal with the 50/50 state. When the changes in #10767 are fully deployed this can be merged to clean up dead code.

[skip changelog]
@jmhooper jmhooper force-pushed the jmhooper-remove-verify-info-cost-tracking branch from fdc5f22 to e3113e9 Compare June 11, 2024 15:14
jmhooper added a commit that referenced this pull request Jun 11, 2024
I was looking at the changes in #10786 for the move of SP cost tracking from the `VerifyInfoConcern` to the `ProgressiveProofer` when I noticed this condition that was not accounted for:

https://github.com/18F/identity-idp/pull/10786/files#diff-5d8b1370b1c579364bb79a0813ca9bf9a15c65e7a974829886ab3e00f3441cedL310

This logic prevents a AAMVA cost from being added if an AAMVA exception occurs. Presumably this is because we are not billed for AAMVA exception which happen frequently. This commit applies that logic to the `ProgressiveProofer` where SP costs are now tracked.

[skip changelog]
@jmhooper jmhooper merged commit 4b15516 into main Jun 13, 2024
@jmhooper jmhooper deleted the jmhooper-remove-verify-info-cost-tracking branch June 13, 2024 13:45
jmhooper added a commit that referenced this pull request Jun 13, 2024
The `VerifyInfoConcern` used to add SP costs to the database by inspecting the result from the `ResolutionProofingJob`. We have made the following changes in an effort to move the logic for tracking SP costs into the resolution proofing job:

- In #10743 we added a conditional to the `VerifyInfoConcern` to stop writing SP costs if a `sp_costs_added` flag is present on the result
- In #10767 we started adding costs in the `ResolutionProofingJob` and had the job set the `sp_costs_added` flag
- In #10786 we removed the code that added the SP costs in the `VerifyInfoConcern`

This commit includes the changes for the final step: Removing the `sp_costs_added` flag now that nothing is reading it.

This commit can be safely merged into main when all of the above changes are fully deployed.

[skip changelog]
brandemix pushed a commit to brandemix/18F-identity-idp that referenced this pull request Jun 17, 2024
I was looking at the changes in 18F#10786 for the move of SP cost tracking from the `VerifyInfoConcern` to the `ProgressiveProofer` when I noticed this condition that was not accounted for:

https://github.com/18F/identity-idp/pull/10786/files#diff-5d8b1370b1c579364bb79a0813ca9bf9a15c65e7a974829886ab3e00f3441cedL310

This logic prevents a AAMVA cost from being added if an AAMVA exception occurs. Presumably this is because we are not billed for AAMVA exception which happen frequently. This commit applies that logic to the `ProgressiveProofer` where SP costs are now tracked.

[skip changelog]
brandemix pushed a commit to brandemix/18F-identity-idp that referenced this pull request Jun 17, 2024
…10786)

In 18F#10767 we changed the `ProgressiveProofer` class to begin tracking SP costs closer to where costly events occur. The logic for tracking costs was left in the `VerifyInfoConcern` to deal with the 50/50 state. When the changes in 18F#10767 are fully deployed this can be merged to clean up dead code.

[skip changelog]
jmhooper added a commit that referenced this pull request Jun 20, 2024
The `VerifyInfoConcern` used to add SP costs to the database by inspecting the result from the `ResolutionProofingJob`. We have made the following changes in an effort to move the logic for tracking SP costs into the resolution proofing job:

- In #10743 we added a conditional to the `VerifyInfoConcern` to stop writing SP costs if a `sp_costs_added` flag is present on the result
- In #10767 we started adding costs in the `ResolutionProofingJob` and had the job set the `sp_costs_added` flag
- In #10786 we removed the code that added the SP costs in the `VerifyInfoConcern`

This commit includes the changes for the final step: Removing the `sp_costs_added` flag now that nothing is reading it.

This commit can be safely merged into main when all of the above changes are fully deployed.

[skip changelog]
jmhooper added a commit that referenced this pull request Jun 20, 2024
The `VerifyInfoConcern` used to add SP costs to the database by inspecting the result from the `ResolutionProofingJob`. We have made the following changes in an effort to move the logic for tracking SP costs into the resolution proofing job:

- In #10743 we added a conditional to the `VerifyInfoConcern` to stop writing SP costs if a `sp_costs_added` flag is present on the result
- In #10767 we started adding costs in the `ResolutionProofingJob` and had the job set the `sp_costs_added` flag
- In #10786 we removed the code that added the SP costs in the `VerifyInfoConcern`

This commit includes the changes for the final step: Removing the `sp_costs_added` flag now that nothing is reading it.

This commit can be safely merged into main when all of the above changes are fully deployed.

[skip changelog]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants