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

fix(search): correct type_id usage in CI relation filtering #633

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

thexqn
Copy link
Contributor

@thexqn thexqn commented Nov 6, 2024

问题:接口https://cmdb.veops.cn/api/v0.1/ci_relations/search/full?level=2&root_ids=5&has_m2m=1&type_ids=1,2
在获取层级关系时,如果父CITYPE关联的两个子CITYPE的唯一标识字段一致,使用该接口获取数据时,会出现错乱。以type_ids=1,2为例,原意是要获取1,2两个CITYPE的2层关系,但通过该接口会获取到已关联的其他子CITYPE的数据。
修复方式:具体见代码。

@pycook pycook merged commit 57d4bf5 into veops:master Nov 11, 2024
2 checks passed
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