apollo
apollo copied to clipboard
无法删除旧的配置
- [ ] I have checked the discussions
- [ ] I have searched the issues of this repository and believe that this is not a duplicate.
- [ ] I have checked the FAQ of this repository and believe that this is not a duplicate.
Describe the bug
A clear and concise description of what the bug is.
如图,界面上展示的是1天,然而这个最后时间过去好几个月了,依然展示,无法删除 To Reproduce Steps to reproduce the behavior: 1. 2. 3. 4.
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Additional Details & Logs
- Version
- Error logs
- Configuration
- Platform and Operating System
To address the issue of not being able to delete an old configuration and the interface not accurately reflecting the most recent update or refresh times, you can follow these steps:
-
Deleting an Old Configuration: Look for the delete link for each configuration item in the Apollo interface. This link triggers the
removeItem
function, which is responsible for removing items from the synchronization process. This function operates oncreateItems
andupdateItems
, representing items to be created and updated, respectively. For more technical details, you can refer to theSyncConfigController.js
file in the Apollo repository. -
Ensuring Accurate Reflection of Update/Refresh Times: The interface's reflection of update or refresh times might require ensuring that the AngularJS controller associated with the page updates the model and view accordingly. This involves calling backend APIs to fetch the latest configuration state and then updating the AngularJS model, which updates the view.
-
Manual Refresh Option: If automatic updates do not reflect, consider implementing a manual refresh option. In the Apollo interface, there's a button that calls the
refreshNamespace()
function, which can be a starting point for implementing or troubleshooting this functionality.
Ensure that the backend and AngularJS services are correctly integrated and support the necessary functionality for deletion and fetching the latest configuration state. If issues persist, checking error messages and confirming that you have the necessary permissions to delete configurations might provide further insights.
The version of Apollo you're working with is identified as 2.3.0-SNAPSHOT
in the pom.xml
file, which might be relevant when looking into documentation or seeking specific help for your version.
Sources
- apollo-portal/src/main/resources/static/config/sync.html
- pom.xml
- apollo-portal/src/main/resources/static/scripts/controller/config/SyncConfigController.js
- apollo-build-sql-converter/src/test/java/com/ctrip/framework/apollo/build/sql/converter/TestH2Function.java
- apollo-portal/src/main/resources/static/views/component/namespace-panel-master-tab.html
About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
If you want to continue the conversation, start your reply with @dosu-bot.
说明这几个实例还连着。配置获取时间是指第一次拿到这个配置的时间。
我代码里早已去除了其引用
通过日志发现,client会一直试图加载application 这个namespace
可以 debug 或者使用 arthas 看下是哪里引用了 application namespace
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had activity in the last 7 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted". Thank you for your contributions.