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

Remove Hardcoded Profiles and Default URLs from SCORe Client #469

Merged
merged 4 commits into from
Aug 12, 2024

Conversation

Azher2Ali
Copy link
Contributor

@Azher2Ali Azher2Ali commented Aug 8, 2024

This PR addresses the refactoring of the SCORe client to enhance its flexibility by removing hardcoded configurations that limit the ability to connect to various SCORe and Song servers. The following changes were made:

Remove Dedicated Profiles:

The kf and oicr profiles have been removed from application.yml, along with their hardcoded server URLs.
The application is now designed to rely on user-provided CLI arguments or configurations to specify the locations of storage and metadata servers.

Remove Default URLs:

The default values for storage.url and metadata.url have been removed from application.yml.
These lines are now commented out, indicating that the application will look for these values, but they must be provided by the user.

Remove ProfileRepoValidator and Associated Code:

The ProfileRepoValidator has been removed as it was used to validate specific project profile names, which are no longer relevant.
Consequently, the validateManifest() function in AbstractClientCommand and all its references have also been removed.

Remove Profile Annotation from ScoreStorageService:

After removing the kf profile, the Profile annotation in ScoreStorageService has been removed, as it no longer serves a purpose.

These changes simplify the configuration process and make the client more versatile, allowing it to connect to any specified servers without relying on predefined profiles. #462

joneubank
joneubank previously approved these changes Aug 12, 2024
@Azher2Ali Azher2Ali merged commit c504207 into develop Aug 12, 2024
2 checks passed
@Azher2Ali Azher2Ali deleted the refactor/remove-hardcoded-profiles-urls branch August 12, 2024 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants