Jira Legacy | ||||||
---|---|---|---|---|---|---|
|
...
- Create new endpoint to retrieve HRID by authority file id
- Implement sequence number generation mechanism for authority local files
- On the UI user will select file name. And before creation UI should put to 001 field value from the HRID endpoint.
Tickets
Overview | Approach | Module | Ticket |
---|---|---|---|
Validation for authority local files |
| mod-inventory-storage | 2 sp |
Implement sequence number generation mechanism for authority local files (Sequences Approach) |
| mod-inventory-storage | 5 sp |
Implement sequence number generation mechanism for authority local files (Table with counter Approach) |
| mod-inventory-storage | 5 sp |
Local authority file selection |
| ui-inventory |
Ability to store authority local files
Settings application UI preview:
Endpoints:
GET: /authority-source-files/{id}/hrid
Description: Endpoint returns current hrid value and increment it. Should be called once user clicked on the "create" button to put value in the 001 field.
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{ "id": "cb58492d-018e-442d-9ce3-35aabfc524aa", "prefix": "loc", "hrid": "000000001" } |
POST: /authority-source-files
New query parameter: startNumber (default = 1)
...
To work with table it's better to use SERIALIZABLE Isolation:
@Transactional(isolation = Isolation.SERIALIZABLE)
Select local authority file on the UI
...