12 Systems

Systems

A system is a source or target that the integrations connect: Visma Personec P, Konvoj, Fortnox, Billo. Before anything is built against a system, someone has to know how it is reached, what it sends and what it expects, and that knowledge belongs where the next integrator will look. Systems lists the tenant's systems and keeps their documentation in the solution registry, next to the solutions that use them.

  • In the menu: Build → Systems (/integration-assets/systems)
  • For: architects, integrators and developers read; a Tenant Admin, the Domain Admin of a system's owner domain (of common for a system no domain owns) and platform staff add systems and run Refresh; developers and admins of the owner domain change a system's documents
  • Reads: the subgroups of <tenant>/datamodel/system in GitLab, when the page opens, joined with klok.dev's own row for each system's type, owner domain and description; a system's documents from systems/<slug>/ in <tenant>/integration-solutions on main

What You See

A system is two things in GitLab: its group <tenant>/datamodel/system/<slug>, where the system's own datamodels live and which makes it a row here, and its folder systems/<slug>/ in the solution registry, with what an integrator needs to know about it. The list therefore shows a system as soon as its group exists, whoever made it.

Column What it says
System The name, which opens the system's page, and its description
Type External, internal, SaaS, database, file exchange, API or agent
Owner domain The domain whose people look after the system
Datamodel group The system's group in GitLab, for its system models
Projects How many of the system's integration projects GitLab has. It counts the older names (<tenant>-ingress-<system>), not the platform's <tenant>-<system>-<type>, so a new project is not counted yet (frontend-klok-dev#78)

A system's page has Overview (its description, owner, the folder of its documents, its datamodel group and its integration projects), Edit (its documents as your draft: general information under generell-info/, the API under api-info/, example payloads under exempel-payloads/ and imported documents under imports/), Import and Review.

Walkthrough: Add A System

  1. Choose New system. Give the system's Name as people say it, and if you like its Slug (made from the name; it names the group and the folder and does not change later), its Type, its Owner domain and a Description. What klok.dev creates shows the group and the folder. A slug that is a system already, in klok.dev, on the registry's main or in one of its open merge requests, is refused.

  2. Add the system creates the group in GitLab and klok.dev's row at once, so the system is listed, and opens its page on Edit with your draft of systems/<slug>/: system.json and generell-info/overview.md, an overview with the first questions to answer. Nothing of the documentation is in Git yet.

  3. Write what you know: the overview, the API, example payloads. Import turns a vendor's PDF into documents for your draft: Transcribe reads the PDF as you, Sort into documents has Kloker split what it says into general information, API and example payloads, and Put them in my draft adds the ones you tick. The PDF itself is not stored.

  4. Review → Create merge request opens the merge request docs(systems): document <name> to the registry. When it is merged, the system's page reads its documentation from main, and later changes go the same way.

Walkthrough: Find What A System Lacks

  1. Choose Refresh → Preview changes. klok.dev reads GitLab: the integration projects named after a system, and the system folders on the registry's main, and compares them with the groups and with its own rows. It writes nothing.

  2. The notice says how many systems need repair, and its Details name what each one lacks and what a person does about it. In the example, Heroma has an integration project but neither a group nor a folder, and Proceedo has its group but waits for the merge request that adds its folder.

  3. A system without a folder is documented on its page; a system without a project gets one from New integration. Refresh → Repair creates only what needs no review, a missing group and klok.dev's row, and brings klok.dev's rows in line with the folders' system.json. It never writes a folder or a project.

The preview reads a system out of every project's name, so a platform service such as klok-api-odl shows up as a system called Odl that needs repair; read the list before you choose Repair.

What Happens In Git

In klok.dev In Git Merged by By hand
Add the system The group <tenant>/datamodel/system/<slug> at once, and klok.dev's row; nothing in the registry yet — Create the group in GitLab
Review → Create merge request Your draft of systems/<slug>/ on a klok-dev/ branch of <tenant>/integration-solutions, and the merge request docs(systems): document <name> The registry's owner, in GitLab systems/<slug>/system.json and the documents in a merge request of your own
Import Nothing: the documents go into your draft — Write the documents yourself
Refresh → Preview changes Nothing — —
Refresh → Repair The groups that are missing, and klok.dev's rows; never a folder or a project — Create the groups in GitLab

Systems lists a group made by hand on its next load. See What klok.dev Does In Git for every page.

Who Does What

Automation Kloker You
The list reads the system groups whenever it opens; Preview changes and Repair compare GitLab, the registry and klok.dev when a person asks; the form shows the names before anything is created Sort into documents turns an imported PDF's text into documents for your draft; Kloker beside the page answers questions about the system and writes the merge request's title when you ask Add the system, write and review its documents, decide what Repair may create, and merge

See You, The Automation And Kloker.

How It Connects

A system is named in the documents of the solutions that use it (Solutions), a change request to connect a new one is labelled change:add-system (Changes), its own models live in its group (Datamodels), and its integration projects connect it to the broker, one per direction (Integration Projects). The Context graph shows systems as nodes that everything else hangs on.

Read More