Skip to content

LG-13386 Add SP costs in the ProgressiveProofer class#10767

Merged
jmhooper merged 1 commit intomainfrom
jmhooper-add-sp-cost-in-prog-proofer
Jun 6, 2024
Merged

LG-13386 Add SP costs in the ProgressiveProofer class#10767
jmhooper merged 1 commit intomainfrom
jmhooper-add-sp-cost-in-prog-proofer

Conversation

@jmhooper
Copy link
Contributor

@jmhooper jmhooper commented Jun 5, 2024

We are in the process of moving the logic to track SP costs from the IdP into workers. This will let us more accurately track costs by marking costly events where they actually happen (in the worker). It will also give us some flexibility with the result object that is used during resolution since it will not have SP cost tracking as a dependency.

In #10743 we stopped writing the costs in the controller if the result hash indicates that costs were already written. This commit does the work of writing costs in the ProgressiveProofer and includes that they were written in the result.

The next step will be removing the logic to write costs in the controller

This commit can only be safely deployed when the changes in #10743 are fully deployed.

@jmhooper jmhooper requested a review from a team June 5, 2024 19:07
Base automatically changed from jmhooper-remove-use-ivars-in-progressive-proofer to main June 5, 2024 19:58
@jmhooper jmhooper force-pushed the jmhooper-add-sp-cost-in-prog-proofer branch from d9ee795 to 4f4a1c3 Compare June 5, 2024 20:03
We are in the process of moving the logic to track SP costs from the IdP into workers. This will let us more accurately track costs by marking costly events where they actually happen (in the worker). It will also give us some flexibility with the result object that is used during resolution since it will not have SP cost tracking as a dependency.

In #10743 we stopped writing the costs iin the controller if the result hash indicates that costs were alreay written. This commit does the work of writing costs in the `ProgressiveProofer` and returns that they were written in the result.

The next step will be removing the logic to write costs in the controller

This commit can only be safely deployed when the changes in #10743 are fully deployed.

[skip changelog]
@jmhooper jmhooper force-pushed the jmhooper-add-sp-cost-in-prog-proofer branch from a07554d to 31f7acc Compare June 6, 2024 19:12
@jmhooper jmhooper merged commit 9b0ba2d into main Jun 6, 2024
@jmhooper jmhooper deleted the jmhooper-add-sp-cost-in-prog-proofer branch June 6, 2024 19:31
jmhooper added a commit that referenced this pull request Jun 11, 2024
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 added a commit that referenced this pull request Jun 13, 2024
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 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
We are in the process of moving the logic to track SP costs from the IdP into workers. This will let us more accurately track costs by marking costly events where they actually happen (in the worker). It will also give us some flexibility with the result object that is used during resolution since it will not have SP cost tracking as a dependency.

In 18F#10743 we stopped writing the costs in the controller if the result hash indicates that costs were already written. This commit does the work of writing costs in the `ProgressiveProofer` and returns that they were written in the result.

The next step will be removing the logic to write costs in the controller

This commit can only be safely deployed when the changes in 18F#10743 are fully deployed.

[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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants