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

Apollo OpenAPI 3.2.5 获取集群下所有Namespace信息接口 新增参数决定是否填充所有的Namespace下面的item信息 #5243

Open
youngzil opened this issue Oct 3, 2024 · 1 comment
Labels
feature request Categorizes issue as related to a new feature. help wanted

Comments

@youngzil
Copy link
Contributor

youngzil commented Oct 3, 2024

你的特性请求和某个问题有关吗?请描述

Apollo OpenAPI 3.2.5 获取集群下所有Namespace信息接口 获取的返回参数默认是填充所有的 items 的,这个填充是个非常耗费时间和资源的动作,但是实际上很多时候业务是只需要获取cluster下面的所有的Namespace列表的,后续再根据实际情况获取对应的Namespace下面的所有item数据 或者 不获取具体的items数据

代码位置:com.ctrip.framework.apollo.portal.service.NamespaceService#transformNamespace2BO
其中主要的逻辑就是在 填充NS中的items数据

image

清晰简洁地描述一下你希望的解决方案

可以考虑新增个param,比如 boolean fillItems,拉取端来决定是否填充所有的Namespace下面的item信息

清晰简洁地描述一下这个特性的备选方案

其它背景

BTW:如果觉得这个特性合理,我可以实现这个方案

@nobodyiam
Copy link
Member

我觉得是可以的

@nobodyiam nobodyiam added feature request Categorizes issue as related to a new feature. help wanted labels Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Categorizes issue as related to a new feature. help wanted
Projects
None yet
Development

No branches or pull requests

2 participants