[refactor][volumeCache]: align REST URLs with new class names (zstack)#3867
Open
MatheMatrix wants to merge 1 commit intofeature-5.5.6-local-cachefrom
Open
Conversation
Follow-up of zstack!9674 / premium!13604. Class names already
migrated to HostCacheStore/VolumeCache, but REST URLs still used
the old local-volume-cache-pools / local-volume-cache paths.
Align URLs to new resource naming and ZStack REST plural
convention (image-stores, primary-storages):
/hosts/{hostUuid}/local-volume-cache-pools[/{uuid}[/actions]]
-> /hosts/{hostUuid}/host-cache-stores[/{uuid}[/actions]]
/hosts/local-volume-cache-pools[/{uuid}]
-> /hosts/host-cache-stores[/{uuid}]
/volumes/{volumeUuid}/local-volume-cache/actions
-> /volumes/{volumeUuid}/volume-cache/actions
This commit only touches generated SDK Action files. Matching
@RestRequest annotations and Doc groovy files updated in the
paired premium MR.
Resolves: ZSTAC-81715
Change-Id: I7acd945e1ab297cc2d28a04cbb933c8c9721d63f
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (10)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including ⚙️ Run configurationConfiguration used: Path: http://open.zstack.ai:20001/code-reviews/zstack-cloud.yaml (via .coderabbit.yaml) Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
跟进 zstack!9674 / premium!13604(HostCacheStore/VolumeCache 重命名)。Java/SDK 类名已全部迁移,但 REST URL 仍保留旧
local-volume-cache-pools/local-volume-cache路径,文档/URL 视觉不一致。主要改动
对齐到新资源命名 + ZStack REST 复数惯例(image-stores、primary-storages):
本仓只动 SDK Action 文件(10 个)。@RestRequest 注解 + Doc groovy 在配对的 premium MR。
关联仓库 MR
refactor/volumeCache-api-url-rename@@2验证
grep -rn 'local-volume-cache' sdk/已清零info.pathJira
ZSTAC-81715
Note
替代 !9740(source branch 加 @@2 以与 premium 配对)。
sync from gitlab !9742