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 'cluster not found' error when requesting source from automation sourceRef #4028

Merged
merged 2 commits into from
Sep 19, 2023

Conversation

joshri
Copy link
Contributor

@joshri joshri commented Sep 19, 2023

Closes #4019

The request for an automation's source was using the sourceRef field, which doesn't have a namespace if the source is in the same one as an automation, and NEVER has a cluster name. This PR uses the automation's namespace and cluster name to actually get the source back on these requests.

Also fixes not actually opening a new tab on the new docs button - careful when using the as prop for styles with a styled component, because it actually changed the a element into a button as well

@joshri joshri added the area/ui Issues that require front-end work label Sep 19, 2023
Copy link
Contributor

@yiannistri yiannistri left a comment

Choose a reason for hiding this comment

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

🥇

@joshri joshri merged commit 194793d into main Sep 19, 2023
14 checks passed
@joshri joshri deleted the verified-cluster-name branch September 19, 2023 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ui Issues that require front-end work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cluster not found error
2 participants