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

docs: ADR on spend-limit constraint #523

Merged
merged 4 commits into from
Aug 5, 2024
Merged

docs: ADR on spend-limit constraint #523

merged 4 commits into from
Aug 5, 2024

Conversation

brobro10000
Copy link
Contributor

ADR on the recently introduced spend-limit constraint within the clean() function within the subsidy_access_policy model

Description:
Add a description of your changes here.

Jira:
ENT-XXXX

Merge checklist:

  • ./manage.py makemigrations has been run
    • Note: This must be run if you modified any models.
      • It may or may not make a migration depending on exactly what you modified, but it should still be run.

Post merge:

  • Ensure that your changes went out to the stage instance
  • Deploy to prod instance

@brobro10000 brobro10000 marked this pull request as draft July 29, 2024 14:59
@brobro10000 brobro10000 force-pushed the hu/ent-9255 branch 6 times, most recently from e5a3bbb to a36d826 Compare August 5, 2024 14:10
@brobro10000 brobro10000 marked this pull request as ready for review August 5, 2024 14:14
docs/decisions/0022-spend-limits-constraint.rst Outdated Show resolved Hide resolved
docs/decisions/0022-spend-limits-constraint.rst Outdated Show resolved Hide resolved
docs/decisions/0022-spend-limits-constraint.rst Outdated Show resolved Hide resolved
docs/decisions/0022-spend-limits-constraint.rst Outdated Show resolved Hide resolved
docs/decisions/0022-spend-limits-constraint.rst Outdated Show resolved Hide resolved
docs/decisions/0022-spend-limits-constraint.rst Outdated Show resolved Hide resolved
@brobro10000 brobro10000 merged commit fa6a8bc into main Aug 5, 2024
3 checks passed
@brobro10000 brobro10000 deleted the hu/ent-9255 branch August 5, 2024 15:44
Copy link
Member

@adamstankiewicz adamstankiewicz left a comment

Choose a reason for hiding this comment

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

LGTM. One minor suggestion might be to include link to this ADR here in the list of other ADRs (though it does look like the more recent ones are missing from the list).

* Policy A, an ``active`` policy with a ``spend_limit`` of 10,000
* Policy B, an ``active`` policy with a ``spend_limit`` of 40,000
* If Policy A were set to ``!active``
* Policy B's ``spend_limit`` can now be set to ``50,000`` (even if spend has occured on Policy A or B)
Copy link
Member

Choose a reason for hiding this comment

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

super nit: doesn't seem like other instances of numeric dollar values here (e.g., 10,000 and 40,000 above) are formatted with the backticks. could remove the backticks for consistency with other numeric values.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated in this PR 👍🏽
#528

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