Skip to content

Comments

Removed create and update deployment and replaced with upsert deployment#1915

Merged
pgvishnuram merged 3 commits intomainfrom
gh_7570
Aug 20, 2025
Merged

Removed create and update deployment and replaced with upsert deployment#1915
pgvishnuram merged 3 commits intomainfrom
gh_7570

Conversation

@rujhan-arora-astronomer
Copy link
Contributor

@rujhan-arora-astronomer rujhan-arora-astronomer commented Aug 19, 2025

Description

Removed create and update deployment and replaced with upsert deployment. This is only for Software versions >= 1.0.0.
For older Software versions, CLI would use the existing create and update flows.

🎟 Issue(s)

Related https://github.com/astronomer/issues/issues/7570

🧪 Functional Testing

Locally

📸 Screenshots

Screenshot 2025-08-19 at 12 26 17 PM Screenshot 2025-08-19 at 12 26 28 PM Screenshot 2025-08-19 at 12 38 30 PM Screenshot 2025-08-19 at 12 38 39 PM Screenshot 2025-08-19 at 12 38 52 PM

📋 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

@pgvishnuram
Copy link
Contributor

for airflow3 software now enforces dagProcessor we should them as well

@pgvishnuram pgvishnuram merged commit 4a3ea31 into main Aug 20, 2025
4 of 5 checks passed
@pgvishnuram pgvishnuram deleted the gh_7570 branch August 20, 2025 13:42
// UpdateDeployment - update a deployment
func (h ClientImplementation) UpdateDeployment(variables map[string]interface{}) (*Deployment, error) {
reqQuery := DeploymentUpdateRequest.GreatestLowerBound(version)
if variables["payload"] != nil {

Choose a reason for hiding this comment

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

Is it possible for you to add test for this if statement?

Copy link

@karankhanchandani karankhanchandani left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. LGTM.

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