Skip to content

Feature/archie test#4258

Draft
tothandras wants to merge 10 commits into
mainfrom
feature/archie_test
Draft

Feature/archie test#4258
tothandras wants to merge 10 commits into
mainfrom
feature/archie_test

Conversation

@tothandras
Copy link
Copy Markdown
Contributor

Overview

Fixes #(issue)

Notes for reviewer

gbrbks and others added 10 commits April 24, 2026 13:32
…e.json

Older Archie (pre-2.4.4) was persisting the absolute project path into
.archie/deep_scan_state.json under run_context.project_root, which leaked
"/Users/hamutarto/DEV/gbr/openmeter" into the committed state file.

Archie 2.4.4 stopped writing this field (BitRaptors/Archie#55). The
existing leaked value is removed here so the committable state stays
machine-agnostic and portable across dev laptops / CI runners.

No other paths leaked — verified with grep for /Users/, /home/, /root/,
/var/folders/, and "gbr" across .archie/, CLAUDE.md, AGENTS.md, .claude/.
Every remaining "/" string comes from actual gitignore content or doc
examples, not from environment-specific paths.
… rename

- Replace time.Now() with clock.Now() in adapter/manage.go DeleteMeter
- Make OrderBy switch in adapter/meter.go return a typed validation error
  for unknown values instead of silently falling back to createdAt
- Rename package declaration in all httphandler/*.go files from
  httpdriver to httphandler so directory name matches package name

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ngRepo

ListMeters and GetMeterByIDOrSlug now rebind to any ctx-carried Ent
transaction, matching the pattern used by all mutating adapter methods.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…Meter]

Replace the ad-hoc []PreUpdateMeterHook slice in ManageService with the
canonical models.ServiceHookRegistry[Meter] pattern used by customer,
subscription, and entitlement. The new RegisterHooks method aligns
ManageService with the ServiceHooks interface.

Pre-update hook now receives *Meter (the current entity) rather than
UpdateMeterInput, matching the ServiceHook[T].PreUpdate signature.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…+1s hack

Use clock.Now() in both ListEventsParams.Validate() and the default From
floor in the v1 ListEvents handler so tests can freeze time. Remove the
+1s workaround that compensated for the two separate time.Now() calls
drifting apart — clock.Now() is the same instant across both call sites.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 30, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 1f2d9675-f4e2-4f74-8f8d-30d0f454cede

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/archie_test

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

2 participants