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

improvement(api): send action type to cloud #5447

Merged
merged 1 commit into from
Oct 10, 2024
Merged

Conversation

eysi09
Copy link
Collaborator

@eysi09 eysi09 commented Nov 20, 2023

What this PR does / why we need it:

Sends the action type to cloud so that it can e.g. be displayed in the graph UI and in command results in general.

We weren't doing that previously because a bit of a legacy baggage but that has been resolved.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Garden Cloud itself was updated awhile ago to handle this data so this only required Core fixes.

@eysi09 eysi09 marked this pull request as ready for review November 20, 2023 13:21
@eysi09 eysi09 requested a review from thsig November 20, 2023 13:21
@eysi09 eysi09 force-pushed the send-action-type-to-cloud-2 branch 2 times, most recently from 1178087 to 4b5d7e2 Compare November 20, 2023 13:36
@eysi09 eysi09 marked this pull request as draft November 21, 2023 16:14
core/src/graph/actions.ts Outdated Show resolved Hide resolved
@eysi09 eysi09 force-pushed the send-action-type-to-cloud-2 branch 6 times, most recently from 4d339c8 to 01d0522 Compare October 10, 2024 12:57
@eysi09 eysi09 marked this pull request as ready for review October 10, 2024 13:45
@eysi09 eysi09 requested review from vvagaytsev and removed request for thsig October 10, 2024 13:45
@eysi09 eysi09 force-pushed the send-action-type-to-cloud-2 branch from 01d0522 to ce93d19 Compare October 10, 2024 13:45
@@ -115,7 +115,7 @@ describe("kubernetes-type handlers", () => {
}

async function deployInNamespace({ nsName, deployName }: { nsName: string; deployName: string }) {
garden.setModuleConfigs([withNamespace(nsModuleConfig, nsName)])
garden.mergeModuleConfigs([withNamespace(nsModuleConfig, nsName)])
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

In the previous version these tests were actually not working right because when setting the module config here we replaced the actual module configs from the test projects.

With this change we now merge the module config we're setting dynamically with the existing configs so that nothing gets overwritten.

@eysi09 eysi09 force-pushed the send-action-type-to-cloud-2 branch from ce93d19 to 67e8830 Compare October 10, 2024 13:53
core/src/util/testing.ts Outdated Show resolved Hide resolved
Before this improvement we weren't sending the action type to Cloud due
to some legacy issues which have since been resolved.

The action type is used in Cloud in e.g. the graph UI and on command
results.

Note that Cloud has already been updated to handle the action type and
those changes rolled out to all users, so this is only required Core
side work.
@eysi09 eysi09 force-pushed the send-action-type-to-cloud-2 branch from 67e8830 to 234bad0 Compare October 10, 2024 14:01
@eysi09 eysi09 enabled auto-merge October 10, 2024 14:03
Copy link
Collaborator

@vvagaytsev vvagaytsev left a comment

Choose a reason for hiding this comment

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

👍

@eysi09 eysi09 added this pull request to the merge queue Oct 10, 2024
Merged via the queue into main with commit 15fe974 Oct 10, 2024
40 checks passed
@eysi09 eysi09 deleted the send-action-type-to-cloud-2 branch October 10, 2024 14:46
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.

2 participants