Skip to content

fix: get the relevant FSManager for the requested snapshot or branch

Artyom Kartasov requested to merge dle-4-0-multi-dataset-snapshots into dle-4-0

Description

Snapshot and branch wern't available if its pool is not the first active pool of the instance

Related issue

Examples

Get the relevant FSManager for the requested snapshot.

Active pool: pool/pg15

Before:

GET - http://127.0.0.1:2346/api/branch/snapshot/pool/pg14@snapshot_20240417094151 - 404 Not Found
GET - http://127.0.0.1:2346/api/branch/snapshot/pool/pg15@snapshot_20240417094434 - 200 OK

After:

GET - http://127.0.0.1:2346/api/branch/snapshot/pool/pg14@snapshot_20240417094151 - 200 OK
GET - http://127.0.0.1:2346/api/branch/snapshot/pool/pg15@snapshot_20240417094434 - 200 OK

Get the relevant FSManager for the requested branch.

Before:

POST http://127.0.0.1:2346/api/branch/log - 400 Bad request
{
  "code": "BAD_REQUEST",
  "message": "branch not found: dev"
}

After:

POST http://127.0.0.1:2346/api/branch/log - 200 OK
POST http://127.0.0.1:2346/api/branch/delete - 200 OK

Checklist

  • MR description has been reviewed
  • MR changes are functionally tested
  • MR does NOT have API/CLI changes OR there are API/CLI changes and they have been reviewed & DOCS ARE ADJUSTED (reference doc, etc)
  • MR does NOT have UI changes OR there are UI changes and they have been reviewed & UX IS REVIEWED
Edited by Artyom Kartasov

Merge request reports