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

fix(core.configuration): fix SelfConfiguringComponent default configuration retrival #4067

Merged
merged 6 commits into from
Aug 2, 2022

Conversation

pierantoniomerlino
Copy link
Contributor

Note: We are using the Conventional Commits convention for our pull request titles. Please take a look at the PR title format document for the supported types and scopes.

This PR fixes the retrival of the default configuration for SelfConfiguringComponents.

Related Issue: This PR fixes/closes N/A

Description of the solution adopted: As done for the ConfigurableComponents, the getDefaultComponentConfiguration in the ConfigurationServiceImpl is modified to handle also the default configurations of SelfConfiguringComponents. Using the rest call {app}}/services/configuration/v2/configurableComponents/configurations/byPid/_default for a SelfConfiguringComponent like the FirewallConfigurationService, now it is possible to get the default configuration.

Signed-off-by: pierantoniomerlino <[email protected]>
Signed-off-by: pierantoniomerlino <[email protected]>
Signed-off-by: pierantoniomerlino <[email protected]>
}

private ComponentConfiguration getSelfConfiguringComponentDefaultConfigurationInternal(Object obj, String pid) {
ComponentConfiguration cc = null;
Copy link
Contributor

Choose a reason for hiding this comment

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

This cc variable is never modified

@nicolatimeus
Copy link
Contributor

The changes seem to work

@pierantoniomerlino pierantoniomerlino merged commit 9ade614 into develop Aug 2, 2022
@pierantoniomerlino pierantoniomerlino deleted the fix-config-service branch August 2, 2022 14:34
@mstankovic
Copy link

verified as fixed!

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.

3 participants