PromucFlow_constructor/app
Abhijeet e87479f3d9
chore: add unique index on organization slug in MongoDB (#40198)
## Description

- Introduced a new migration to add a unique index on the 'slug' field
of the Organization collection.
- Ensured idempotence by dropping the existing index before creating the
new one.
- Added logging for successful index creation and error handling for
potential issues during the process.

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!CAUTION]  
> If you modify the content in this section, you are likely to disrupt
the CI result for your PR.

<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [x] No


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Refactor**
- Updated how organization identifiers are validated to ensure each
remains unique.
- **Chores**
- Introduced a database update that enforces uniqueness for organization
identifiers, enhancing data consistency and preventing duplicate
entries.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-04-09 20:20:03 +05:30
..
client chore: fixes issue with disabled branch button (#40163) 2025-04-09 12:14:51 +02:00
server chore: add unique index on organization slug in MongoDB (#40198) 2025-04-09 20:20:03 +05:30
util chore: Revert "chore: delete redundant files" (#35022) 2024-07-18 16:18:10 +05:30