Altinn/altinn-resource-registry

Add support for queing delegation migration batch

Opened this issue · 0 comments

Description

From Altinn Studio, there needs to be the capability to trigger the migration of delegations for a specific Altinn 2 service to the Resource Registry version of this.

Migration queue

To support queueing of the services, we need a table structure that allows for setting a migration time.

|ServiceCode | ServiceEditionCode | NotBefore | TotalCount | TotalCount | Status |

Queue API

The queue API will create, update and get information about services in the queue.

Bridge API

Altinn Studio will trigger an API call to bridge to add a service to the migration Queue.

I will also call API to check the status

Updating batch

The batch job must be updated to listen to the queue API.

The batch will poll the API for new services when migrated.

When migration is done the number of delegations migrated should be listed in the queue.

Additional Information

The naming of the resource identifier in the resource registry will be an identifier that can be found based on

Tasks

  • Set up API in bridge to trigger migration of delegations
  • Set up table for trigger
  • Set up API available for batch to get upcoming jobs
  • Update batch job to listen to db queue

Acceptance Criteria

No response