Skip to content

Saved charts and sharing

A saved chart, shared with a role and starred, with the Charts tab

For how to save, open and star charts, see Saved charts and favourites and Sharing and links in the user guide.

  • A chart belongs to the Perspective session user: the name of the identity provider the session signed in through, plus the user name. Renaming an identity provider leaves its users' charts with the old name: they no longer show as theirs (an admin still manages them).
  • When sharing with roles, the dialog offers the roles of the user source behind the identity provider: the user source of the same name, else the one an internal identity provider names. An identity provider without one (OpenID Connect, SAML) says so in the dialog, and the roles are typed; so does a user source that has not listed its roles within 10 seconds.
  • Visibility is private, everyone (anonymous sessions included), or specific roles. Owners edit, rename, share and delete their charts; the admin role manages every chart. Roles match by name, whatever user source the session signed in through, so give roles from different user sources different names when they must not see each other's charts. Which roles a chart is shared with is told only to who may change it (its owner, the admin role); anyone else who opens it sees that it is shared with roles.
  • A title or folder path has at most 200 characters, and at most 255 bytes as stored (so fewer with accented letters or symbols). A chart's state is at most 60 kB as stored: many chart notes or many long tag paths make it grow. A chart keeps at most 500 notes of its own: the note editor adds no more, and Save and Save a copy refuse a chart with more and say how many to remove in the notes list. A saved chart or a link with more (made before this limit, or by hand) opens with all of them (up to 5,000) and says so, so no note is lost by opening and saving it.
  • A save, rename or share the gateway made but that you can no longer open (your roles or the configuration changed meanwhile) shows nothing of that chart: a new chart stays unsaved, and the saved chart on screen stays as an unsaved chart. A toast says it was done.
  • A save, rename, share, delete or star, or a note added, changed or removed, that the browser stopped waiting for may still have been made: it says so and where to look (the Charts tab, the notes list) before you try again, and reads that list again.
  • Anyone who can open a chart can Save a copy of it as their own.
  • A link to a chart that cannot be opened says why (no access, deleted, does not exist) and never shows its title.
  • When the gateway lists fewer charts than there are, the Charts tab says so: its filter looks in the charts listed only, and a chart's link opens another (its star then keeps it under Favourites).
  • The Charts list reads the charts the user may see newest first, 500 at a time, keeps only those it may list, and stops once it has more than it lists (or at the request's deadline; a change of the user's roles or of the configuration meanwhile makes it ask again). It then reads their star counts and their rows again in statements of at most 1,000 charts each, so it works on every database Ignition supports (SQL Server takes 2,100 parameters in one statement). Tested with 5,000 saved charts in one configuration: a user who sees 4,000 of them gets the list in 0.4 to 2 s (an answer of about 1.7 MB) on the dev stack. It lists 5,000 charts at most: a user who may see more gets the 5,000 saved last, and the list says that some were left out. A chart saved while the list is read moves to the newest, ahead of where the list is: once the list has read more than 500, it reads the charts saved since two minutes before it started once more, so such a chart is not left out.
  • The list, and a chart you open, tell each chart as it was when the gateway last read its row for that request, under your access at that moment. A change of its sharing (or a delete) saved after that read applies from your next request: the next list, or opening the chart again. Reading the rows again before answering would only move that moment, not close the gap.
  • A copied link carries the chart as shown: its pens (tag paths), range, chart notes and pinned x-traces travel in the link itself (the traces also for a saved chart left as saved, though they never mark it Changed), so sharing a link shares that, also for a private chart. The recipient's every read is still checked against their own access. A link holds only that chart's state, not another chart's on the page. A second chart on a saved chart's page (one that does not own the page's path) keeps that page in its link and its own saved chart in its own entry (#side=...), also when its chartId binding asks for that chart; the recipient's chart opens it, with its access checked, whatever their own binding asks for, also when that binding comes after the link opened: the link's chart stays while its entry is the chart's, until the user shows another chart there. A link of a chart that is not saved is marked so (new in its entry): it opens as an unsaved chart, never on a saved chart the recipient's page or chartId names, so Save makes a new chart of it, and it opens also when the recipient may not read their own chart there.
  • Another chart on screen (opened, from a link, New, or browser Back and Forward) closes the pen editor, the calculated pen editor with its draft, the comparisons and chart settings, and the dialogs of the chart before.
  • Any signed-in user stars a chart they can open (their own, or one shared with everyone or with one of their roles) with the star at the end of its row in the Charts tab, or the star beside the open chart's title. Starring changes nothing of the chart, so it needs no save role. Anonymous sessions cannot star; their star says "Sign in to star charts".
  • Favourites is the first section of the Charts tab: the starred charts by title (or by stars), each with its owner under the title, then the stars whose chart can no longer be opened. Shared with me lists charts by owner (a person) and the owner's folder.
  • A shared chart shows how many people starred it, in the list and beside its title; Most starred sorts the list by it. Only a count: never who. A private chart shows no count.
  • A star stays when its chart is deleted, made private or no longer shared with your roles. It then says why ("Removed chart", "No access") without the chart's title, with when it was starred (and, for a removed chart, when it was deleted), until you take the star off. Clear removed (N) under them takes the stars of deleted charts off at once; a star without access stays, as its chart may be shared with you again. Deleting a chart keeps its row as a tombstone, so its stars can say "removed" rather than vanish without a word; a chart shared again is back in your favourites as it was. The one who deletes a chart knows it is gone: their own star goes with it.
  • A star shows what was asked at once, faint and pulsing until the gateway has stored it. One the gateway refuses goes back as it was and says Not saved beside it (why in its tooltip and a message). Perspective sends a click a few milliseconds later, so a reload right after it could drop the request: a star change not yet answered is kept in the tab (session storage, for two minutes) and sent again by the chart that starts next, for the same user and configuration.
  • Long titles take two lines in the Charts tab; a longer one is cut in its middle, so titles that differ only at their end ("... Reactor A", "... Reactor B") stay apart (the whole title is in its tooltip). The open chart's title, cut short, shows whole on a click or tap, and in its tooltip.
  • A saved chart that someone else deletes, or stops sharing with you, while you have it open says so as a link to it would ("This chart was deleted."), and what is on screen stays as an unsaved chart that Save keeps as a new one. The chart learns it from the chart list (opening or refreshing the Charts tab), a save, rename, share or star, and from one read of that chart when its window gets the focus back (at most every 30 seconds). It does not poll.
  • At most 500 favourites per user and configuration.
  • A save, rename, share, delete or star the gateway stored is answered as done, also when the configuration or your access changed right after, or the reads that complete its answer (its star, its count) did not finish in time (the chart then says what you may still do with it; a chart you may no longer read is answered by its id alone). One the gateway did not finish storing in time says that it may still have been saved: look in the Charts tab before saving again, so the chart is not saved twice. A write the chart database made is answered as made, also when closing its connection fails afterwards (that failure is in the gateway log). A note stored or removed is answered so too, also when the component switched to another configuration meanwhile, and one its historian did not finish in time says that it may still have been made: look at the notes list before you try again.
  • A chart's owner name is kept to 255 characters; a username or identity provider name longer than that cannot save or star charts, and is told why.
  • Every check runs on the gateway. The browser only hides buttons that would be refused.

Copied from the section "Saved charts and sharing" of the README when the site is built. Source: README.md.