Skip to content

fix: accept both cap spellings, and stop one request rewriting the next - #22

Merged
AlexeyShalaev merged 1 commit into
masterfrom
chore/restore-release-record
Sep 6, 2026
Merged

fix: accept both cap spellings, and stop one request rewriting the next#22
AlexeyShalaev merged 1 commit into
masterfrom
chore/restore-release-record

Conversation

@AlexeyShalaev

Copy link
Copy Markdown
Member

No code changes. One empty commit restoring a record the merge of #21 lost.

I squash-merged #21 using its pull request title as the subject, and that title was prose rather than a Conventional Commit. release-please parses subjects, found nothing releasable since deadline-budget-v0.1.2, and opened no release pull request — so the fixes would have sat on master indefinitely. My mistake on the merge, not the author's.

What #21 actually fixed, now stated in a subject the tooling reads:

  • OperationDeadlineConfig spells the field calls_caps while BudgetContext.create takes call_caps, and the model ignored the unknown key — so a configuration written the second way silently carried no caps at all. Both spellings are accepted now.
  • BudgetContext held the caps dict it was handed rather than a copy. Since the factory passes the settings object's own dict straight through, mutating one request's caps rewrote the application-scoped settings and every later context for that operation.
  • make install and the contributing guide now sync the extras CI uses, so make test-unit works on a fresh checkout.

The diff is empty by design. Reviewing it means reading #21.

The work landed in #21. Its squash subject lost the Conventional Commit prefix --
my mistake on the merge, not the author's -- so release-please skipped the merge
and these fixes would never have reached a release. This commit carries the
record. It changes no code: #21 is already on master.

* OperationDeadlineConfig spells the field calls_caps while BudgetContext.create
  takes call_caps, and the model ignored the unknown key, so a configuration
  written the second way silently carried no caps at all. Both spellings are
  accepted now through AliasChoices, and serialisation is unchanged.
* BudgetContext held the caps dict it was handed rather than a copy. Because the
  factory passes the settings object's own dict straight through, mutating one
  request's caps rewrote the application-scoped settings and every later context
  for that operation.
* make install and the contributing guide now sync the extras CI uses, so
  make test-unit works on a fresh checkout instead of failing at collection.
@codecov

codecov Bot commented Sep 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@AlexeyShalaev
AlexeyShalaev merged commit 0c50103 into master Sep 6, 2026
6 checks passed
@AlexeyShalaev
AlexeyShalaev deleted the chore/restore-release-record branch September 6, 2026 20:09
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.

1 participant