-
Notifications
You must be signed in to change notification settings - Fork 123
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 Repository settings UI #1078
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.
👍👍
return credentials(loginUser, future); | ||
} | ||
|
||
private static CompletableFuture<List<Credential>> credentials(User loginUser, |
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.
The method name seems vague. How about maybeMaskSecret()
?
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.
That's a good name. 👍
* Returns a mirroring credential of the specified {@code id}. | ||
* Returns a list of credentials of the specified repository. | ||
*/ | ||
CompletableFuture<List<Credential>> credentials(String repoName); |
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 think it would be good to clarify the function names to improve readability and prevent mistakes. The suggested method names are longer though.
repoCredentials()
projectCredentials()
@@ -58,7 +58,7 @@ | |||
|
|||
public final class DefaultMetaRepository extends RepositoryWrapper implements MetaRepository { | |||
|
|||
public static final String PATH_CREDENTIALS = "/credentials/"; | |||
private static final String PATH_CREDENTIALS = "/credentials/"; | |||
|
|||
public static final String PATH_MIRRORS = "/mirrors/"; |
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.
Make this field as private as well?
Motivation:
To provide users with a dedicated interface for managing repository settings.
Modifications:
RepositorySettingsPage
component for centralized repository settings management.ProjectRole
definitions into a single locationAppMemberList
andAppTokenList
into a unifiedAppEntityList
component to reduce code duplicationDeleteMember
andDeleteToken
functionalities into a singleDeleteAppEntity
component to reduce code duplicationResult: