Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
226 commits
Select commit Hold shift + click to select a range
663d4ff
savepiint
borkarsaish65 Dec 16, 2025
3aeb056
filter modification to accomdate AND and OR filtering
borkarsaish65 Dec 17, 2025
1d7d788
savepoint
borkarsaish65 Dec 18, 2025
8e6a77f
Merge branch 'develop' of https://github.com/ELEVATE-Project/mentorin…
borkarsaish65 Dec 22, 2025
2a74ca3
modification
borkarsaish65 Dec 23, 2025
120e89c
feat:savepoint
borkarsaish65 Dec 23, 2025
b103ede
feat:savepoint-1
borkarsaish65 Dec 23, 2025
fa6a596
feat: code rabbit comments
borkarsaish65 Dec 23, 2025
9c88acb
changes
borkarsaish65 Dec 23, 2025
fdc347c
Merge branch 'develop' of https://github.com/ELEVATE-Project/mentorin…
borkarsaish65 Jan 21, 2026
05f8ea8
savepoint
borkarsaish65 Jan 22, 2026
7393b9e
Merge branch 'develop' of https://github.com/ELEVATE-Project/mentorin…
borkarsaish65 Jan 23, 2026
660fb00
updated api doc
borkarsaish65 Jan 28, 2026
f1855dc
savepoint-1
borkarsaish65 Feb 19, 2026
169effe
Merge branch 'develop' of https://github.com/ELEVATE-Project/mentorin…
borkarsaish65 Feb 19, 2026
f47dd41
PR comments resolved
borkarsaish65 Feb 20, 2026
74907a7
PR comment -1
borkarsaish65 Feb 20, 2026
cf3b919
Enhance image handling in mentees.js and mentors.js by ensuring image…
sumanvpacewisdom Feb 20, 2026
00b2abc
savepoint-1
borkarsaish65 Feb 20, 2026
753e556
Refactor SQL queries in migration file to improve readability and mai…
sumanvpacewisdom Feb 23, 2026
c09cf05
Refactor image handling in mentees.js and mentors.js to ensure null v…
sumanvpacewisdom Feb 23, 2026
462fba5
Standardize session type values in SQL queries within migration file …
sumanvpacewisdom Feb 24, 2026
1034ac7
Enhance SQL queries in migration file by incorporating COALESCE for b…
sumanvpacewisdom Feb 24, 2026
bb58854
Refactor SQL queries in migration file to utilize COALESCE for null v…
sumanvpacewisdom Feb 24, 2026
0d6f2c7
Add detailed logging to getEntityTypeWithEntitiesBasedOnOrg for impro…
sumanvpacewisdom Feb 24, 2026
86e70bc
Remove unnecessary console logs from getEntityTypeWithEntitiesBasedOn…
sumanvpacewisdom Feb 24, 2026
dfa3dc4
Fix filter model_names assignment in getOrgIdAndEntityTypewithEntitie…
sumanvpacewisdom Feb 24, 2026
44d4d21
Refactor model_names filter assignment in getOrgIdAndEntityTypewithEn…
sumanvpacewisdom Feb 24, 2026
0db86de
Refactor model_names filter assignment in getOrgIdAndEntityTypewithEn…
sumanvpacewisdom Feb 24, 2026
36e6044
Merge pull request #1585 from ELEVATE-Project/SANITY_BUG_4511_Dasboar…
rakeshSgr Feb 24, 2026
477427a
Refactor mentor and mentee detail removal logic to use a unified fiel…
sumanvpacewisdom Feb 24, 2026
6d2006d
Update session queries in OrgAdminService and SessionsHelper to inclu…
sumanvpacewisdom Feb 24, 2026
f2bcdb4
Refactor tenant code handling across services to ensure consistent us…
sumanvpacewisdom Feb 24, 2026
4e3686b
Remove unused image handling logic in mentees.js to streamline profil…
sumanvpacewisdom Feb 24, 2026
bb88b83
Merge pull request #1584 from ELEVATE-Project/SANITY_BUG_4505_IMAGE_I…
nevil-mathew Feb 24, 2026
84e7fb1
phase-2-savepoint-1
borkarsaish65 Feb 24, 2026
9802de6
savepoint-pr-comments-1
borkarsaish65 Feb 24, 2026
ae58789
Refactor NotificationHelper and AdminService to streamline tenant cod…
sumanvpacewisdom Feb 24, 2026
cb72089
Merge pull request #1587 from ELEVATE-Project/SANITY_BUG_4512_USER_DE…
nevil-mathew Feb 24, 2026
fc92994
Remove tenant_code from data objects in Mentor, Role, and User Extens…
sumanvpacewisdom Feb 24, 2026
58b9d33
Merge pull request #1590 from ELEVATE-Project/SANITY_BUG_MENTOR_CHANG…
nevil-mathew Feb 24, 2026
c785296
Merge branch 'develop' of https://github.com/ELEVATE-Project/mentorin…
borkarsaish65 Feb 26, 2026
d1bf0be
Merge pull request #1593 from borkarsaish65/feature/tenant_phase2
sumanvpacewisdom Feb 26, 2026
b350ac4
Enhance notification template queries to support tenant and organizat…
sumanvpacewisdom Feb 26, 2026
a492e26
Refactor notification template query methods to normalize tenant and …
sumanvpacewisdom Feb 26, 2026
5d8cdd9
Enhance session handling by adding checks for pre/post email template…
sumanvpacewisdom Feb 26, 2026
dd89d3b
Merge branch 'develop' of https://github.com/ELEVATE-Project/mentorin…
borkarsaish65 Feb 27, 2026
30e58ce
Refactor notification template query logic to simplify organization a…
sumanvpacewisdom Feb 27, 2026
1cc3ee0
Merge branch 'develop' of https://github.com/ELEVATE-Project/mentorin…
borkarsaish65 Feb 27, 2026
9a8e3f2
phase-1-resolved-comments
borkarsaish65 Feb 27, 2026
c98668c
PR-completed-savepoint-1
borkarsaish65 Mar 2, 2026
59c67a5
KB handling of missing tenant code in the token
borkarsaish65 Mar 3, 2026
d6d826a
Comment out KafkaProducer references in form.js to prevent potential …
sumanvpacewisdom Mar 3, 2026
5d670f7
view build on tenant creation
borkarsaish65 Mar 4, 2026
4a2398f
Enhance organization and tenant code handling in OrganizationAndEntit…
sumanvpacewisdom Mar 4, 2026
9abc844
added jobs to scheduler to refresh views when a new tenant is created
borkarsaish65 Mar 4, 2026
2b1f74e
Comment out Kafka event handling logic in kafka.js to improve code cl…
sumanvpacewisdom Mar 4, 2026
be7a32e
Merge pull request #1600 from ELEVATE-Project/4512_BUG_kafka_issue
nevil-mathew Mar 4, 2026
ca22031
Refactor session notification logic by removing redundant template ch…
sumanvpacewisdom Mar 4, 2026
0d655bc
Merge pull request #1594 from ELEVATE-Project/SANITY_BUG_4513_EMAIL_R…
nevil-mathew Mar 4, 2026
3a8d7f4
Enhance entity type caching logic by refining the handling of default…
sumanvpacewisdom Mar 4, 2026
93a28f2
Refactor organization and tenant code extraction in OrganizationAndEn…
sumanvpacewisdom Mar 9, 2026
8698011
Refactor comment for clarity in getOrgIdAndEntityType
sumanvpacewisdom Mar 9, 2026
f86a0a9
Merge pull request #1601 from ELEVATE-Project/BUG_4572_Mentee_list_Fi…
nevil-mathew Mar 9, 2026
b0fd294
Refactor entity type retrieval logic in entityTypeCache.js to streaml…
sumanvpacewisdom Mar 9, 2026
56e0c31
Remove unused pagination variables in MenteesHelper to streamline con…
sumanvpacewisdom Mar 9, 2026
015e95b
Reset pagination variables in MenteesHelper when connection details a…
sumanvpacewisdom Mar 9, 2026
0aa480e
Merge pull request #1602 from ELEVATE-Project/Bug_4334_list_mentee_wi…
nevil-mathew Mar 10, 2026
45fa991
Add organization_id condition to prevent duplication in OrganizationA…
sumanvpacewisdom Mar 10, 2026
1f37b6f
Merge pull request #1603 from ELEVATE-Project/BUG_4572_Mentee_list_Fi…
nevil-mathew Mar 10, 2026
8db1cce
Merge branch 'develop' of https://github.com/ELEVATE-Project/mentorin…
borkarsaish65 Mar 16, 2026
3aea1ad
savepoint
borkarsaish65 Mar 17, 2026
82e27ec
Merge branch 'develop' of https://github.com/ELEVATE-Project/mentorin…
sumanvpacewisdom Mar 23, 2026
751e3ed
Merge pull request #1605 from borkarsaish65/feature/tenant_phase2
sumanvpacewisdom Mar 23, 2026
a6ca78f
Merge branch 'tenant_phase2_temp' into feature/tenant_phase2
sumanvpacewisdom Mar 23, 2026
2664f77
Refactor cache handling in various services to improve clarity and ef…
sumanvpacewisdom Mar 23, 2026
3507dd9
scheduler code added to create jobs to refresh views
borkarsaish65 Mar 24, 2026
2e9b52a
addressed PR comments
borkarsaish65 Mar 24, 2026
af929e5
Refactor cacheHelper.js to enhance logging and clarity
sumanvpacewisdom Mar 25, 2026
8806c4a
Implement entity type data fetching logic
sumanvpacewisdom Mar 25, 2026
e7e61f7
added offset in job creation for tenant
borkarsaish65 Mar 25, 2026
f8e8700
CR comments
borkarsaish65 Mar 25, 2026
5f4e9ff
Merge pull request #1583 from borkarsaish65/feature/tenant_event
nevil-mathew Mar 25, 2026
db8cb97
Merge branch 'develop' of https://github.com/ELEVATE-Project/mentorin…
borkarsaish65 Mar 26, 2026
920bb5d
Add migration to create indexes for tenant-specific materialized view…
sumanvpacewisdom Mar 26, 2026
08f9883
Refactor cache handling in session and user retrieval methods across …
sumanvpacewisdom Mar 26, 2026
ee89b40
addressed all the PR comments
borkarsaish65 Mar 26, 2026
84012ad
Merge branch 'feature/tenant_phase2' of https://github.com/borkarsais…
borkarsaish65 Mar 26, 2026
9630488
fixed PR comments - 2
borkarsaish65 Mar 26, 2026
32cffea
revert: move cache bug fixes to separate branch fix/cache_bugs
borkarsaish65 Mar 27, 2026
89d1eed
fix: cache invalidation and priority bugs in notification templates
borkarsaish65 Mar 27, 2026
1b77f35
savepoint-1
borkarsaish65 Mar 27, 2026
cac65d2
updated authenticator file to remove default hardcoded fallback
borkarsaish65 Mar 27, 2026
38162b5
updated sample config json file
borkarsaish65 Mar 27, 2026
9d6d654
savepoint-2
borkarsaish65 Mar 27, 2026
525c6e1
savepoint- addressed PR comments
borkarsaish65 Mar 27, 2026
f4f395d
savepoint - PR comments and PR recheck
borkarsaish65 Mar 27, 2026
f360de0
savepoint-pr comments resolution
borkarsaish65 Mar 27, 2026
70a2976
feat:savpoint-pr-self-review
borkarsaish65 Mar 27, 2026
7478563
fix :Delete cache call and error log variable name
sumanvpacewisdom Mar 27, 2026
377b54d
adding materialized views indxes
sumanvpacewisdom Mar 27, 2026
73c02ad
pr comment fix
borkarsaish65 Mar 29, 2026
bbbcccc
savepoint-pr resolved
borkarsaish65 Mar 30, 2026
f1e9ac5
Merge pull request #1589 from borkarsaish65/feature/tenant_phase2
nevil-mathew Mar 30, 2026
81bc9bc
savepoint
borkarsaish65 Mar 30, 2026
9f6eafa
Merge branch 'develop' into tenant_fork_phase2
sumanvpacewisdom Mar 30, 2026
75d189a
savepoint-1
borkarsaish65 Mar 30, 2026
539ea65
savepoint-1
borkarsaish65 Mar 30, 2026
9aa4d87
self review-1
borkarsaish65 Mar 30, 2026
9a3d619
self review-2
borkarsaish65 Mar 30, 2026
85f42af
deleted migration for old tenant index creation
sumanvpacewisdom Mar 30, 2026
a8829bb
savepoint-1
borkarsaish65 Mar 30, 2026
ee5885b
savepoint-2
borkarsaish65 Mar 30, 2026
c687a60
entities and entity type fix for cache invalidation
borkarsaish65 Mar 30, 2026
d245e07
Merge remote-tracking branch 'upstream/develop' into tenant_indexes_c…
sumanvpacewisdom Mar 30, 2026
a4c885a
savepoint-1
borkarsaish65 Mar 30, 2026
0a1a098
Merge branch 'develop' of https://github.com/ELEVATE-Project/mentorin…
borkarsaish65 Mar 30, 2026
10266e8
removed caching in listing all template api flow
borkarsaish65 Mar 30, 2026
bc985b8
Merge pull request #1614 from borkarsaish65/fix/cache_bugs_notifications
nevil-mathew Mar 30, 2026
d94f0f6
Removed array format tenant from query
sumanvpacewisdom Mar 30, 2026
c1acffb
fix for forms
borkarsaish65 Mar 30, 2026
803f680
savepoint-1
borkarsaish65 Mar 30, 2026
5e84193
Merge branch 'develop' of https://github.com/ELEVATE-Project/mentorin…
borkarsaish65 Mar 30, 2026
e360dee
removed dead code for update template
sumanvpacewisdom Mar 30, 2026
9417332
changed naming convention
borkarsaish65 Mar 30, 2026
1b207b6
Merge branch 'develop' into tenant_fork_phase2
sumanvpacewisdom Mar 30, 2026
f380c1f
changed naming convention
borkarsaish65 Mar 30, 2026
9e8a7d8
Merge remote-tracking branch 'upstream/develop' into tenant_fork_phase2
sumanvpacewisdom Mar 30, 2026
4ad1047
Merge branch 'tenant_fork_phase2' of https://github.com/sumanvpacewis…
sumanvpacewisdom Mar 30, 2026
27c0094
changed naming convention
borkarsaish65 Mar 30, 2026
e492e7a
Merge pull request #1611 from sumanvpacewisdom/tenant_indexes_creatio…
rakeshSgr Mar 30, 2026
a09c187
Merge pull request #1617 from borkarsaish65/fix/notification_template2
nevil-mathew Mar 30, 2026
dc88da2
addressed pr comments
borkarsaish65 Mar 30, 2026
f294078
Merge pull request #1616 from borkarsaish65/fix/default-org-form-cach…
nevil-mathew Mar 30, 2026
7e254b6
Merge branch 'develop' into tenant_fork_phase2
sumanvpacewisdom Mar 30, 2026
6178414
Merge branch 'develop' of https://github.com/ELEVATE-Project/mentorin…
borkarsaish65 Mar 30, 2026
46ed073
Added Back saish changes with my changes
sumanvpacewisdom Mar 30, 2026
054fcc8
code added to clear user cache across orgs when default entity type i…
borkarsaish65 Mar 30, 2026
c18ead9
correct function arguments
borkarsaish65 Mar 30, 2026
aaada5a
Merge pull request #1612 from sumanvpacewisdom/tenant_fork_phase2
nevil-mathew Mar 30, 2026
d8614cf
pr commetns + pulled latest code
borkarsaish65 Mar 30, 2026
ba25ae7
removed console logs.
borkarsaish65 Mar 30, 2026
2966db6
authenticator updated..
borkarsaish65 Mar 30, 2026
717331a
code updated
borkarsaish65 Mar 30, 2026
a2d80e1
feat: savepoint resolved pr comment:
borkarsaish65 Mar 30, 2026
7287c32
latest changes
borkarsaish65 Mar 30, 2026
00e6263
authenticator update
borkarsaish65 Mar 31, 2026
e3e064d
CR comment resolved
borkarsaish65 Mar 31, 2026
ec19b3a
Merge pull request #1615 from borkarsaish65/feature/config-json-defaults
rakeshSgr Mar 31, 2026
d3c5146
Merge branch 'develop' of https://github.com/ELEVATE-Project/mentorin…
borkarsaish65 Mar 31, 2026
f30c8ee
PR comments addressed
borkarsaish65 Mar 31, 2026
8bbc969
PR comments addressed
borkarsaish65 Mar 31, 2026
8ccf529
PR comments addressed
borkarsaish65 Mar 31, 2026
53c6b91
deleting display properties logic added
borkarsaish65 Mar 31, 2026
b6d543f
addressed PR comment
borkarsaish65 Mar 31, 2026
2e8c552
Merge pull request #1618 from borkarsaish65/fix/entity
nevil-mathew Mar 31, 2026
1593adb
fix for value label in entity types
borkarsaish65 Apr 1, 2026
ee1ac1d
fix:cache/no cache session update/delete fix
borkarsaish65 Apr 1, 2026
24e0a05
fix:session.type fix
borkarsaish65 Apr 1, 2026
bb82393
fix:pr comment cr
borkarsaish65 Apr 1, 2026
fe6ed91
savepoint-1
borkarsaish65 Apr 2, 2026
ed9d398
Merge pull request #1620 from borkarsaish65/fix/session_issue
nevil-mathew Apr 2, 2026
d2b8e3e
Merge pull request #1619 from borkarsaish65/fix/label_issue
nevil-mathew Apr 2, 2026
f2e0682
fix-savepoint org event handling
borkarsaish65 Apr 2, 2026
99e23ad
Merge branch 'develop' of https://github.com/ELEVATE-Project/mentorin…
borkarsaish65 Apr 2, 2026
b4dcf9a
fix-added .env sample file
borkarsaish65 Apr 2, 2026
ddfba32
fix-event code updated
borkarsaish65 Apr 2, 2026
37fe2dd
Merge pull request #1621 from borkarsaish65/fix/org_event
nevil-mathew Apr 2, 2026
459f7e6
fix-1
borkarsaish65 Apr 2, 2026
fc39a6f
Merge pull request #1622 from borkarsaish65/fix/org_event2
nevil-mathew Apr 2, 2026
36587d4
fix-1
borkarsaish65 Apr 8, 2026
e757d96
fix-2
borkarsaish65 Apr 8, 2026
b50d9b7
fix-3
borkarsaish65 Apr 8, 2026
cc9d21b
cr comment resolved
borkarsaish65 Apr 9, 2026
3bc8958
savepoint-1
borkarsaish65 Apr 9, 2026
30a0647
savepoint-1
borkarsaish65 Apr 9, 2026
9ca25a8
savepoint-2 CR review
borkarsaish65 Apr 9, 2026
887f948
fix:setpolicy update function corrected
borkarsaish65 Apr 13, 2026
291851e
Merge branch 'develop' of https://github.com/ELEVATE-Project/mentorin…
borkarsaish65 Apr 14, 2026
355231a
meta.filtertype validations added
borkarsaish65 Apr 14, 2026
d9e81f6
Merge pull request #1626 from borkarsaish65/fix/entity_type
nevil-mathew Apr 14, 2026
b1ec27f
Merge pull request #1628 from borkarsaish65/fix/mentor_list
nevil-mathew Apr 14, 2026
d14b869
Merge pull request #1627 from borkarsaish65/fix/cache_org_policy
nevil-mathew Apr 14, 2026
935049f
Merge pull request #1629 from borkarsaish65/fix/org_policy_update
nevil-mathew Apr 14, 2026
a2ddc68
Merge pull request #1502 from borkarsaish65/feature/3.3stories
nevil-mathew Apr 14, 2026
9291889
feat:savepoint-1
borkarsaish65 Apr 15, 2026
e6dc2ae
feat:savepoint-2
borkarsaish65 Apr 15, 2026
8ec5bd7
orgCode fix in sendNotification
borkarsaish65 Apr 16, 2026
fdb06bc
savepoint-1
borkarsaish65 Apr 16, 2026
54cfe08
savepoint-2
borkarsaish65 Apr 16, 2026
e55dabe
Merge pull request #1630 from borkarsaish65/fix/completed_session_call
nevil-mathew Apr 16, 2026
138d93f
savepoint- pr comment
borkarsaish65 Apr 17, 2026
c3a6a35
Merge pull request #1631 from borkarsaish65/fix/tenant_data
nevil-mathew Apr 17, 2026
32169aa
healthCheck-version-change
MallanagoudaB Apr 22, 2026
b806b90
Merge pull request #1633 from MallanagoudaBiradar/healthCheckVersionC…
rakeshSgr Apr 22, 2026
02a6faf
savepoint-1
borkarsaish65 Apr 24, 2026
b7fdcde
fix-1
borkarsaish65 Apr 24, 2026
80f682b
savepoint-1
borkarsaish65 Apr 27, 2026
62f6fda
fixed; added default org codes in the filters
borkarsaish65 Apr 27, 2026
126dac5
Merge pull request #1635 from borkarsaish65/fix/ticket_4785
nevil-mathew Apr 27, 2026
9ce0725
savepoint-2
borkarsaish65 Apr 27, 2026
791eeb8
fix for image
borkarsaish65 Apr 30, 2026
191f099
Merge branch 'develop' of https://github.com/ELEVATE-Project/mentorin…
borkarsaish65 Apr 30, 2026
f91664f
SAAS fix
borkarsaish65 May 4, 2026
fee8efd
Merge branch 'develop' of https://github.com/ELEVATE-Project/mentorin…
borkarsaish65 May 4, 2026
c0ff68b
SAAS fix updated comment
borkarsaish65 May 4, 2026
71c4e20
savepoint PR comments
borkarsaish65 May 5, 2026
4ddcd7c
savepoint-1
borkarsaish65 May 5, 2026
86cc925
Merge pull request #1636 from borkarsaish65/fix/4783
nevil-mathew May 6, 2026
7aa95f5
feat: default header info added
borkarsaish65 May 7, 2026
8ea453e
savepoint updated
borkarsaish65 May 7, 2026
e003bf6
Merge pull request #1637 from borkarsaish65/fix/4784
nevil-mathew May 11, 2026
086860e
Merge branch 'develop' of https://github.com/ELEVATE-Project/mentorin…
borkarsaish65 May 11, 2026
3a15558
pr comment changes
borkarsaish65 May 11, 2026
2ea1707
ci: update docker-image workflow with branch input, version validatio…
borkarsaish65 May 11, 2026
fe455d2
Merge pull request #1634 from borkarsaish65/fix/ticket_4512
nevil-mathew May 11, 2026
e97582c
Merge branch 'develop' of https://github.com/ELEVATE-Project/mentorin…
borkarsaish65 May 11, 2026
d92ca53
addressed PR comments
borkarsaish65 May 12, 2026
26ce350
CR comments
borkarsaish65 May 12, 2026
f6852b9
Merge branch 'develop' of https://github.com/ELEVATE-Project/mentorin…
borkarsaish65 May 14, 2026
4177e8a
addressing pr comments
borkarsaish65 May 14, 2026
7799751
Merge pull request #1639 from borkarsaish65/fix/4562
rakeshSgr May 15, 2026
c59918a
Merge branch 'develop' of https://github.com/ELEVATE-Project/mentorin…
borkarsaish65 May 19, 2026
2a5f84a
savepoint-1
borkarsaish65 May 22, 2026
8935514
revert: restore docker-image.yml to master state
borkarsaish65 May 22, 2026
be915ae
Merge pull request #1643 from borkarsaish65/feature/emailintoken
rakeshSgr May 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@
],
"body": {
"mode": "raw",
"raw": "{\n \"value\": \"roless\",\n \"label\": \"RolesV\",\n \"status\": \"ACTIVE\",\n \"type\": \"SYSTEM\",\n \"data_type\": \"ARRAY[STRING]\",\n \"model_names\": [\"UserExtension\",\"Session\"],\n \"required\": true,\n \"allow_filtering\": true\n}",
"raw": "{\n \"value\": \"roless\",\n \"label\": \"RolesV\",\n \"status\": \"ACTIVE\",\n \"type\": \"SYSTEM\",\n \"data_type\": \"ARRAY[STRING]\",\n \"model_names\": [\"UserExtension\",\"Session\"],\n \"required\": true,\n \"allow_filtering\": true,\n \"meta\":{\n \"filterType\":\"OR\"\n }\n}",
"options": {
"raw": {
"language": "json"
Expand Down Expand Up @@ -331,7 +331,7 @@
],
"body": {
"mode": "raw",
"raw": "{\n \"value\": \"roless\",\n \"label\": \"RolesV\",\n \"status\": \"ACTIVE\",\n \"type\": \"SYSTEM\",\n \"data_type\": \"ARRAY[STRING]\",\n \"model_names\": [\"UserExtension\",\"Session\"],\n \"required\": true\n}",
"raw": "{\n \"value\": \"roless\",\n \"label\": \"RolesV\",\n \"status\": \"ACTIVE\",\n \"type\": \"SYSTEM\",\n \"data_type\": \"ARRAY[STRING]\",\n \"model_names\": [\"UserExtension\",\"Session\"],\n \"required\": true,\n \"meta\":{\n \"filterType\":\"AND\"\n }\n}",
"options": {
"raw": {
"language": "json"
Expand Down
9 changes: 8 additions & 1 deletion src/.env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ DEFAULT_TENANT_CODE='DEFAULT'

# Email template codes
MENTEE_SESSION_ENROLLMENT_BY_MANAGER_EMAIL_TEMPLATE= 'mentee_session_enrollment_by_manager'
MENTEE_PUBLIC_SESSION_ENROLLMENT_BY_MANAGER_EMAIL_TEMPLATE= 'mentee_public_session_enrollment_by_manager'
MENTOR_PRIVATE_SESSION_INVITE_BY_MANAGER_EMAIL_TEMPLATE= 'mentor_invite_private_session_by_manager'
MENTOR_PUBLIC_SESSION_INVITE_BY_MANAGER_EMAIL_TEMPLATE= 'mentor_invite_public_session_by_manager'
MENTOR_SESSION_DELETE_BY_MANAGER_EMAIL_TEMPLATE= 'session_deleted_by_manager'
Expand Down Expand Up @@ -172,6 +173,10 @@ ADMIN_TOKEN_HEADER_NAME='admin-auth-token'
# The header name used to pass the organization ID in HTTP requests. This helps identify the organization associated with the request.
ORG_ID_HEADER_NAME='organization-id'

# Header names used by admins to override the target org/tenant when calling APIs on behalf of another organization or tenant.
ORG_CODE_HEADER_NAME='x-org-code'
TENANT_CODE_HEADER_NAME='x-tenant-code'

# Flag to enable/disable chat chapabilities
ENABLE_CHAT=true

Expand All @@ -191,4 +196,6 @@ KAFKA_HEALTH_CHECK_TOPIC='mentoring-health-check-topic-check'
SERVICE_NAME='MentoringService'

#To disable logs for healthCheck
HEALTH_CHECK_DEBUG_MODE='false'
HEALTH_CHECK_DEBUG_MODE='false'
EVENT_TENANT_KAFKA_TOPIC='tenantEvent'
EVENT_ORGANIZATION_KAFKA_TOPIC='organizationEvent'
35 changes: 35 additions & 0 deletions src/api-doc/api-doc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5896,6 +5896,15 @@ paths:
type: string
type:
type: string
meta:
type: object
properties:
filterType:
type: string
enum:
- OR
- AND

examples:
example1:
value:
Expand All @@ -5908,6 +5917,8 @@ paths:
required: true
status: ACTIVE
type: SYSTEM
meta:
filterType: OR
example2:
value:
value: pgender
Expand Down Expand Up @@ -5962,6 +5973,11 @@ paths:
type: 'null'
has_entities:
type: boolean
meta:
type: object
properties:
filterType:
type: string
field_0:
type: string
meta:
Expand All @@ -5988,6 +6004,8 @@ paths:
updated_at: '2023-09-22T12:40:19.817Z'
created_at: '2023-09-22T12:40:19.817Z'
has_entities: true
meta:
filterType: OR
meta:
correlation: 3babe76b-d277-4073-8a59-8dfb94face9b
meeting_platform: BBB
Expand Down Expand Up @@ -6228,6 +6246,14 @@ paths:
type: boolean
required:
type: boolean
meta:
type: object
properties:
filterType:
type: string
enum:
- OR
- AND
examples:
example1:
value:
Expand All @@ -6240,6 +6266,8 @@ paths:
- UserExtension
allow_filtering: true
required: true
meta:
filterType: OR
example2:
value:
value: pgender
Expand Down Expand Up @@ -6296,6 +6324,11 @@ paths:
type: string
has_entities:
type: boolean
meta:
type: object
properties:
filterType:
type: string
meta:
type: object
properties:
Expand All @@ -6322,6 +6355,8 @@ paths:
deleted_at: null
organization_id: '1'
has_entities: true
meta:
filterType: OR
meta:
correlation: 5f384234-cd5a-467e-a5ac-b43365d2a7a3
meeting_platform: BBB
Expand Down
32 changes: 23 additions & 9 deletions src/configs/kafka.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const rolechangeConsumer = require('@generics/kafka/consumers/rolechange')
const createuserConsumer = require('@generics/kafka/consumers/createuser')
const updateuserConsumer = require('@generics/kafka/consumers/updateuser')
const organizationConsumer = require('@generics/kafka/consumers/organization')
const tenantConsumer = require('@generics/kafka/consumers/tenant')

module.exports = async () => {
const kafkaIps = process.env.KAFKA_URL.split(',')
Expand Down Expand Up @@ -48,7 +49,12 @@ async function startConsumer(kafkaClient) {

await consumer.connect()

const topics = [process.env.EVENTS_TOPIC, process.env.CLEAR_INTERNAL_CACHE].filter(Boolean)
const topics = [
process.env.EVENTS_TOPIC,
process.env.CLEAR_INTERNAL_CACHE,
process.env.EVENT_TENANT_KAFKA_TOPIC,
process.env.EVENT_ORGANIZATION_KAFKA_TOPIC,
].filter(Boolean)
await consumer.subscribe({ topics })

await consumer.run({
Expand Down Expand Up @@ -77,8 +83,13 @@ async function startConsumer(kafkaClient) {

let response

if (payload && topic === process.env.EVENTS_TOPIC) {
// Handle organization events
if (payload && topic === process.env.EVENT_TENANT_KAFKA_TOPIC) {
if (payload.eventType === 'create' || payload.eventType === 'update') {
response = await tenantConsumer.messageReceived(payload)
}
}

if (payload && topic === process.env.EVENT_ORGANIZATION_KAFKA_TOPIC) {
if (
payload.entity === 'organization' &&
(payload.eventType === 'create' ||
Expand All @@ -87,6 +98,9 @@ async function startConsumer(kafkaClient) {
) {
response = await organizationConsumer.messageReceived(payload)
}
}

if (payload && topic === process.env.EVENTS_TOPIC) {
if (payload.entity === 'user') {
if (payload.eventType === 'roleChange') {
response = await rolechangeConsumer.messageReceived(payload)
Expand All @@ -102,18 +116,18 @@ async function startConsumer(kafkaClient) {
}
}
}
if (payload && topic === process.env.CLEAR_INTERNAL_CACHE) {
if (payload.type === 'CLEAR_INTERNAL_CACHE') {
response = await utils.internalDel(payload.value)
}
}
// if (payload && topic === process.env.CLEAR_INTERNAL_CACHE) {
// if (payload.type === 'CLEAR_INTERNAL_CACHE') {
// response = await utils.internalDel(payload.value)
// }
// }

logger.info(`Kafka event handling response : ${response}`)
} catch (err) {
logger.error(`Error in Kafka message handler for topic ${topic}`, {
topic,
partition,
offset,
offset: message.offset,
err: err?.stack || err?.message || String(err),
})
}
Expand Down
3 changes: 3 additions & 0 deletions src/constants/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,4 +317,7 @@ module.exports = {
ASCENDING: 'ASC',
DESCENDING: 'DESC',
},
TENANT_ADMIN_ROLE: 'tenant_admin',
ORG_CODE_HEADER: (process.env.ORG_CODE_HEADER_NAME || 'x-org-code').toLowerCase(),
TENANT_CODE_HEADER: (process.env.TENANT_CODE_HEADER_NAME || 'x-tenant-code').toLowerCase(),
}
8 changes: 0 additions & 8 deletions src/controllers/v1/notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,6 @@ module.exports = class NotificationTemplate {

async template(req) {
try {
if (!utilsHelper.validateRoleAccess(req.decodedToken.roles, [common.ADMIN_ROLE, common.ORG_ADMIN_ROLE])) {
throw responses.failureResponse({
message: 'USER_IS_NOT_A_ADMIN',
statusCode: httpStatusCode.bad_request,
responseCode: 'CLIENT_ERROR',
})
}

if (req.method === common.PATCH_METHOD) {
const updatedTemplate = await notificationService.update(
req.params.id,
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/v1/notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module.exports = class Notifications {
notificationsService.sendNotification(
req.body.job_id,
req.body.email_template_code,
req.body.job_creator_org_id ? req.body.job_creator_org_id : '',
req.body.org_code || '',
tenantCode
)
return {
Expand Down
18 changes: 14 additions & 4 deletions src/controllers/v1/sessions.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,15 +241,25 @@ module.exports = class Sessions {
try {
let tenantCode = req.decodedToken?.tenant_code
let orgCode = req.decodedToken?.organization_code

// For scheduler service callbacks: tenant_code and org_code come in the request body
if (!tenantCode && req.body?.tenant_code) {
tenantCode = req.body.tenant_code
}
if (!orgCode && req.body?.org_code) {
orgCode = req.body.org_code
}

// Enhanced: Check query parameters first (from BBB callback with enhanced isolation)
if (!tenantCode && req.query.tenantCode) {
tenantCode = req.query.tenantCode
}

// For scheduled jobs or BBB callbacks without tokens, get tenant_code from session
if (!tenantCode) {
const sessionData = await sessionService.getSessionTenantCode(req.params.id, tenantCode)
tenantCode = sessionData?.tenant_code
// For BBB callbacks or any other case without tokens/body — fetch from session
if (!tenantCode || !orgCode) {
const sessionData = await sessionService.getSessionTenantCode(req.params.id, orgCode)
if (!tenantCode) tenantCode = sessionData?.tenant_code
if (!orgCode) orgCode = sessionData?.org_code
}

const isBBB = req.query.source == common.BBB_VALUE ? true : false
Expand Down
Loading