Tags, categories, plans, and the audit log

The standard tags, the file categories, every lab's cleanup plans, and the record of every change.

Tags

The standard tags every lab can put on its folders. Each has a label and a key, a description, and a value type: a flag (no value), text (one value, or more than one), a date, or a choice from the site's own list. Applied by says whether lab PIs and delegates apply it, or administrators only (as for Data classification). A tag can protect folders: a flag (Legal hold) or a date (Keep until) keeps them out of cleanup plans.

TagsTags
The standard tags: nine to start, which each site changes to fit.
Folding a lab's tag into a standard oneFolding a lab's tag into a standard one
Folding the Fujimoto Lab's Atlas paper into Project: its one folder gets Project, with Atlas paper as its value unless another is given.

To tag many folders at once, pinax tags import reads a CSV of filesystem, path, tag, and value, with a dry run first (CLI.md).

File categories

What each file counts as on File types, the age map's sizes and colors, and Find files: the twelve built in to start, and a site's own, up to 24. A category lists extensions (a compressed file counts by the one inside, so fastq takes .fastq.gz), and may list patterns on file names: regular expressions, at most 25 in all, checked before any extension, in the order of the list. A file's category is the first whose pattern its name matches, then the one listing its extension, then Other. A pattern matches anywhere in a name unless anchored with ^ and $, and (?i) ignores case, so (?i)^undetermined_ takes the reads a sequencer could not assign to a sample, although fastq is sequencing data's.

File categoriesFile categories
The twelve built-in categories, each with its share of the latest scans.
What a change would doWhat a change would do
A category of the site's own, by a pattern on names, before saving: about 215 files of the latest scan would move to it from sequencing data.

A change applies to the scans indexed after it. A file's category is decided when its scan is indexed, so each snapshot keeps the categories it was built with, and reports read each one's own. The page says how many snapshots were built with other categories, and about how long rebuilding them takes, from their last builds. Rebuilding runs on the server, not from the page: pinax rebuild --outdated rebuilds them all, oldest first, and pinax rebuild --outdated --latest only each filesystem's latest, so the latest scans use the new categories and older ones keep theirs (CLI.md).

Every lab's cleanup plans

An administrator's or auditor's Cleanup plans shows every lab's plan at once: what they would free and save in all, by filesystem, the largest folders planned, and each lab's total, so IT can see what cleanup is coming and what is done.

Every lab's cleanup plansEvery lab's cleanup plans
Every lab's cleanup plans, with what they would free and save.

The audit log

Every change made in the app, by import, and from the command line, and every sign-in with local sign-in, is in the audit log: who made it, when, from where, and what changed. Audit log, in the sidebar of administrators and auditors, shows it newest first, 50 changes a page, each with its time, who made it (or Command line with the account that ran it, or Pinax for scans it ingested), the API token it was made with, the address it came from, and what it changed; Details opens what was recorded. Find changes by any of:

Download CSV has every change that matches, as recorded, with its detail as JSON. A person's and a lab's page show their recent changes, with All for the rest; All data shows the latest under Recent activity.

The audit logThe audit log
Helen Marsh, an auditor, reads the audit log: the demo's latest changes and who made them, made by pinax seed, so from no address.

Each event is also written to Pinax's log once its change is committed, and to PINAX_AUDIT_LOG if it is set, for a site's security monitoring (Logs). Changes made before 0.12.0 have no address, except sign-ins. The whole log is the catalog's audit_event table (Monitoring and operations).