Open xworks opened 6 months ago
The changes entail updating URL constructions in various JavaScript files within the apollo-portal
project to include a prefix path using AppUtil.prefixPath()
. This enhancement ensures that all API requests are properly prefixed, aligning with the application's base path configuration, thereby resolving issues related to incorrect request URLs.
File Path | Change Summary |
---|---|
.../ConfigExportController.js |
Updated URL constructions for config export and import using AppUtil.prefixPath() . |
.../import-namespace-modal-directive.js |
Updated URL in importNamespaceModalDirective to include prefix and additional path segments. |
.../services/ClusterService.js , ExportService.js , NamespaceLockService.js |
Added AppUtil dependency and updated URL constructions to use AppUtil.prefixPath() . |
Objective | Addressed | Explanation |
---|---|---|
Add /apollo prefix to import configuration request URLs (#5137) |
✅ |
🐇 Oh hop and skip, the URLs fix,
With a prefix neat, no more tricks.
🌐 From paths that stray, we now refrain,
Apollo's links, they chain again.
🚀 To the stars, our code does leap,
In tidy bounds, the routes we keep.
🎉 Celebrate, for bugs we've chased,
With carrots sweet, this success we taste!
CHANGES.md (2)
Near line 8: Possible spelling mistake found. Context: ...--------- * [Fix circular references on LdapAutoConfiguration](https://github.com/apolloconfig/apollo... --- Near line 10: Possible spelling mistake found. Context: ...at the length of private namespaces are mis-calculated](https://github.com/apolloconfig/apollo...
CLA Assistant Lite bot:
Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.
I have read the CLA Document and I hereby sign the CLA
You can retrigger this bot by commenting recheck in this Pull Request
How about use template strings to concatenate strings, and the same type of address prefixes can be put in a common method?
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 14 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!
How about use template strings to concatenate strings, and the same type of address prefixes can be put in a common method?
This is a great suggestion. However, I think it would require a lot extra work. How about we merge this pr to fix the bug first?
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 14 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!
@xworks would you please sign the cla?
@xworks would you please sign the cla?
@nobodyiam 没太明白要我干啥?
@xworks would you please sign the cla?
@nobodyiam 没太明白要我干啥? @xworks You need to sign the Contributor License Agreement. See the details in the comment of CLA Assistant Lite bot
I have read the CLA Document and I hereby sign the CLA
I have read the CLA Document and I hereby sign the CLA
The commit includes two emails; please link them to your GitHub account or update the commit message.
commit ae2ab02d26c1f41f0efe25e21380a8920e0e40e3
Refs: [xworks/master], v2.2.0-22-gae2ab02d2
Author: xworks <jzqlin@gmail.com>
AuthorDate: Sat May 4 12:19:43 2024 +0800
Commit: xworks <chily.lin@icloudsky.com>
CommitDate: Sat May 4 14:32:47 2024 +0800
Additionally, please also assist in resolving the conflict.
What's the purpose of this PR
Fix bug while importing the configuration's file
Which issue(s) this PR fixes:
Fixes #5137
Brief changelog
Add the prefix path such as /apollo to those urls that were missed in apollo-portal
Follow this checklist to help us incorporate your contribution quickly and easily:
mvn clean test
to make sure this pull request doesn't break anything.CHANGES
log.Summary by CodeRabbit
New Features
Refactor
AppUtil
prefix path method across multiple services to standardize URL generation and improve maintainability.