Skip to content

Describe closed Deployment Workflows returns NotFound + test ListDeployments excludes closed#7267

Merged
carlydf merged 10 commits intoversioning-3.1-mergefrom
cdf/handle-closed
Feb 6, 2025
Merged

Describe closed Deployment Workflows returns NotFound + test ListDeployments excludes closed#7267
carlydf merged 10 commits intoversioning-3.1-mergefrom
cdf/handle-closed

Conversation

@carlydf
Copy link
Copy Markdown
Contributor

@carlydf carlydf commented Feb 6, 2025

What changed?

Make describe closed wf return not found and add tests

Why?

How did you test it?

Potential risks

Documentation

Is hotfix candidate?

@carlydf carlydf requested a review from a team as a code owner February 6, 2025 02:28
@carlydf carlydf requested a review from Shivs11 February 6, 2025 02:31
Copy link
Copy Markdown
Contributor

@ShahabT ShahabT left a comment

Choose a reason for hiding this comment

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

This works, but I wonder if it was better for the query handler to just return an error when the wf is closed rather than pushing logic of checking closed to the client. That way, keeping just a in-memory bool in wf memory would be enough, without need for augmenting protos.

@ShahabT ShahabT force-pushed the versioning-3.1-merge branch 2 times, most recently from 616671c to b5acfe9 Compare February 6, 2025 08:34
@ShahabT ShahabT force-pushed the versioning-3.1-merge branch from 122d338 to 9140a68 Compare February 6, 2025 17:17
@carlydf carlydf merged commit b8cfd85 into versioning-3.1-merge Feb 6, 2025
@carlydf carlydf deleted the cdf/handle-closed branch February 6, 2025 19:09
ShahabT added a commit that referenced this pull request Feb 6, 2025
…oyments excludes closed (#7267)

## What changed?
Make describe closed wf return not found and add tests

## Why?
<!-- Tell your future self why have you made these changes -->

## How did you test it?
<!-- How have you verified this change? Tested locally? Added a unit
test? Checked in staging env? -->

## Potential risks
<!-- Assuming the worst case, what can be broken when deploying this
change to production? -->

## Documentation
<!-- Have you made sure this change doesn't falsify anything currently
stated in `docs/`? If significant
new behavior is added, have you described that in `docs/`? -->

## Is hotfix candidate?
<!-- Is this PR a hotfix candidate or does it require a notification to
be sent to the broader community? (Yes/No) -->

---------

Co-authored-by: ShahabT <[email protected]>
Co-authored-by: Shivam Saraf <[email protected]>
ShahabT added a commit that referenced this pull request Feb 6, 2025
…oyments excludes closed (#7267)

## What changed?
Make describe closed wf return not found and add tests

## Why?
<!-- Tell your future self why have you made these changes -->

## How did you test it?
<!-- How have you verified this change? Tested locally? Added a unit
test? Checked in staging env? -->

## Potential risks
<!-- Assuming the worst case, what can be broken when deploying this
change to production? -->

## Documentation
<!-- Have you made sure this change doesn't falsify anything currently
stated in `docs/`? If significant
new behavior is added, have you described that in `docs/`? -->

## Is hotfix candidate?
<!-- Is this PR a hotfix candidate or does it require a notification to
be sent to the broader community? (Yes/No) -->

---------

Co-authored-by: ShahabT <[email protected]>
Co-authored-by: Shivam Saraf <[email protected]>
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