Skip to content

Fix 'cluster not found' error when requesting source from automation sourceRef#4028

Merged
joshri merged 2 commits intomainfrom
verified-cluster-name
Sep 19, 2023
Merged

Fix 'cluster not found' error when requesting source from automation sourceRef#4028
joshri merged 2 commits intomainfrom
verified-cluster-name

Conversation

@joshri
Copy link
Copy Markdown
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
@joshri joshri requested a review from yiannistri September 19, 2023 17:08
Copy link
Copy Markdown
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.

🥇

…ed source object request and new tab on new docs button
@joshri joshri force-pushed the verified-cluster-name branch from b1eb0ea to 344e1d1 Compare September 19, 2023 19:49
@joshri joshri merged commit 194793d into main Sep 19, 2023
@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