Skip to content
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

Rename MirroringCredential to Credential #1031

Merged
merged 5 commits into from
Sep 27, 2024

Conversation

minwoox
Copy link
Member

@minwoox minwoox commented Aug 29, 2024

Motivation:
We decided to repurpose the MirrorCredential to manage all repository credentials, not just those specific to mirroring. To reflect this role, we should remove Mirror prefix from the class name.

Caveat: This commit must be deployed to central dogma replicas after applying the changes from #1030.

Modifications:

  • Renamed MirroringCredential to Credential and moved its package.
  • Removed hostnamePatterns property in Credential.

Result:

  • The renamed Credential class can now be used for managing various types of repository credentials, beyond just mirroring.

Motivation:
We decided to repurpose the `MirrorCredential` to manage all repository credentials, not just those specific to mirroring. To reflect this role, we should remove `Mirror` prefix from the class name.

Caveat: This commit must be deployed to central dogma replicas after applying the changed from line#1030.

Modifications:
- Renamed `MirroringCredential` to `Credential` and moved its package.
- Removed `hostnamePatterns` property in `Credential`.

Result:
- The renamed `Credential` class can now be used for managing various types of repository credentials, beyond just mirroring.
import com.linecorp.centraldogma.server.internal.credential.PublicKeyCredential;

/**
* The authentication credentials which are required when accessing the Git repositories.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we update Javadoc to reflect on the current usage?

Copy link
Contributor

@jrhee17 jrhee17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Understood that this is a simple rename, removal of hostnamePatterns

Copy link
Contributor

@ikhoon ikhoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍👍

@minwoox minwoox merged commit b550f27 into line:main Sep 27, 2024
10 checks passed
@minwoox minwoox deleted the remove_hostnamePatterns branch September 27, 2024 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants