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

Default dag deploy for hosted #1345

Merged
merged 9 commits into from
Aug 9, 2023
Merged

Default dag deploy for hosted #1345

merged 9 commits into from
Aug 9, 2023

Conversation

sunkickr
Copy link
Contributor

@sunkickr sunkickr commented Aug 7, 2023

Description

dag deploy enabled by default for hosted

🎟 Issue(s)

🧪 Functional Testing

manual testing in dev in a both a hybrid and hosted org

  • created a deployment with deployment create command
  • created a deployment with deployment file

📸 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
Contributor

@neel-astro neel-astro left a comment

Choose a reason for hiding this comment

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

the actual logical change seems good to me. Left a minor nit on variable declaration, and also you would need to fix the failing lint & test checks

@@ -33,6 +33,7 @@ var (
errInvalidValue = errors.New("is not valid")
errNotPermitted = errors.New("is not permitted")
canCiCdDeploy = deployment.CanCiCdDeploy
dagDeploy bool
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: this should be part of CreateOrUpdate function logic, since this variable is local to that function only

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it's used in CreateOrUpdate and getCreateOrUpdateInput

Copy link
Contributor

Choose a reason for hiding this comment

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

ahh, it's better to pass the variable as a function argument to getCreateOrUpdateInput instead of using a global variable. That way function is more readable

Copy link
Contributor Author

Choose a reason for hiding this comment

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

okay fixed

@codecov
Copy link

codecov bot commented Aug 8, 2023

Codecov Report

Patch coverage: 79.16% and project coverage change: -0.02% ⚠️

Comparison is base (ccb6ef2) 86.92% compared to head (4041e20) 86.90%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1345      +/-   ##
==========================================
- Coverage   86.92%   86.90%   -0.02%     
==========================================
  Files         114      114              
  Lines       13872    13889      +17     
==========================================
+ Hits        12058    12070      +12     
- Misses       1083     1085       +2     
- Partials      731      734       +3     
Files Changed Coverage Δ
cloud/deployment/inspect/inspect.go 88.50% <ø> (ø)
cmd/cloud/deployment.go 93.59% <71.42%> (-0.61%) ⬇️
cloud/deployment/fromfile/fromfile.go 97.06% <82.35%> (-0.73%) ⬇️

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

Copy link
Contributor

@kushalmalani kushalmalani left a comment

Choose a reason for hiding this comment

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

Can we bump that coverage?

@sunkickr sunkickr merged commit 1579e35 into main Aug 9, 2023
@sunkickr sunkickr deleted the default-dag-deploy branch August 9, 2023 19:30
kushalmalani pushed a commit that referenced this pull request Aug 9, 2023
* dag deploy enabled by default in hosted

* dag deploy enabled by default in hosted from file

* fix from file

* fix lint

* fix test

* fix test

* fix test

* fix test

* update test coverage
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