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 cluster-id in inspect file #1509

Merged
merged 7 commits into from
Feb 2, 2024
Merged

fix cluster-id in inspect file #1509

merged 7 commits into from
Feb 2, 2024

Conversation

sunkickr
Copy link
Contributor

@sunkickr sunkickr commented Jan 30, 2024

Description

Made sure that clsuter id is not printing as null. When cluster id does not come from API it is being set to null. It should be set to not applicable.

🎟 Issue(s)

Related #XXX

🧪 Functional Testing

List the functional testing steps to confirm this feature or fix.

📸 Screenshots

Add screenshots to illustrate the validity of these changes.

📋 Checklist

  • Rebased from the main (or release if patching) branch (before testing)
  • Ran make test before taking out of draft
  • Ran make lint before taking out of draft
  • Added/updated applicable tests
  • Tested against Astro-API (if necessary).
  • Tested against Houston-API and Astronomer (if necessary).
  • Communicated to/tagged owners of respective clients potentially impacted by these changes.
  • Updated any related documentation

Copy link

codecov bot commented Jan 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5667296) 85.92% compared to head (db2d892) 85.92%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1509   +/-   ##
=======================================
  Coverage   85.92%   85.92%           
=======================================
  Files         112      112           
  Lines       14838    14840    +2     
=======================================
+ Hits        12750    12752    +2     
  Misses       1252     1252           
  Partials      836      836           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

releaseName = notApplicable
}
if !deployment.IsDeploymentStandard(*coreDeployment.Type) {
Copy link
Contributor

Choose a reason for hiding this comment

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

can we add/update unit tests for both these cases as well

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We already have unit tests coving each deployment type

Copy link
Contributor

Choose a reason for hiding this comment

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

I was wondering why this bug wasn't identified earlier via the unit tests. It might be beneficial for us to consider adding a test case for every bug we resolve, to help prevent any regressions in the future. What do you think?

@sunkickr sunkickr merged commit 104a2a3 into main Feb 2, 2024
5 checks passed
@sunkickr sunkickr deleted the fix-inspect-cluster-id branch February 2, 2024 16:09
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