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 get shared service by template name to filter by active service only #2947

Conversation

guybartal
Copy link
Contributor

@guybartal guybartal commented Dec 6, 2022

Resolves #2910

What is being addressed

When fetching shared service by template name it may return more than single result when there are inactive or deleted shared services, this change fixes the filter to return only operating shared service by template name.

How is this addressed

  • filter by deploymentStatus != "deleted" and deploymentStatus != "deployment-failed"

@guybartal guybartal changed the title filter shared service by operating service only fix get shared service by template name to filter by operating service only Dec 6, 2022
@github-actions
Copy link

github-actions bot commented Dec 6, 2022

Unit Test Results

538 tests   538 ✔️  14s ⏱️
    1 suites      0 💤
    1 files        0

Results for commit 7ce6dd4.

♻️ This comment has been updated with latest results.

@guybartal guybartal changed the title fix get shared service by template name to filter by operating service only Fix get shared service by template name to filter by operating service only Dec 6, 2022
@guybartal
Copy link
Contributor Author

/test

@github-actions
Copy link

github-actions bot commented Dec 6, 2022

🤖 pr-bot 🤖

⚠️ Cannot run tests as PR is not mergeable. Ensure that the PR is open and doesn't have any conflicts.

(in response to this comment from @guybartal)

@guybartal guybartal enabled auto-merge (squash) December 6, 2022 14:28
@guybartal
Copy link
Contributor Author

/test

@github-actions
Copy link

github-actions bot commented Dec 6, 2022

🤖 pr-bot 🤖

🏃 Running tests: https://github.com/microsoft/AzureTRE/actions/runs/3630441691 (with refid 715eca8d)

(in response to this comment from @guybartal)

@guybartal guybartal changed the title Fix get shared service by template name to filter by operating service only Fix get shared service by template name to filter by active service only Dec 7, 2022
@guybartal
Copy link
Contributor Author

/test

@github-actions
Copy link

github-actions bot commented Dec 7, 2022

🤖 pr-bot 🤖

🏃 Running tests: https://github.com/microsoft/AzureTRE/actions/runs/3636993045 (with refid 715eca8d)

(in response to this comment from @guybartal)

@guybartal guybartal merged commit c7da5d3 into microsoft:main Dec 7, 2022
@guybartal guybartal deleted the guybartal/filter-by-operating-shared-service branch December 7, 2022 11:27
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.

Pipeline tries to update a deleted shared service
3 participants