Configurations
This is the guide for the people who prepare configurations in the dashboard: those who decide what a fleet of installed apps will receive at the next start, those who connect the apps to Squiddy, those who publish. It explains how to write a configuration that does what you want, how to try it before publishing it and how to notice before your users when something goes wrong.
Where projects and environments are created, how to invite your colleagues and how to generate API keys: you find it in the guide to the Dashboard.
The mental model in five lines
A configuration is one JSON document for each app, in each environment. The app asks for it at start, sending its own context: version, platform, mode, language, custom parameters. Squiddy does not return the whole document, but its resolution for that context: a single API block, the force update message if there is one, the maintenance message if there is one, the translations. To change how the installed apps behave you do not need a new version in the store: you publish a configuration.
The two consequences that matter to whoever writes it:
- The app does not see the document, it sees the result. A block that matches no real context is dead configuration: it exists, it is valid, and it reaches nobody.
- The apps receive only the published version. Editing and saving changes nothing for them; publishing changes everything, for every app of that environment, at once.
The service that answers the apps is called the data plane: it is the word the dashboard uses when it says that a configuration is published “to the data plane”.
How to read
| # | Page | Answers |
|---|---|---|
| 1 | Concepts and coordinates | Where a configuration lives, how the app reaches the right one, who can change it |
| 2 | Drafts, publishing and history | What Save draft does, what Publish does, how to go back |
| 3 | Configuration format | Every field of the JSON: what it means, how it is checked, which values it accepts |
| 4 | Resolution rules | How Squiddy picks a block: versions, rules, segments, percentage rollout |
| 5 | Validation and preview | The error messages one by one, the Tester, the traps validation does not see |
| 6 | Recipes | The procedures that come back: force update, maintenance, gradual rollout, going back |
| 7 | Push update | How to ask the apps to check the published version right away: the Firebase credential, the button, Publish and notify, the outcome, the history of push updates |
If you have to set up your first configuration, read 1 → 2 → 6. If a published configuration does not reach the app the way you expect, read 4 → 5.
The six golden rules
These are the six things that, when wrong, do not produce an error but the wrong behavior. Each one is explained further on the page given.
- In
apithe first block that matches wins, inappUpdateandinFoPointthe last one. The order of the blocks matters (page 4). - A block with empty
appTypesorappModesmatches nobody. It needs the explicit values orall(page 4). - Versions are compared by removing the dots and reading the number:
1.2.0becomes120,1.10.0becomes1100. Use fixed-width fields, with leading zeros: the recommended format isYYYY.MM.DD(page 3). - The configuration is case-sensitive, the app's request is not. Squiddy lowercases the fields of the request and then compares letter by letter:
"iOS"inappTypesnever matches (page 4). - Without
languagesSupportedin the chosen API block, the app receives no translations, even if the dictionary is complete. From the Form the field follows the Translations grid, and the editor warns you when a language is served by no block (page 3). - The draft is tolerant, publishing is not. A misspelled key (
appUpdatesinstead ofappUpdate) is saved without objection and blocks publishing. The validation badge points it out while you write: watching it is the only way not to find out at the wrong moment (page 5).