Cannot restore from a backup from the Web Console
Summary
Trying to create a cluster by restoring an existing backup errors on the cluster creation option. Also, the PITR setting is not exposed on the Web Console.
Current Behaviour
Error produced as a notification:
null
Cannot construct instance of `io.stackgres.apiweb.dto.cluster.ClusterRestoreFromBackup` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('fd2edc0b-bc4f-4957-b141-7de2affdc431') at [Source: (io.quarkus.vertx.http.runtime.VertxInputStream); line: 1, column: 352] (through reference chain: io.stackgres.apiweb.dto.cluster.ClusterDto["spec"]->io.stackgres.apiweb.dto.cluster.ClusterSpec["initialData"]->io.stackgres.apiweb.dto.cluster.ClusterInitData["restore"]->io.stackgres.apiweb.dto.cluster.ClusterRestore["fromBackup"])
Also the link to "More Info" doesn't work.
Possible Solution
I bet this is related to the recent changed in the "shape" of the restore object subsection, when PITR was added.
Also a field to input the PITR, optionally, needs to be added.
This problem doesn't appear when using the appropriate YAML:
...
initialData:
restore:
fromBackup:
uid: '1677b4ee-bb33-44ed-8584-473584ae65b5'
...
Environment
- StackGres version:
1.0.0-alpha2
.