Skip to content

Conversation

@AnujChhikara
Copy link
Contributor

@AnujChhikara AnujChhikara commented Jan 14, 2026

Date: 15 Jan 2026

Developer Name: @AnujChhikara


Issue Ticket Number

PRs going for sync

Description

  • added the migration script to add isNew: false for the old applications
  • modify the create application api for support new fields

Documentation Updated?

  • Yes
  • No

Under Feature Flag

  • Yes
  • No

Database Changes

  • Yes
  • No

Breaking Changes

  • Yes
  • No

Development Tested?

  • Yes
  • No

Screenshots

Screenshot 1
migration.mp4
Screen.Recording.2026-01-15.at.12.07.06.AM.mov

proof for #2533-

Screencast.from.2026-01-15.20-14-11.mp4

MayankBansal12 and others added 4 commits January 12, 2026 18:08
* feat: add migration functionality for applications

- Implemented `migrateApplications` controller to handle application migrations based on specified actions.
- Added `addIsNewField` method in the model to update applications with a new `isNew` field.
- Updated routes to include a new endpoint for triggering migrations.

* fix: improve batch update logic in addIsNewField method

* refactor: rename migration function and update route for adding 'isNew' field

- Renamed `migrateApplications` to `addIsNewFieldMigration` for clarity.
- Updated the route to directly call the new migration function without action parameters.

* style: format route definition for addIsNewFieldMigration

- Reformatted the route definition for better readability by aligning parameters in a multi-line format.

* refactor: update addIsNewField logic and improve readability

* refactor: streamline addIsNewField logic and enhance batch update process

- Removed unnecessary tracking of skipped applications.
- Simplified document processing by directly updating all documents in the snapshot.
- Improved error handling by mapping document IDs for failed updates.
* refactor: restructure application constants and enhance application creation logic

- Updated APPLICATION_STATUS_TYPES to use an object for better clarity and added CHANGES_REQUESTED status.
- Introduced APPLICATION_ROLES for role management.
- Added new API response messages for application creation and updates.
- Refactored addApplication controller to utilize createApplicationService for improved application handling.
- Implemented validation for application roles in the application validator.
- Added getApplicationByUserId method in the applications model to retrieve applications by user ID.
- Created applicationService to encapsulate application creation logic and handle conflicts.
- Updated application types to include role and social link structures.

* test: add imageUrl to application data in integration and validation tests

- Updated integration test to include imageUrl in application creation request.
- Modified unit tests for application validator to include imageUrl in rawData for validation scenarios.

* refactor: enhance application constants and update application retrieval logic

* feat: add new API response message for successful application retrieval
* refactor: restructure application constants and enhance application creation logic

- Updated APPLICATION_STATUS_TYPES to use an object for better clarity and added CHANGES_REQUESTED status.
- Introduced APPLICATION_ROLES for role management.
- Added new API response messages for application creation and updates.
- Refactored addApplication controller to utilize createApplicationService for improved application handling.
- Implemented validation for application roles in the application validator.
- Added getApplicationByUserId method in the applications model to retrieve applications by user ID.
- Created applicationService to encapsulate application creation logic and handle conflicts.
- Updated application types to include role and social link structures.

* test: add imageUrl to application data in integration and validation tests

- Updated integration test to include imageUrl in application creation request.
- Modified unit tests for application validator to include imageUrl in rawData for validation scenarios.

* refactor: enhance application constants and update application retrieval logic

* feat: add new API response message for successful application retrieval

* test: add unit tests for createApplicationService to validate application creation logic

- Implemented tests for various scenarios including successful application creation, conflict errors, and boundary cases based on application creation dates.
- Verified correct transformation of payload fields and handling of optional fields.
- Ensured error handling and logging for different error scenarios.

* refactor: simplify imageUrl assignment in application transformation logic

- Removed conditional check for imageUrl and directly assigned it to the transformed object.
- This change streamlines the transformation process for application payloads.

* test: update createApplicationService test to focus on socialLink handling

- Modified the test to specifically check the handling of the optional field socialLink when not provided.
- Ensured that imageUrl is correctly assigned from the mock payload during application creation.
@coderabbitai
Copy link

coderabbitai bot commented Jan 14, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


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 and usage tips.

* feature flag removed for OOO creation

* removed a statement

* Revert "feature flag removed for OOO creation"

This reverts commit 6685c0c.

* changes for feature flag  removal

* fixed error

* errors fixed

* everything fixed and checked

* developer new tag added on discord

* changes

* added a comment

* fixed IIFE

* test added and roles after /verify

* added role verification expectations

* Add individual role assertions for Developer and New roles in external accounts test

* Add assertions for unverified role and individual role checks in external accounts test

* Add comprehensive role assertions: unverified removal and negative expectations for Developer/New roles

* not equal assertion added

* fix: use config for unverified role ID assertion

---------

Co-authored-by: Dhirenderchoudhary <dhirenderchoudhary0001@gmailcom>
Co-authored-by: Mayank Bansal <[email protected]>
@railway-app railway-app bot temporarily deployed to boorish-knife / production January 15, 2026 15:45 Inactive
- Deleted the addIsNewFieldMigration controller and its associated method from the applications model.
- Removed the related route for triggering the migration, streamlining the applications controller and model.
@railway-app railway-app bot temporarily deployed to boorish-knife / production January 15, 2026 18:25 Inactive
@railway-app railway-app bot temporarily deployed to boorish-knife / production January 15, 2026 23:15 Inactive
@railway-app railway-app bot temporarily deployed to boorish-knife / production January 15, 2026 23:28 Inactive
@iamitprakash iamitprakash merged commit c0b997d into main Jan 15, 2026
3 checks passed
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.

5 participants