Skip to content

[Part 1 - Data migration] Trigger Data category migration. #175

@leoraba

Description

@leoraba

Description

Based on main ticket 169 complete the following tasks:

Main tasks

PR 1: #182

  • Apply the database changes described on main ticket. update Drizzle models and migrations.
  • Create a dictionaryMigrationRepository with functions: save, update, getMigrationById, getMigrationsByCategoryId (with filters and pagination)

PR 2: #183

  • Update response of POST /dictionary/register endpoint accordingly to include migrationId when applicable.
  • Implementation:
    • create a migrationService with functions: getActiveMigrationByCategoryId, initiateMigration (new migration or add retry), finalizeMigration (failed or completed),
    • trigger the data main migration process async (performCommitSubmissionAsync), more details provided in main ticket.
    • log data errors in audit table.
    • when migration is complete update status to COMPLETED, and submission as COMMITTED
  • block commit operation when migration is running

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions