Skip to content

chore(accounts): delete the billing-rate interval that never started - #243

Merged
HTExplicit merged 1 commit into
mainfrom
chore/drop-dead-billing-rate-timer
Oct 4, 2026
Merged

HTExplicit merged 1 commit into
mainfrom
chore/drop-dead-billing-rate-timer

Conversation

@HTExplicit

Copy link
Copy Markdown
Owner

Problem

The account page declares a 5-minute refresh of the upstream billing rates:

useIntervalFn(() => { void refreshUpstreamBillingRates() }, 5 * 60_000, { immediate: false })

With immediate: false the interval only starts through the returned resume(), and the return value is discarded, so the timer has never run (@vueuse 10.11; the same line is in upstream). The rates are refreshed in one place only: after a billing probe.

Change

Delete that line. The owner decided on 2026-10-04 not to enable the periodic refresh and to remove the dead timer.

Scope, also the owner's choice: only this line. The code that only the timer could reach (the non-forced branch of refreshUpstreamBillingRates, the force parameter, the ETag reuse) stays as upstream has it, so the fork differs from upstream by this one line. If upstream later starts the timer, the next sync keeps it deleted.

No runtime change: nothing that ran before stops running.

Verification

  • eslint on the file and vue-tsc --noEmit.
  • The three specs that reach the rates refresh (AccountsView.console, bulkEdit, selectionScope): 44 tests pass.
  • useIntervalFn is still imported for the page's other three intervals.

Not run: full suites. No release is cut for this change alone; it ships with the next one.

🤖 Generated with Claude Code

The account page declared a 5-minute refresh of the upstream billing rates
with useIntervalFn(..., { immediate: false }) and discarded the return value.
@vueuse only starts such an interval through resume(), which nothing called,
so the timer never ran. The rates are refreshed after a billing probe, as
before.

The line is upstream's. The owner decided on 2026-10-04 not to enable the
refresh and to delete the line; the code it alone could reach is left as
upstream has it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@HTExplicit
HTExplicit merged commit bbb2c37 into main Oct 4, 2026
18 checks passed
@HTExplicit
HTExplicit deleted the chore/drop-dead-billing-rate-timer branch October 4, 2026 10:58
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