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

feat(pkg/web): Add a test for the crane url to avoid Grafana 404. #280

Merged
merged 1 commit into from
May 5, 2022

Conversation

zsnmwy
Copy link
Member

@zsnmwy zsnmwy commented Apr 22, 2022

What this PR does / why we need it:

Add a test for the crane url to avoid Grafana 404.

Which issue(s) this PR fixes:

image

@@ -80,6 +80,9 @@ export const EditClusterModal = React.memo(() => {
} else if (!cluster.craneUrl.startsWith('http://') && !cluster.craneUrl.startsWith('https://')) {
res.error = true;
res.msg = t('Crane URL格式不正确,请输入正确的URL');
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we can also add a sample url in placeholder .

@zsnmwy zsnmwy force-pushed the add_crane_url_tips branch 2 times, most recently from 2085aed to 4f90410 Compare May 4, 2022 09:26
@github-actions
Copy link
Contributor

github-actions bot commented May 4, 2022

🎉 Successfully Build Images.

Overview: https://finops.coding.net/public-artifacts/gocrane/crane/packages

Image Pull Command
crane-agent:pr-280-76c0a6a docker pull finops-docker.pkg.coding.net/gocrane/crane/crane-agent:pr-280-76c0a6a
dashboard:pr-280-76c0a6a docker pull finops-docker.pkg.coding.net/gocrane/crane/dashboard:pr-280-76c0a6a
metric-adapter:pr-280-76c0a6a docker pull finops-docker.pkg.coding.net/gocrane/crane/metric-adapter:pr-280-76c0a6a
craned:pr-280-76c0a6a docker pull finops-docker.pkg.coding.net/gocrane/crane/craned:pr-280-76c0a6a

@zsnmwy
Copy link
Member Author

zsnmwy commented May 4, 2022

image

image

2022-05-04 18 15 13
 13 30 06

@zsnmwy zsnmwy requested a review from qmhu May 4, 2022 10:20
Signed-off-by: zsnmwy <szlszl35622@gmail.com>
@qmhu
Copy link
Member

qmhu commented May 5, 2022

/LGTM

@qmhu qmhu merged commit ad77889 into gocrane:main May 5, 2022
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