<fix>[iam2]: add scim event schema#4212
Conversation
|
Warning Review limit reached
More reviews will be available in 2 hours, 48 minutes, and 25 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ 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: Path: http://open.zstack.ai:20001/code-reviews/zstack-cloud.yaml (via .coderabbit.yaml) Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (11)
Walkthrough数据库迁移脚本在 ChangesSCIM 事件表
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
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 使用 验证:
|
6c1d855 to
835378a
Compare
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
- Move SCIM receiver secrets from GlobalProperty to GlobalConfig. - Require X-SCIM timestamp and uuid-only resource identity. - Remove id/externalId compatibility fields from the shared SCIM payload. Resolves: ZCF-4158 Change-Id: Ie199565a00b0d1df07ac756820b131d0f8683462
19da051 to
9418fbe
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