Skip to content

Conversation

@stephane-segning
Copy link
Contributor

Summary

  • forward expires_at and metadata when creating or patching API keys
  • test that API key creation persists supplied expires_at and metadata

Testing

  • cargo test -p lightbridge-authz-rest

https://chatgpt.com/codex/tasks/task_e_68b169aa3c1483298e61359d666cb85c

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a 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".

Comment on lines 38 to +40
let create_api_key = CreateApiKey {
expires_at: None,
metadata: None,
expires_at: input.expires_at,
metadata: input.metadata,

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 👍 / 👎.

@stephane-segning
Copy link
Contributor Author

@codex fix the failing pipeline with fmt

@chatgpt-codex-connector
Copy link

Summary

Testing

  • cargo test -p lightbridge-authz-rest

View task →

@stephane-segning
Copy link
Contributor Author

@codex fix the failing pipeline

@chatgpt-codex-connector
Copy link

Summary

Testing

  • cargo test -p lightbridge-authz-rest

View task →

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant