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

Store action type in cloud #5278

Closed
wants to merge 8 commits into from
Closed

Store action type in cloud #5278

wants to merge 8 commits into from

Conversation

eysi09
Copy link
Collaborator

@eysi09 eysi09 commented Oct 20, 2023

What this PR does / why we need it:

There's a bit of history here.

Garden has a concept of action kinds and action types, both of which we want to store in display in the dashboard UI.

Due to some legacy issues, were confusing the two and the API didn't support payload with the action type set correctly.

This has since been fixed in the API but be never updated the Core payload until.

However, there are older instances of the API still running that haven't been updated to support this payload yet, so we feature flag it for now. We should be able to move the feature flag very soon.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

We should squash the commits before merging.

@eysi09 eysi09 force-pushed the send-action-type-to-cloud branch from c892b15 to ff34b5d Compare October 20, 2023 07:39
@eysi09 eysi09 changed the title chore: save Store action type in cloud Oct 20, 2023
@eysi09 eysi09 force-pushed the send-action-type-to-cloud branch 3 times, most recently from 5ce8929 to 5cf2ee6 Compare October 20, 2023 09:46
core/src/graph/actions.ts Outdated Show resolved Hide resolved
@eysi09 eysi09 force-pushed the send-action-type-to-cloud branch from cc5e511 to fe203e4 Compare October 23, 2023 10:53
@eysi09 eysi09 marked this pull request as ready for review October 23, 2023 10:54
@eysi09 eysi09 force-pushed the send-action-type-to-cloud branch from fe203e4 to 79a3f17 Compare October 23, 2023 10:55
thsig
thsig previously approved these changes Oct 23, 2023
@eysi09 eysi09 force-pushed the send-action-type-to-cloud branch from 40f6617 to 3dcd263 Compare October 23, 2023 22:12
eysi09 and others added 8 commits November 1, 2023 13:48
This commit fixes a regression introduced with:
#5291

That commit was just a tiny tweak to a couple of lines of code to
improve error messages but actually ended up breaking the core <> cloud
interaction for the community tier dashboard.

The underlying reason is the fact that this particular code was quite
convoluted and not tested well enough.

So this commit refactors the cloud init logic to make it more readable
and adds a handful of tests to prevent these kind of regressions
from happening again.
A previous commit in the same PR changed this behaviour. This simply
reverts it back to what it was.
@eysi09 eysi09 force-pushed the send-action-type-to-cloud branch from 3dcd263 to 0d43380 Compare November 1, 2023 12:48
@eysi09
Copy link
Collaborator Author

eysi09 commented Nov 20, 2023

Closing in favour of #5447

@eysi09 eysi09 closed this Nov 20, 2023
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