Skip to content

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 27 Oct 13:33
· 23 commits to main since this release
e73b933

Added

  • unified-api Connectors: an ssh connector shows what it runs. Files on the host: Runs and its path, Location On the host, Project On the host. A script here: File and its Project, as a script connector. A script written in the connector: Runs with it in a few words ("Shell script, 8 lines" rather than a fragment cut at its last /), Project Inline script, and on its page the whole script in a Script panel. Every connector's Overview is six facts on two full rows: Type, Project, Path (or Runs, or Script), Script args and Timeout, plus Location for an ssh connector and Host args for a script one. Output format is gone: unified-api 0.36.0 reads one output, Ansible inventory JSON. A connector with no project says why in italic (Local file, On the host, Inline script), as a built-in says Built in. Requires unified-api 0.36.0.
  • ChipList takes limit="line": as many chips as fit on one line with "+N more" on that line, counted from the chips' real widths and again whenever they or the line change size (a font arriving late), never fewer than one, which is cut short with "…" when it and "+N more" do not fit the line together. HealthSummary without onSelect shows its counts as labels rather than filter buttons.
  • unified-api Overview: an "Outgoing requests (per minute)" chart under the incoming one, in its own colour, counting the calls to the external systems' APIs (each connector script run, full or partial, and each enricher run, with the split and the failures in the tooltip; from unified_api_source_requests_total); This instance shows Incoming requests and Outgoing requests on separate rows. Requires unified-api 0.36.0.

Fixed

  • unified-api: Sync gets fresh data for a federated source now. A source copied from another unified-api (the remote connector, federated in the source list since unified-api 0.36.0, for every key) asks that instance to gather again before answering (refresh_origin=true); before, its sync only copied the origin's cache, however old, and the source stayed stale. Such a sync now also fails when the origin's own gather fails, where it used to copy the old data. Other sources are asked nothing more: they gather on their own sync, and still reuse one already running. Every Sync button (a source's page, its card, Sync all) decides it the same way. The button says Syncing… until the new data has loaded, and Data from and its freshness meter then start again from the new age, even when the server reports the same age as before; the meter fills every second as the count beside it goes up (useLiveSeconds, shared by LiveAge and FreshnessMeter). The fresh and stale counts in the Sources header and on the Overview come from the same query and change with it.

Changed

  • Breaking (who renders CredentialView or ProjectView from @opusprojects/unified-ui): they no longer take idTag: the card is titled by the item's name, with its description under it.
  • unified-api Topology: opens with one summary card of its instances, connected or unreachable, as every other section does, in place of the four tiles (the federated host entries counted a host twice when two sources held it). Each card's Sources is one line of chips; the cards are narrower (360px at least, was 520px), wider on a wide screen so the lines between them stay short, and where the levels side by side do not fit the page at the cards' own widths the tree stacks instead of scrolling sideways (its cards' lines wrapping on a phone), decided by measuring rather than at one window width. The summary counts this instance as connected, a pushed map's root as its card judges it, and shows nothing without peers.
  • unified-api source page: an ssh source shows Runs and its path for files on the host, Inline script for a script written in its connector, and its Project as On the host, Inline script or Local file, as the connector's page does. Its host variables column fits a 1024px window: the search box shrinks and the controls wrap (they ran 14px past the edge).
  • unified-api Sources, Endpoints, Projects and Credentials cards are titled by the item's name with its description under it, as every other card and the page each one opens (they showed the description first and the name under it).