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

Fixes #2962 - Clean up fields parameter choices in GET APIs #2963

Merged
merged 1 commit into from Feb 26, 2022
Merged

Conversation

sureshms
Copy link
Contributor

@sureshms sureshms commented Feb 24, 2022

Describe your changes :

See #2962 for more details

Type of change :

  • Bug fix
  • Improvement

Checklist:

  • I have read the CONTRIBUTING document.
  • I have performed a self-review of my own.
  • I have tagged my reviewers below.
  • I have commented on my code, particularly in hard-to-understand areas.
  • My changes generate no new warnings.
  • I have added tests that prove my fix is effective or that my feature works.
  • All new and existing tests passed.

@@ -13,6 +13,7 @@

package org.openmetadata.catalog.resources.teams;

import static java.util.List.*;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Wildcard import..

for (EntityReference role : expectedRoles) {
TestUtils.existsInEntityReferenceList(user.getRoles(), role.getId(), true);
}
System.out.println("XXX expectedRoles " + expectedRoles);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove print statements?

// Some fields are not set and hence are null - tested elsewhere
assertListNotNull(
pipeline.getOwner(),
/*pipeline.getTasks(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove commented code?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That was to call out, we are not specifically testing those fields... :)

@sonarcloud
Copy link

sonarcloud bot commented Feb 24, 2022

[catalog] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

81.0% 81.0% Coverage
0.0% 0.0% Duplication

@sureshms sureshms changed the title Fixes #2962 - Fix bugs reported by Sonar issue on release 0.9 (#2943) Fixes #2962 - Clean up fields parameter choices in GET APIs Feb 26, 2022
@sonarcloud
Copy link

sonarcloud bot commented Feb 26, 2022

[open-metadata-ingestion] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@sureshms sureshms merged commit bf57719 into main Feb 26, 2022
@sureshms sureshms deleted the issue2962 branch February 26, 2022 06: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.

None yet

3 participants