-
Notifications
You must be signed in to change notification settings - Fork 19
Develop #817
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
Develop #817
Conversation
Org list fix for SCP
tenantCode and orgCode added to role change request body
Encrypted phone, admin create checks, validator updates, unified login
Sequelize slow-query logging; template refactor; validator updates
Related org code
chore: update password policy regex and message
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughReplaces an internal tenant endpoint, adds Tenant.readInternal, introduces a Kafka user push script, updates password policy defaults, augments organization service logic, refactors validators for flexible identifiers, seeds default org/features via new migrations, adds SQL slow-query logging, adjusts seeders/scripts for tenant/org codes, and updates dependencies. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Client
participant Router
participant TenantController as TenantController.readInternal
participant TenantService
Client->>Router: GET /user/v1/tenant/readInternal/:id
Router->>TenantController: readInternal(req)
TenantController->>TenantController: validate req.params.id
alt valid tenantCode
TenantController->>TenantService: read(tenantCode, true)
TenantService-->>TenantController: tenant data
TenantController-->>Router: 200 OK (tenant)
else missing id
TenantController-->>Router: 400 bad_request (TENANT_CODE_REQUIRED)
end
Router-->>Client: Response
sequenceDiagram
autonumber
participant CLI as CLI User
participant Script as pushUserDataToKafka.js
participant Kafka
participant PG as PostgreSQL
participant EMS as Entity Mgmt Service
CLI->>Script: node pushUserDataToKafka --from --to --tenantId
Script->>Kafka: connect (timeout)
Kafka-->>Script: connected
loop batches of 200 user IDs
Script->>PG: SELECT user_ids updated between from/to for tenant
PG-->>Script: user_id list
Script->>PG: JOIN fetch orgs/roles for users
PG-->>Script: org/role rows
par per user enrichment
Script->>EMS: GET location details (with cache/timeout)
EMS-->>Script: location info or {}
end
Script->>Kafka: publish user events
Kafka-->>Script: acks
end
Script-->>CLI: summary & exit
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Poem
✨ Finishing touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…ript migration-script to push user data to kafka
feat(tenant): add readInternal method for internal service calls
fix the entity seeder file
Refactor default tenant/domain migration with safety improvements
|
@coderabbitai summary |
✅ Actions performedSummary regeneration triggered. |
fix: update rawSelect queries to use correct identifiers for tenants …
Summary by CodeRabbit
New Features
Chores