-
Notifications
You must be signed in to change notification settings - Fork 497
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
NAS-130069 / 24.10 / Fix API key API #14030
Conversation
time 1:30 |
class ApiKeyEntryWithKey(ApiKeyEntry): | ||
key: Private[str] | ||
|
||
|
||
class ApiKeyCreate(ApiKeyEntry): | ||
id: Excluded = excluded_field() | ||
key: Excluded = excluded_field() |
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.
Since ApiKeyEntry
no longer has a key
, it seems like this line can be removed.
tests/api2/test_api_key_crud.py
Outdated
|
||
|
||
def test_has_key_after_creation_but_not_read(): | ||
api_key = call("api_key.create", {"name": "Test", "allowlist": []}) |
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.
It's a little confusing to use the name of a function as the name of a local variable imo
This PR has been merged and conversations have been locked. |
No description provided.