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 deployment inspect and list commands #1544

Merged
merged 6 commits into from
Feb 13, 2024
Merged

Conversation

sunkickr
Copy link
Contributor

@sunkickr sunkickr commented Feb 12, 2024

Description

  • Make it so that region and cloud provider show up for all deployment types in deployment list/create/update/inspect
  • Make sure that inputs are case insensitive
  • Make it so some fields don't show up if they are empty

🎟 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

@@ -246,6 +245,10 @@ func getDeploymentConfig(coreDeploymentPointer *astroplatformcore.Deployment, pl
if coreDeployment.SchedulerAu != nil {
deploymentMap["scheduler_au"] = *coreDeployment.SchedulerAu
}
if coreDeployment.CloudProvider != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to change condition on line 232 for region

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes I think you are right

Copy link

codecov bot commented Feb 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b39322b) 86.06% compared to head (66a386b) 86.11%.
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1544      +/-   ##
==========================================
+ Coverage   86.06%   86.11%   +0.05%     
==========================================
  Files         112      112              
  Lines       14916    14919       +3     
==========================================
+ Hits        12837    12848      +11     
+ Misses       1258     1252       -6     
+ Partials      821      819       -2     

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

@sunkickr sunkickr merged commit 2fdacf7 into main Feb 13, 2024
4 of 5 checks passed
@sunkickr sunkickr deleted the deployment-file/list-fix branch February 13, 2024 18:10
kushalmalani pushed a commit that referenced this pull request Feb 13, 2024
* fix deployment inspect and list commands

* fix lint

* fix test

* fix test

* update test

* fix lint
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

2 participants