-
Notifications
You must be signed in to change notification settings - Fork 362
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
Document email usage in the api #6717
Conversation
♻️ PR Preview 519214e has been successfully destroyed since this PR has been closed. 🤖 By surge-preview |
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.
This seems great and is an obvious improvement, a tonne of thanks for that! Not approving as I lack the definitive knowledge required to say it's correct.
email: | ||
type: string | ||
description: | | ||
The email address of the user. If API authentication is enabled, this field is mandatory and will be invited to login. |
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.
Is it unique? (I assume not, but it pays to be explicit)
Is it case sensitive?
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.
@guy-har @Isan-Rivkin same here
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.
lakeFS doesn't have such restrictions, in most cases we connect with an external auth provider which does cause the email to be unique
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.
Added an explanation on APIAuthenticator enforcements.
@@ -672,15 +672,21 @@ components: | |||
properties: | |||
id: |
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.
We should say how to present the user. I think it's display the first non-blank of friendly name, email, id. But I'm honestly not sure.
(Also now that anything except the last is non-unique! So probably good to display to the user themselves, but not so good to display in a list of users.
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.
@guy-har @Isan-Rivkin I need help answering this as the main consumers of this is us (Cloud, Enterprise)
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.
Currently, the behavior in the UI isn't consistent
when listing users we display the first non-blank of email, id
when showing the current user in the navbar we display the first non-blank of friendly name, id
IMO we should align them both to the first non-blank of friendly name, email, and id but still provide a way to see the ID.
Having that said, is this something that should be documented or just a client decision?
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.
Got it. Since we don't have any strict representation of the users, I would refrain from adding one to the API documentation. Once we'll have more alignment this can be revised. But until then - less is more.
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.
LGTM
closes #6684