Skip to content

feat: enable creating clone with user input port number

Description

I wanted to create postgres instance for certain port.

Related issue

#562

Examples

You can add new field "port_number" on api/clone request. the body would look like this

{
  "snapshot": {
    "id": "dblab_pool@snapshot_20241020115305"
  },
  "protected": false,
  "db": {
    "restricted": true,
    "username": "branch_test",
    "password": "mypassword!mypassword!mypassword!",
    "db_name": "mydatabase"
  },
  "branch": "main",
  "id": "branch_test6",
  "port_number": 6066
  
}

New input field was added for this:

image

Let me know if there are more things I have to do before merged

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

Merge request reports

Loading