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

2. Add abstractions for MetadataProfile #1440

Open
wants to merge 2 commits into
base: mvp_demo
Choose a base branch
from

Conversation

shreyabiradar07
Copy link
Contributor

Description

This PR includes abstractions for MetadataProfile:

  1. The MetadataProfile being the base class.
  2. MetadataProfileValidation and MetadataProfileUtil classes for validating metadata profile and fields.

Fixes # (issue)

Type of change

  • Bug fix
  • New feature
  • Docs update
  • Breaking change (What changes might users need to make in their application due to this PR?)
  • Requires DB changes

How has this been tested?

Please describe the tests that were run to verify your changes and steps to reproduce. Please specify any test configuration required.

Test Configuration

  • Kubernetes clusters tested on: OpenShift (resource hub)

Checklist 🎯

  • Followed coding guidelines
  • Comments added
  • Dependent changes merged
  • Documentation updated
  • Tests added or updated

Additional information

.

'}';
}

}
Copy link
Contributor

Choose a reason for hiding this comment

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

EOF missing


private final List<String> mandatoryQueryVariables = new ArrayList<>(Arrays.asList(
AnalyzerConstants.AutotuneObjectConstants.NAME,
AnalyzerConstants.AutotuneObjectConstants.DATASOURCE,
Copy link
Contributor

Choose a reason for hiding this comment

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

The datasource should also be available at the global level. In the query variables, the datasource should not be mandatory; if not specified, it will default to the global level.

private static final Logger LOGGER = LoggerFactory.getLogger(MetadataProfileValidation.class);
private boolean success;
private String errorMessage;
private final Map<String, MetadataProfile> metadataProfilesMap;
Copy link
Contributor

Choose a reason for hiding this comment

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

why hashMap ? can we have String and MetadataProfile variable instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request local_monitoring
Projects
Status: Under Review
Development

Successfully merging this pull request may close these issues.

2 participants