1.0.47

Image
Release Webship Workspace 1.0.47

Webship Workspace 1.0.47 is out: PostgreSQL databases import on DDEV while their application is connected, a Restore says whether it put the database back, and Headless UI is listed.

  • PostgreSQL databases import on DDEV while their application is connected. DDEV's import drops the database first, which PostgreSQL refuses while an application holds a session, so an Import or a Restore of Plane, OpenProject or Taiga on DDEV failed. The Workspace now closes the database to new connections and ends its open sessions before the import, and opens it again whatever happens. The applications reconnect by themselves.
  • A Restore says whether it put the database back. It ends with "Restored: the project and its database from …", or says what did not happen and exits with an error. It never leaves a project on an empty database quietly.
  • Headless UI is listed. Its step pack is in the Extra steps list and its Workspace plugin in the catalogue.

Upgrading from 1.0.46

  • Nothing to do. MariaDB and MySQL projects import and restore exactly as before.

Fixed

  • DDEV's import of a PostgreSQL database an application is connected to (#968, #972): one core function closes the database (ALLOW_CONNECTIONS false), ends its sessions, runs DDEV's import, and opens it again on any failure. The row's Import, import_project_db and a Restore from the backups list all use it; a platform plugin's own hook still comes first.
    • Proven on DDEV with Plane, OpenProject and Taiga connected: the import goes through, the counts are the backup's, and each application recovers by itself (its pages, its workers and its job queue). A dump cut short is refused before anything is dropped, and the database is open again.
    • After a Restore's import, the project is started again: an application that set itself up on the empty database at the start (as OpenProject does) then starts on the restored one.
  • A Restore's start is tried once more after 20 seconds if it fails, for a project started elsewhere at the same moment.

Added

  • Headless UI (#969, #970): @webship-js/headless-ui-steps in the step-pack list, and @webship.co/workspace-headless-ui in the plugin catalogue. A page is recognised by the state attribute Headless UI puts on its components. Like Bootstrap, UIkit and Material UI, it is a pack for any site. The logo is Simple Icons' Headless UI icon (CC0), in the brand's colour.