Skip to content

Vk update user#897

Closed
vaivk369 wants to merge 30 commits into
ELEVATE-Project:developfrom
vaivk369:vk-updateUser
Closed

Vk update user#897
vaivk369 wants to merge 30 commits into
ELEVATE-Project:developfrom
vaivk369:vk-updateUser

Conversation

@vaivk369

@vaivk369 vaivk369 commented Jul 16, 2026

Copy link
Copy Markdown

Summary by CodeRabbit

  • New Features

    • Added tenant account creation support.
    • Added user search filters for status and custom metadata.
    • CSV invitations now map dynamic entity fields into user metadata.
    • Added partial user profile updates with optional role assignment for administrators.
    • Tenant administrators can now access the admin login flow.
    • Account registration can optionally skip automatic login.
  • Bug Fixes

    • Preserved entity metadata in processed responses.
    • Improved handling of missing entity definitions and user search results.
    • Added automated development and QA deployment workflows.

vaivk369 and others added 30 commits December 29, 2025 04:58
…rties of undefined (reading 'outputFilePath')
…crypting phone and passing correct meta in account search
Issue #000 fix: added new endpoint to create account in teanat and decrypting phone and passing correct meta in account search
Added AWS secret access key exports for deployment.
Updated environment variable export syntax for AWS credentials.
Issue #000 fix: serach Users with one or more meta params
Issue#253287 Feat: User account search API > Add status filter
Issue#252552 Feat: User bulk upload with all entity types
Profile read while creating project giving error
Issue#254093 Feat: Update > LC update participant address
@vaivk369 vaivk369 closed this Jul 16, 2026
@coderabbitai

coderabbitai Bot commented Jul 16, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 714b29db-2783-4d74-85be-3024dbb3224c

📥 Commits

Reviewing files that changed from the base of the PR and between eb1d469 and f531c84.

⛔ Files ignored due to path filters (1)
  • src/api-doc/bulkUser.md is excluded by !src/api-doc/**, !**/*.md
📒 Files selected for processing (10)
  • .github/workflows/brac-dev-deployment.yaml
  • .github/workflows/brac-qa-deplyment.yaml
  • src/controllers/v1/tenant.js
  • src/database/queries/users.js
  • src/generics/utils.js
  • src/helpers/userInvite.js
  • src/services/account.js
  • src/services/admin.js
  • src/services/org-admin.js
  • src/services/user.js

Walkthrough

Adds BRAC development and QA deployment workflows, tenant-aware account creation, optional login issuance, metadata-based user search and CSV imports, and expanded administrative user update behavior.

Changes

Tenant-aware user management

Layer / File(s) Summary
Tenant-aware account creation
src/controllers/v1/tenant.js, src/services/account.js
Adds an account creation endpoint and supports tenant-header resolution, configurable roles, and conditional token/session creation.
Metadata-aware user search
src/services/account.js, src/database/queries/users.js, src/generics/utils.js
Adds status and JSON metadata filters, preserves metadata entries, decrypts phones, and processes search results.
Dynamic invitation metadata mapping
src/helpers/userInvite.js
Maps dynamic CSV entity fields into metadata IDs for scalar and array values, then removes processed fields.
Administrative user updates
src/services/admin.js, src/services/org-admin.js, src/services/user.js
Allows tenant administrators to authenticate and supports role updates plus partial profile updates with optional required-field validation.

BRAC deployment automation

Layer / File(s) Summary
BRAC build and deployment workflows
.github/workflows/brac-dev-deployment.yaml, .github/workflows/brac-qa-deplyment.yaml
Builds and pushes BRAC images to ECR, then deploys development and QA images over SSH with environment-file replacement and deploy.sh execution.

Estimated code review effort: 4 (Complex) | ~60 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Tenant.accountCreate
  participant AccountHelper.create
  participant TenantLookup
  participant UserSession
  Tenant.accountCreate->>AccountHelper.create: body and registerWithLogin=false
  AccountHelper.create->>TenantLookup: resolve tenant domain
  AccountHelper.create->>UserSession: create tokens and session when login is enabled
Loading

Possibly related PRs

Poem

A rabbit hops through fields of meta,
With ECR carrots packed and ready.
Roles bloom, and sessions hide,
CSV values hop inside.
BRAC deploys with ears held high!

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with 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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Warning

⚠️ This pull request shows signs of AI-generated slop (redundant_comments, description_diff_mismatch). It has been flagged by CodeRabbit slop detection and should be reviewed carefully.

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.

4 participants