<fix>[iam2]: add scim event schema#4212
Conversation
|
Warning Review limit reached
More reviews will be available in 38 minutes and 12 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (11)
Warning
|
| Layer / File(s) | Summary |
|---|---|
ScimEventVO 表定义与索引 conf/db/upgrade/V5.5.28__schema.sql |
新增表 ScimEventVO 用于持久化 SCIM 事件状态,包含 clientId、eventId、resourceType、resourceId、resourceVersion、operation、status 等字段;定义 uuid 主键与 (clientId, eventId) 唯一约束;添加 idxScimEventVOResourceVersion 复合索引用于按资源与版本高效查询。 |
Estimated code review effort
🎯 1 (Trivial) | ⏱️ ~5 minutes
Poem
一张表格现身海中央,
记录 SCIM 事件的流光,
主键唯一展风采,
索引飞快助查询,
兔子鼓掌庆迁移!🐰✨
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
| Check name | Status | Explanation |
|---|---|---|
| Title check | ✅ Passed | 标题清晰指出了主要变更为添加 SCIM 事件模式,与变更集内容完全相符。 |
| Description check | ✅ Passed | 描述详细说明了添加 ScimEventVO 表的目的、原因、验证步骤和相关的 premium MR,与变更内容密切相关。 |
| Docstring Coverage | ✅ Passed | No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. |
| Linked Issues check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
✏️ Tip: You can configure your own custom pre-merge checks in the settings.
✨ Finishing Touches
🧪 Generate unit tests (beta)
- Create PR with unit tests
- Commit unit tests in branch
sync/hanyu.liang/fix-4158@@2
Comment @coderabbitai help to get the list of available commands and usage tips.
bb7ff6c to
d7b0ac0
Compare
|
Comment from yaohua.wu: Review: MR !10170 — ZCF-4158Background (preserved across rounds)
P0 — Critical
详细说明 #1: P1 — High
详细说明: P2 — Moderate
P3 — Low
Coverage
Verdict: REVISION_REQUIRED1 条 P0 需在合并前修复(ScimEventVO 基类选型,发布后修复需数据迁移、当前修复零成本);2 条 P1(幂等原子性)建议与 P0 一并处理,PENDING-first 模式可同时解决三条。 🤖 Robot Reviewer |
d7b0ac0 to
6c1d855
Compare
|
Comment from hanyu.liang: 已按本轮 review 处理并推送到
配套也已同步:premium!14295 使用 验证:
|
Add the shared SCIM receiver schema, header contract, and core runtime. Keep header limited to protocol DTOs and handler contracts, while core owns token/signature validation, event persistence, idempotency, version guards, and payload validation. Verification: - mvn -pl header -DskipTests clean install - mvn -pl core -DskipTests clean install - mvn -pl test-premium -Dtest=IAM2ScimReceiverCase -DfailIfNoTests=false test Resolves: ZCF-4158 Change-Id: Ie5627e6372fedecaeed37313a19e299adc700e98
6c1d855 to
835378a
Compare
Summary
ScimEventVOtoconf/db/upgrade/V5.5.28__schema.sql.Why
Premium SCIM receiver code registers
org.zstack.iam2.scim.ScimEventVO, but the zstack 5.5.28 deploydb schema did not create the table. CI failed inIAM2ScimReceiverCasewith:Verification
mvn -pl plugin/kvm -am -DskipTests installpassed.mvn -pl test-premium -Dtest=PremiumTestCaseStabilityTest -Dcases=org.zstack.test.integration.iam2.IAM2ScimReceiverCase -Dtimes=1 -DfailIfNoTests=false testreached and passeddeploydb.sh; local run then stopped before case execution due to unrelated local premium classpath/aspect version mismatch.Notes
This MR should be merged before or together with the premium SCIM receiver MR so CI/runtime has the required table.
sync from gitlab !10170