-
Couldn't load subscription status.
- Fork 0
Pass through API key expiry and metadata #4
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
base: main
Are you sure you want to change the base?
Pass through API key expiry and metadata #4
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codex Review: Here are some suggestions.
Reply with @codex fix comments to fix any unresolved comments.
About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback".
| let create_api_key = CreateApiKey { | ||
| expires_at: None, | ||
| metadata: None, | ||
| expires_at: input.expires_at, | ||
| metadata: input.metadata, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[P1] Persist metadata in real repository
Forwarding metadata here suggests API clients can store arbitrary metadata, and the new test verifies it against the in‑memory mock. However, the production repository still discards metadata (ApiKeyRepo::create_impl never writes it and mappers::to_api_key hardcodes metadata: None), so real API responses will always return None. The new test therefore gives false confidence and the feature remains non‑functional for the actual DB-backed implementation.
Useful? React with 👍 / 👎.
|
@codex fix the failing pipeline with fmt |
|
Summary
Testing
|
|
@codex fix the failing pipeline |
Summary
Testing
|
Summary
expires_atandmetadatawhen creating or patching API keysexpires_atandmetadataTesting
cargo test -p lightbridge-authz-resthttps://chatgpt.com/codex/tasks/task_e_68b169aa3c1483298e61359d666cb85c