Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
9d4f072
Merge branch 'develop' of https://github.com/ELEVATE-Project/entity-m…
priyanka-TL Aug 18, 2025
3b15565
targeted Role
priyanka-TL Aug 18, 2025
4d6f9e6
targeted role and sub entity list
priyanka-TL Aug 18, 2025
d592f0e
Use externalId instead of code
priyanka-TL Aug 28, 2025
e2cf65b
Merge branch 'develop' of https://github.com/ELEVATE-Project/entity-m…
priyanka-TL Sep 17, 2025
848d255
Pr comments addressed
priyanka-TL Sep 17, 2025
517e32b
Refactor entity mapping data processing for improved readability and …
priyanka-TL Sep 19, 2025
25c0986
Remove console log for error handling in UserProjectsHelper
priyanka-TL Sep 19, 2025
501afd6
Refactor variable name for clarity in entity type matching logic
priyanka-TL Sep 19, 2025
6e5752c
release note added
Sep 20, 2025
e88259f
Merge pull request #189 from ELEVATE-Project/3.4-release-note
VISHNUDAS-tunerlabs Sep 20, 2025
7383e36
Merge branch 'develop' of https://github.com/ELEVATE-Project/entity-m…
priyanka-TL Sep 22, 2025
b336137
PR comments addressed
priyanka-TL Sep 22, 2025
22d6957
Merge pull request #181 from ELEVATE-Project/scpEnhancements
priyanka-TL Sep 22, 2025
dc81711
package freeze
Sep 30, 2025
5395431
Merge pull request #190 from ELEVATE-Project/version-freeze
VISHNUDAS-tunerlabs Oct 7, 2025
cbbba9b
updated-api-doc
MallanagoudaB Oct 22, 2025
856c1ff
Merge pull request #192 from ELEVATE-Project/UpdatedAPIDoc
VISHNUDAS-tunerlabs Oct 22, 2025
dce23af
@coderabbitai
adithyadinesh0412 Oct 22, 2025
12f2a53
review comments
adithyadinesh0412 Oct 23, 2025
918f457
Merge pull request #193 from adithyadinesh0412/subEntityAPI-for-scp
aks30 Oct 23, 2025
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
25 changes: 25 additions & 0 deletions release-notes/prod/release-3.4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# 🚀 Entity-Management-Service Release 3.4.0 [![Latest](https://img.shields.io/badge/Latest-ffffff00?style=flat&labelColor=ffffff00&color=green)](#)

## ✨ Features

- **[1558] DELETE API in Entity Management** – Introduced a new DELETE API in the Entity Management module to enable removal of entities from the system.
- **Health Check** – Introduced a health check feature with relevant API endpoints for system monitoring.

---

## 🐞 Bug Fixes

- N/A for this release.

---

## 🔄 Migration Instructions

Execute the following data migration scripts after deployment:

- `migrations/normalizeOrgIdInCollections/normalizeOrgIdInCollections.js` – Normalize `orgId/orgIds` fields in collections.

---

👨‍💻 **Service:** Entity Management Service
🏷️ **Version:** 3.4.0
209 changes: 23 additions & 186 deletions src/api-doc/Entity Management API's.postman_collection.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"info": {
"_postman_id": "f666ab31-a835-4f2d-995e-70d0a5b606e7",
"name": "Entity-Management API's",
"_postman_id": "10b257e6-6f3c-42e1-a60d-06dbc25abb85",
"name": "Entity-Management",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "28589818"
"_exporter_id": "33513401"
},
"item": [
{
Expand Down Expand Up @@ -374,7 +374,7 @@
],
"body": {
"mode": "raw",
"raw": "{\n \"externalId\": \"entity123\",\n \"name\": \" block\",\n \"childHierarchyPath\": [],\n \"allowedRoles\": [\"role2\", \"role1\"],\n \"createdBy\": \"user123\",\n \"updatedBy\": \"user123\"\n}\n",
"raw": "{\n \"metaInformation.externalId\": \"KA28\",\n \"metaInformation.name\": \" Karnataka\",\n \"childHierarchyPath\": [\n \"district\",\n \"block\",\n \"cluster\",\n \"school\"\n ],\n \"allowedRoles\": [\n \"role2\",\n \"role1\"\n ],\n \"createdBy\": \"user123\",\n \"updatedBy\": \"user123\"\n}",
"options": {
"raw": {
"language": "json"
Expand Down Expand Up @@ -714,7 +714,7 @@
],
"body": {
"mode": "raw",
"raw": "{\n \"query\": {\n \"_id\": {\n \"$in\": [\n \"5fd1b52ab53a6416aaeefb1f\",\n \"5fd1b52ab53a6416aaeefb24\",\n \"5f33c3d85f637784791cd830\",\n \"5fd1b52ab53a6416aaeefb26\",\n \"5fd098e2e049735a86b748ae\"\n ]\n }\n },\n \"projection\": [\n \"_id\",\n \"metaInformation.name\"\n ]\n}",
"raw": "{\n \"query\": {\n \"_id\": {\n \"$in\": [\n \"5fd1b52ab53a6416aaeefb1f\",\n \"5fd1b52ab53a6416aaeefb24\",\n \"5f33c3d85f637784791cd830\",\n \"5fd1b52ab53a6416aaeefb26\",\n \"5fd098e2e049735a86b748ae\"\n ]\n },\n \"tenantId\": \"shikshalokam\"\n },\n \"projection\": [\n \"_id\",\n \"metaInformation.name\"\n ]\n}",
"options": {
"raw": {
"language": "json"
Expand Down Expand Up @@ -834,7 +834,7 @@
],
"body": {
"mode": "raw",
"raw": "{\n \"entityTypeId\": \"663335e2a766490014aead0a\",\n \"externalId\": \"entity44123\",\n \"name\": \"Arunachal Pradesh\",\n \"childHierarchyPath\" : [ \n \"district\", \n \"beat\", \n \"cluster\", \n \"school\", \n \"block\"\n ],\n \"allowedRoles\": [\"role1\", \"role2\"]\n \n}\n",
"raw": "{\n \"externalId\": \"KA280\",\n \"name\": \"Karnataka\",\n \"childHierarchyPath\": [],\n \"targetedEntityTypes\": [\n \"district\",\n \"block\",\n \"cluster\",\n \"school\"\n ]\n}",
"options": {
"raw": {
"language": "json"
Expand Down Expand Up @@ -872,9 +872,9 @@
}
],
"url": {
"raw": "{{baseUrl}}/entity-management/v1/entities/subEntityListBasedOnRoleAndLocation/entity123",
"raw": "{{baseUrl}}/entity-management/v1/entities/subEntityListBasedOnRoleAndLocation/KA28",
"host": ["{{baseUrl}}"],
"path": ["entity", "v1", "entities", "subEntityListBasedOnRoleAndLocation", "entity123"]
"path": ["entity", "v1", "entities", "subEntityListBasedOnRoleAndLocation", "KA28"]
}
},
"response": []
Expand Down Expand Up @@ -1021,174 +1021,6 @@
}
]
},
{
"name": "userRoleExtension",
"item": [
{
"name": "create",
"request": {
"method": "POST",
"header": [
{
"key": "internal-access-token",
"value": "8c3a94f0931e01a4940a"
},
{
"key": "content-type",
"value": "application/json"
},
{
"key": "x-auth-token",
"value": "{{userToken}}"
},
{
"key": "admin-auth-token",
"value": "{{adminAuthToken}}",
"type": "text"
},
{
"key": "tenantId",
"value": "{{tenantId}}",
"type": "text"
},
{
"key": "orgId",
"value": "{{orgId}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"userRoleId\": \"13\",\n \"title\": \"State Level Campaign Coordinator\",\n \"userType\": 1,\n \"entityTypes\": [\n {\n \"entityType\": \"district\",\n \"entityTypeId\": \"5f32d8228e0dc83104056e\"\n }\n ],\n \"code\": \"state_level_campaign_coordinator\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{baseUrl}}/entity-management/v1/userRoleExtension/create",
"host": ["{{baseUrl}}"],
"path": ["entity", "v1", "userRoleExtension", "create"]
}
},
"response": []
},
{
"name": "update",
"request": {
"method": "POST",
"header": [
{
"key": "internal-access-token",
"value": "8c3a94f0931e01a4940a"
},
{
"key": "content-type",
"value": "application/json"
},
{
"key": "x-auth-token",
"value": "{{userToken}}"
},
{
"key": "admin-auth-token",
"value": "{{adminAuthToken}}",
"type": "text"
},
{
"key": "tenantId",
"value": "{{tenantId}}",
"type": "text"
},
{
"key": "orgId",
"value": "{{orgId}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"title\":\"DM\"\n}"
},
"url": {
"raw": "{{baseUrl}}/entity-management/v1/userRoleExtension/update/66a94c06fff8abb34f9d800f",
"host": ["{{baseUrl}}"],
"path": ["entity", "v1", "userRoleExtension", "update", "66a94c06fff8abb34f9d800f"]
}
},
"response": []
},
{
"name": "find",
"request": {
"method": "POST",
"header": [
{
"key": "content-type",
"value": "application/json"
},
{
"key": "internal-access-token",
"value": "{{internal_access_token}}"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"query\": {\n \"entityTypes.entityTypeId\": {\n \"$in\": [\n \"5f32d8228e0dc8312404056b\",\n \"5f32d8228e0dc8312404056c\",\n \"5f32d8228e0dc83124040567\",\n \"5f32d8228e0dc8312404056e\"\n ]\n }\n },\n \"projection\": [\n \"_id\", \"title\"\n ]\n}\n"
},
"url": {
"raw": "{{baseUrl}}/entity-management/v1/userRoleExtension/find",
"host": ["{{baseUrl}}"],
"path": ["entity", "v1", "userRoleExtension", "find"]
}
},
"response": []
},
{
"name": "delete",
"request": {
"method": "DELETE",
"header": [
{
"key": "content-type",
"value": "application/json"
},
{
"key": "x-auth-token",
"value": "{{userToken}}"
},
{
"key": "admin-auth-token",
"value": "{{adminAuthToken}}",
"type": "text"
},
{
"key": "tenantId",
"value": "{{tenantId}}",
"type": "text"
},
{
"key": "orgId",
"value": "{{orgId}}",
"type": "text"
},
{
"key": "internal-access-token",
"value": "{{internalToken}}",
"type": "text"
}
],
"url": {
"raw": "{{baseUrl}}/entity-management/v1/userRoleExtension/delete/66a94fc1fdf2d5dda4b689dc",
"host": ["{{baseUrl}}"],
"path": ["entity", "v1", "userRoleExtension", "delete", "66a94fc1fdf2d5dda4b689dc"]
}
},
"response": []
}
]
},
{
"name": "Admin",
"item": [
Expand Down Expand Up @@ -1268,7 +1100,7 @@
}
],
"url": {
"raw": "{{baseUrl}}/entity/v1/admin/deleteEntity/6825b78bcfa7cfe32cd835b6?allowRecursiveDelete=false",
"raw": "{{baseUrl}}/entity-management/v1/admin/deleteEntity/6825b78bcfa7cfe32cd835b6?allowRecursiveDelete=false",
"host": ["{{baseUrl}}"],
"path": ["entity", "v1", "admin", "deleteEntity", "6825b78bcfa7cfe32cd835b6"],
"query": [
Expand All @@ -1285,16 +1117,21 @@
},
{
"name": "healthCheck",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}entity/health",
"host": ["{{baseUrl}}entity"],
"path": ["health"]
"item": [
{
"name": "healthCheck",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}entity/health",
"host": ["{{baseUrl}}entity"],
"path": ["health"]
}
},
"response": []
}
},
"response": []
]
}
]
}
2 changes: 1 addition & 1 deletion src/api-doc/Entity-Management LOCAL postman_environment
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"values": [
{
"key": "baseUrl",
"value": "localhost:5001",
"value": "http://localhost:5000",
"type": "default",
"enabled": true
},
Expand Down
Loading