-
Notifications
You must be signed in to change notification settings - Fork 614
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
Stop identifying group repositories as a single String #1173
Comments
What are your thoughts on this? |
Any progress, @akhil10x5 ? |
Hi @fuss86, i did not pick up this issue. However regarding this, i tried few things earlier which did not work out but the changes were committed in a local branch which later got pushed to remote when i created a PR for another issue. I am not working on this anymore. |
@sbespalov , @steve-todorov do you have any thoughts ? :) |
Sorry for the late reply on this. I agree with you - we should create a new object type which has the Another place where this is being used is the Changes made here will result in some broken UI, so whoever has interest in picking this up should also fix the UI if possible (or ping me when this is ready) |
Task Description
We have at least 3 places where we identify group repositories using
String
object:org.carlspring.strongbox.storage.repository.Repository#getGroupRepositories
org.carlspring.strongbox.storage.repository.ImmutableRepository#groupRepositories
org.carlspring.strongbox.storage.repository.MutableRepository#groupRepositories
There are 2 possible values of this object:
repositoryId
as thisString
value.storageId:repositoryId
as thisString
value.This is not obvious, introduces misunderstandings and should become more clear.
We should create structure(s) for group repositories. Group repository should always be identified by
storageId
andrepositoryId
. Also, we should dropConfigurationManager#getStorageId
andConfigurationManager#getRepositoryId
andConfigurationManager#getRepository(java.lang.String)
After making the necessary changes, make sure the UI still works as expected (i.e. Storage Management and Routing Management)
Help
The text was updated successfully, but these errors were encountered: