For administrators
Best practices
The template every new app starts from, and rolling its updates out.
What this is
cyantula writes a set of files into every repository it creates, so an app is built to the platform's rules and design language from its first line. This page is where you edit those files and where you take a new version of them to the apps that already exist.
Two things happen here, and they are separate:
- Editing a file changes what every new repository starts from, at once, and moves the version number.
- Rolling out takes that version to existing apps. You can edit over several sittings and roll out once.
The platform's own guidelines follow every cyantula release until you edit them. Your organisation's rules (stack, preferred libraries, interface language, conventions) belong in the file Company guidelines. It ships empty and switched off. Once you write it and switch it on, every app reads it next to the platform guidelines, so cyantula's updates keep coming and your rules reach every app.
The owner's side of this is described in Best practices.
Where to find it
- Open Admin, then the card Apps & integrations.
- Click Best practices.
What you see
What every app starts from. A card with the current version as a pill, for example v12, and the explanation above.
One card per file. Each shows its name, a description, one of three lines that say what cyantula maintains (cyantula owns this file, cyantula owns one block or cyantula owns its keys) and the number of lines. Pills: edited here when you changed it, off when it is switched off. The button Edit opens the file, Close shuts it again.
An open file shows a text box and these buttons:
- Save, or Save and switch on when the file is off.
- Discard: throw away your edits.
- Save, keep off: only when the file is off and you edited it.
- Stop maintaining this file or Maintain this file again. A file that is switched off reaches no repository.
- Reset to cyantula’s default: only on a file you changed.
Roll out to the apps that already exist. A table that counts the apps by what will happen to them:
- Behind — a change is opened: apps that follow the best practices at an older version.
- Never applied — the owner is nudged: a banner on the app, a notification and one mail.
- A change is waiting — it is updated: only shown when there are some. The change already on the owner's Changes tab is brought up to date.
- …of which apply it themselves: only shown when there are some. Their owner switched on Apply automatically.
- Already on vN: nothing to do.
- Switched off by their owner: only shown when there are some.
- Waiting for a first push: only shown when there are some.
Under the table: the button Roll out vN, and Last rolled out: vN with its age.
Apps that don’t follow the best practices. A list of apps whose owner switched the best practices off, with the columns App, Reason and Switched off. The app name opens the app's Integration tab. When there are none: Every app follows the best practices.
How to edit a file
- Click Edit on the file.
- Change the text.
- Click Save.
- The version pill goes up. New repositories get the file now. Existing apps get it when you roll it out.
How to write the company guidelines
- Click Edit on Company guidelines.
- Write your rules.
- Click Save and switch on. The off pill disappears.
- Roll out, so existing apps read it too.
How to roll out to existing apps
- Check the table to see what will happen to how many apps.
- Click Roll out vN. The button reads Rolling out… while it works. For a large fleet it takes a moment, because changes are opened one repository at a time.
- A report appears: Rolled out vN: with the number of changes opened, owners nudged, waiting changes updated, and anything that failed.
- Below it, one row per app with its result: change opened, waiting change updated, change already open, applied and live, applied, deploy left to the owner, owner nudged, committed to its repository, skipped or failed. Failed and skipped apps come first, because they need a person.
An app that already follows the best practices gets a change it can approve on its Changes tab. An app that never applied them gets a nudge, because cyantula does not push files onto a repository whose owner never asked for them. An app with a best-practices change already waiting gets that change brought up to date, never a second one. For an app whose owner switched on Apply automatically, cyantula merges its own change and takes it live, unless something else was already waiting to go live.
When something looks wrong
- A red notice at the top shows the message when a save or a roll-out failed. The page keeps what you typed.
- Result failed or skipped for an app: the row says why. Open the app, fix the cause, then roll out again. Apps already on the current version are left alone.
- Every app is on the current version. The roll-out button is disabled because there is nothing to do.
Good to know
- Only admins edit and roll out.
- Apps whose owner switched the best practices off get no changes, no reminders and no roll-outs. Only the owner can switch them back on. Read the reason in the list and talk to them.
- Reset to cyantula’s default and Roll out ask for no confirmation. A reset replaces your text with cyantula's and moves the version. A roll-out opens real changes in real repositories and may take apps live.