Docs menu

Save, accept and Deploy

Goal: Know what each step does to your workspace and to your cloud.

A change reaches your workspace in one of two ways: you Save your own canvas edits, or a proposal is accepted. Either way it is written to the workspace for everyone on it, right away - there is no private draft and no commit message. Nothing is built in your cloud until someone presses Deploy, except in a setup window such as Provenance or DNS & Domains, where an accept made in that window runs the window's own deploy at once.

The three steps

StepWhat it doesWho sees it
SaveWrites your canvas edits to the workspace. Builds nothing in your cloudEveryone
AcceptWrites a proposal to the workspace. Builds nothing in your cloudEveryone
DeployBuilds what runs in your cloud from what is in the workspaceEveryone

What is live at once, and what waits for Deploy

KindLive when
Surfaces, access recordsSaved or accepted - no Deploy needed
Warm queries (their address serves the last deployed version; a saved change serves after Deploy)Deploy publishes them
Data connections, API sources, simulators, hosted workbenches, licenses, database containersDeploy builds them
Cloud connection, landing zone (CALZ), IoT, data stores, provenance, communications, identity providers, the fAI serverThe button in that kind's own window

The last row is set up in its own window, not on the canvas: under Cloud, and the fAI server under fAI -> Manage Remote Connection. Each of those windows has its own button that builds the record in your Azure subscription - for example Save & Provision in Cloud -> Data Stores. Cloud Connections and Landing Zone have no Save: Connect Subscription and Provision Landing Zone do it. Removing something that already runs in your cloud waits for Deploy too - see Removals.

Save

When you change anything on the canvas, the Save icon (the disk icon on the canvas) is highlighted, and each new node carries an Unsaved tag until you save. Click Save:

  1. OpenX checks the whole canvas first. If a node is incomplete, or the save checks refuse a changed record, a window lists each node and what to fix, and nothing is saved. A change that needs a right you don't hold is refused too, and nothing is saved.
  2. Otherwise your edits are written to the workspace for the whole team.

If you try to leave the page with unsaved edits, your browser asks you to confirm.

Accept

Proposals - from a teammate, from Thinky, or from an agent you connected over MCP - wait in Proposals in the top bar. Any workspace member can accept a proposal; some changes (access, licenses, connected-app requests) need a management right. Accepting writes the proposal to the workspace, as Save writes your edits. In Greenfield, Thinky's own proposals are accepted for you. Until the next Deploy you can undo an accept: see Undo an accept until Deploy.

Deploy

Deploy sits in the top bar. It needs the right to deploy; without it the button reads Activate to Deploy and opens the plan choice. Deploy waits until your changes are saved. Once they are, it is always pressable: the informational colour when there is nothing to deploy, the primary colour when there is (see Deploy).

  1. Click Deploy. A Deploy window opens with a review of what will be built and removed, and the recent activity.
  2. Confirm in that window. The build runs in the background - keep working.

While a deploy runs, a Save, an accept, an undo and a redo all work as usual, with one exception: they are refused while the deploy is removing what is on the removal list. During a deploy with nothing to remove, none of them is refused. While a setup window's save is still queued, all four are refused too. Wait for it to finish, then try again.

An undo or a redo of an accept the running deploy is already sending is the one thing a plain deploy holds back: its line says "Being deployed now: final when the Deploy ends." An accept made after the deploy started sending stays undoable. See When an undo or redo is refused.

A Save made while a deploy runs is kept. The deploy builds what is in the workspace when its build starts, never an older copy, so it does not put back what you changed. A change saved after the build started can wait for the next Deploy. If the build itself sets a field you also changed while it ran, such as a name it assigns in Azure, your saved value is kept, and the next Deploy sends it.

Undo and revert

Hover the Save icon for Undo, Redo and Revert to Last Commit:

  • Undo and Redo step through the canvas's edit history, and they reach back across your Saves. Undoing a step you already saved makes it an unsaved change again; your next Save sends it. A Save never clears that history; a successful Deploy does.
  • Revert to Last Commit throws away the edits you have not saved and returns the canvas to the last save.

These step through your canvas edits. An accepted proposal is undone somewhere else, and only until the next Deploy: see the next section. After that, or when an undo is refused, change an accepted proposal back by editing it (or removing it) and saving again.

Undo an accept until Deploy

An accept can be undone until the next Deploy, whether you pressed it or Greenfield pressed it for you, unless the undo is refused (see below). Open Deploy in the top bar (it opens the window for anyone with the right to deploy, and it waits until your changes are saved, so save or revert your edits first). Once the review has loaded, the Deploy window lists every accept since the last Deploy under Accepted since the last Deploy, whatever the review says: "You can undo any of these until your next Deploy. Undo puts back what was there before, and Redo applies it again."

Each accepted bundle of changes is one line:

  • Its name is the proposal's label, or its group and bundle as <group> / <bundle> when it has none, with who accepted it and when.
  • A pill reads Accepted or Undone.
  • Under it, each record it touched reads Created, Changed, Staged for removal or Removed, followed by its kind and name.

Undo puts the records back as they were before the accept: a record it created goes, a record it changed returns to what it was, and a removal it staged is taken off the waiting list. The line then reads Undone and offers Redo, which applies the accept again. While one runs the button reads Undoing… or Redoing…, and every Undo and Redo button waits. Both write to the workspace for everyone, as the accept did, and neither builds anything in your cloud.

How long it lasts

A Deploy that finishes clears the whole list, including one where some things were kept, so undo is there until the next Deploy. A Deploy that fails or is refused keeps it, and a Save does not clear it. If the clear itself is refused, the lines stay after that Deploy. An accept that changed no record, or whose undo could not be saved, has no line.

What is not on the list

A job identity is not. In the browser it never reaches this list: every accept hands a job identity to the App Identity window before any request is sent, and the Proposals drawer says "A job identity is accepted in the App Identity window, which is now open on its directory. Accept or reject it there." The App Identity window's own accept does not write an undo line, so there is nothing to undo there. A caller that sent one straight to the accept route would get "A job identity is accepted in the App Identity modal, where accepting it creates the job. Open the App Identity modal to accept or reject it. Nothing was accepted here."

When an undo or redo is refused

For every row but the last, nothing is changed. Each sentence appears under the line it was for, until you press that line's button again. The first two name the record by its kind and its lookup (here, Simulators plant-sim and IoT hub-1 stand for yours):

WhenWhat you see
A record it touched has changed since"Simulators plant-sim has changed since, so going back would overwrite that change. Nothing was changed."
An IoT record has been provisioned in Azure since"IoT hub-1 has been provisioned in Azure since, so going back would leave that resource behind. Nothing was changed."
You undo one that is already undone"This accepted change is already undone. Redo it instead."
You redo one that is not undone"This accepted change is not undone, so there is nothing to redo."
A Deploy has run since, or the accept was never recorded"This accepted change can no longer be undone or redone: a Deploy has run since, or it was never recorded."
A Deploy is removing what is on the list, or a setup save is queued"A deploy is already running for workspace ..." ending "Wait for it to finish, then try again."
The running Deploy is already sending that accept"Being deployed now: final when the Deploy ends." Until the Deploy ends the accept can be neither undone nor redone
It needs a right to accept that you don't holdThe same refusal the accept gives (the rights are listed under this table)
It would leave the platform with no platform administratorThe same last-platform-administrator refusal the accept gives
It would leave a workbench using something that is not there"This would leave a workbench consuming something that is not there. Nothing was changed."
It turns off a data store's delete protection, or asks for app callsYou sign in again first (below). If that does not finish, the line says why
Anything else, with no sentence of its own"We could not undo that accept." or "We could not redo that accept."

An undo or a redo is checked as if you were accepting the change it writes, whoever made the original accept: the accept's own checks run on what it would write. Changing access records or rights, and asking for app calls or a new app key, need Workspace.Access.Manage; changing how ox-api is secured needs Workspace.API.Manage ("Only someone with the 'Workspace.API.Manage' right can change how ox-api is secured."); licenses need Licenses.Manage; dropping a workbench's protection needs someone who holds it ("You can only remove a protection you hold yourself."); and on the platform's own workspace, the platform keeps a platform administrator. The last row is the one case where something may have been written: the records are put back first, then anything the other side added is removed, and that second step can fail. If you see it, reopen Deploy and read the list: the line's pill, Accepted or Undone, shows how far it got. A record that should be gone and is still there you can remove by editing it and saving.

An undo goes ahead only while every record it touched still reads as the accept left it, so a later edit to one of them stops it: change that record back by hand, or undo a later accept of it first. A redo follows the same rule from the other side.

When an undo or redo asks you to sign in again

An undo or redo that turns off a data store's delete protection, or asks for app calls, needs a fresh sign-in. OpenX sends you to its own sign-in with nothing changed yet. When you come back, Deploy opens by itself and runs that same undo or redo, once. Reloading the page does not run it again. If it does not finish, nothing was changed and the line says why:

WhenWhat you see
You left the sign-in without finishing"The sign-in did not finish. Nothing was changed."
OpenX could not confirm your sign-in"The fresh sign-in was not confirmed. Nothing was changed. Try again." with a code beside it
OpenX asks again after you signed in"You signed in again, but OpenX still asks for a fresh sign-in. Nothing was changed."
Your browser blocks this tab's storage"This needs a fresh sign-in, and one cannot be started from this window. Nothing was changed."

You sign in again once for each press. A single accept that did both, turning off a delete protection and asking for app calls, cannot be undone or redone from this window: you see the "still asks" line.

Thinky

The Thinky conversation in the tab where you pressed Undo is told, record by record, once the write has completed. Thinky does not count it as applied, and does not propose it again unless you ask for it. A redo tells Thinky it is accepted again.

History

The Deploy window's Recent activity lists Deployments and Saves (an accepted proposal is listed under Saves as Proposal accepted). For the workshop-wide record of who changed what, see Change History.

Next steps

On fathym.com: OpenX →

On this page