-
Notifications
You must be signed in to change notification settings - Fork 406
add api key adding #2452
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
add api key adding #2452
Conversation
tests/e2e/helpers/api/api-keys.ts
Outdated
requestBody | ||
); | ||
|
||
console.log(JSON.stringify(response)); |
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.
do you need this console.log?
tests/e2e/helpers/api/api-keys.ts
Outdated
.map((member) => ({ ...member, name: Buffer.from(member.name, 'utf-8') })) | ||
}; | ||
|
||
console.log(JSON.stringify(requestBody)); |
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.
do you need this console.log?
* @param element The element in list | ||
*/ | ||
export type ListKeyParameters = { | ||
export type ListAndStringKeyParameters = { |
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.
I don't think that this is a good practice to combine two types in one
for list key we have keyName and element
for string key we have keyName and value
tests/e2e/helpers/api/api-keys.ts
Outdated
import { | ||
HashKeyParameters, | ||
ListKeyParameters, | ||
ListAndStringKeyParameters, |
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.
ListAndStringKeyParameters
tests/e2e/helpers/api/api-keys.ts
Outdated
*/ | ||
async addListKeyApi( | ||
keyParameters: ListKeyParameters, | ||
keyParameters: ListAndStringKeyParameters, |
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.
ListAndStringKeyParameters
tests/e2e/helpers/api/api-keys.ts
Outdated
* @param databaseParameters The database parameters | ||
*/ | ||
async addStringKeyApi( | ||
keyParameters: ListAndStringKeyParameters, |
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.
ListAndStringKeyParameters
No description provided.