Skip to content

Conversation

@kanwarujjaval
Copy link
Member

Created two test case documents for the new user merging implementation:

  1. USER_MERGE_TEST_CASES.md - Comprehensive guide with 69 detailed test cases

    • Basic merge scenarios (anonymous to login, multi-account merge)
    • Data merging verification (sessions, custom properties, events)
    • Edge cases (chained merges, parallel merges, identity switching)
    • Error scenarios (missing params, invalid data, failures)
    • Performance and scale tests
    • Complete with validation queries and assertions
  2. SIMPLE_USER_MERGE_TESTS.md - Quick reference implementation guide

    • 17 essential test cases with ready-to-use code snippets
    • Test utilities to add to testUtils.js
    • Quick verification checklist
    • Debugging tips and common failure patterns

Test cases cover the user merge flow in newarchitecture branch:

  • api/ingestor/requestProcessor.js:55-92 (merge trigger)
  • api/parts/mgmt/app_users.js:728-820 (main merge logic)
  • api/parts/mgmt/app_users.js:471-585 (plugin merge handler)
  • api/jobs/userMerge.js (background merge job)

All test scenarios include correct cases, edge cases, and error handling.

Created two test case documents for the new user merging implementation:

1. USER_MERGE_TEST_CASES.md - Comprehensive guide with 69 detailed test cases
   - Basic merge scenarios (anonymous to login, multi-account merge)
   - Data merging verification (sessions, custom properties, events)
   - Edge cases (chained merges, parallel merges, identity switching)
   - Error scenarios (missing params, invalid data, failures)
   - Performance and scale tests
   - Complete with validation queries and assertions

2. SIMPLE_USER_MERGE_TESTS.md - Quick reference implementation guide
   - 17 essential test cases with ready-to-use code snippets
   - Test utilities to add to testUtils.js
   - Quick verification checklist
   - Debugging tips and common failure patterns

Test cases cover the user merge flow in newarchitecture branch:
- api/ingestor/requestProcessor.js:55-92 (merge trigger)
- api/parts/mgmt/app_users.js:728-820 (main merge logic)
- api/parts/mgmt/app_users.js:471-585 (plugin merge handler)
- api/jobs/userMerge.js (background merge job)

All test scenarios include correct cases, edge cases, and error handling.
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.

2 participants