Italiano

1. Concepts and coordinates

Level: orientation. This page tells where a configuration lives, how the app reaches exactly the right one and who can change it. The next page is Drafts, publishing and history.

The four coordinates

A configuration is identified by four coordinates. There is no configuration “of the app” in absolute terms: there is the configuration of the app in that environment.

An example: each row is a configuration, with its four coordinates.

OrganizationProjectEnvironmentApp
yoursmobile-suitestagingcom.example.app
yoursmobile-suiteproductioncom.example.app, with a configuration independent of the staging one
yoursmobile-suiteproductioncom.example.kiosk

Another project of the same organization, such as web-portal, has environments and configurations of its own.

CoordinateWhat it isWhere it is created
Organization (or tenant)The context of everything: members, API keys, projects, audit log.At the first sign-in, if you do not already belong to an organization (Dashboard → Navigation and session).
ProjectThe container of what is released together (a product, a customer, a line of apps). It has a slug derived from the name, unique within the organization.Projects tree in the sidebar, + button
EnvironmentThe stage of the project (development, staging, production, or whatever you need). The name is unique within the project.Projects tree, the project's menu → Add environment
AppThe appId: the name the app introduces itself with, at most 200 characters. It is usually the bundle id (com.example.app), but you can choose any name.Configurations page → New app field

An app has no list of its own: an app exists in an environment when it has a configuration there. Writing a new appId in the New app field and pressing New opens the editor on an empty template; if you do not save it, that app never existed. For the same reason the same app in two environments has two independent configurations: there is no automatic promotion from staging to production. You copy the JSON, and that is on purpose (see the recipe on page 6).

How the app reaches the right configuration

The app sends every request with an API key, generated on the API keys page and tied to a single environment. From the key Squiddy works out organization, project and environment; the only coordinate the app declares is the appId.

  1. The app asks the data plane for the configuration with its appId, its context and the API key.
  2. Squiddy works out organization, project and environment from the key.
  3. It takes the published version of that app's configuration in that environment.
  4. It resolves it for the app's context.
  5. It answers with the resolved configuration.

The practical consequences:

Who can do what

Permissions depend on your role in the organization, and each role can do everything the role before it does: Viewer, Editor, Admin, Owner.

RoleSee the configurationsEdit and publishManage members
Owner✔✔✔
Admin✔✔✔
Editor✔✔—
Viewer✔——

For a Viewer the Configurations page opens and is read-only: the JSON editor accepts no changes, the Form is disabled, Save draft, Publish and Publish and notify are disabled, and the button to delete the configuration and Restore in the history are not there. The history and the comparisons between versions, on the other hand, can be seen: knowing what was published and when is everyone's right, not a privilege.

Squiddy applies the same rules outside the dashboard too: an action your role does not allow is refused anyway. All the permissions, including those on members and on the audit log, are in Dashboard → Members and roles.

Where you work, in the dashboard

An environment's Configurations page opens from the Projects tree in the sidebar: project → environment. At the top there are two fields; when you pick an app, five tabs appear below.

ControlWhat it is for
Search app configurationOpens an existing configuration. It is disabled when the environment has none yet, and in that case it says so: No configuration in this environment yet.
New app and NewOpens the editor on an empty template for an appId that has no configuration yet. It saves nothing by itself.
Editor tabThe document: JSON editor and Form, validation as you write, Save draft, Publish, Publish and notify, deletion.
Tester tabSimulates an app and shows the answer it would receive, before publishing.
History tabThe versions with their status and who published them, the restore.
Compare versions tabTwo versions of your choice side by side, with the differences.
Push update tabAsks the installed apps to check the published version right away (page 7).

Picking another app from the search brings every tab onto the new app: what was in the editor, in the Tester or in the history selection does not come with you. The tab you were on stays open.

Every change ends up in the organization's Audit log: creation, update, deletion, publishing and restore, with who acted, when and what changed. It is the place where the question “who published this” is answered (Dashboard → Audit log).