Skip to main content

Say who counts as a developer

Who counts as a developer? Pick the directory fields that decide it — a job title, a job family, a department — and the values that count. Prism shows how many people that selects before anything is saved, and questions can then be scoped to it: how many pull requests did developers merge last month, with developer meaning exactly what you chose. The same goes for any group your directory's own values describe: field engineers, contractors, a division.

Have a spreadsheet already? Upload a CSV: one column for each field, one row for each combination that counts.

Easier to say who is out? Define it by who is out: everyone, except anyone whose title contains "Manager", for example.

It takes a few minutes. Nothing leaves your network: what you choose goes from your browser into your own appliance, and Tetrate never sees it.

You need a connected directory first — and its rows have to be in Prism's memory. A classification names values in your directory's own columns, so there is nothing to count until a directory is designated as this installation's organizational context stream, and until its rows have been ingested. An uploaded staff list or a snapshot instance of your warehouse view both qualify. A query-through directory does not: its rows are never copied into Prism's memory, and the import says so rather than counting nobody.

Choose the values​

On Admin → Definitions, press Start → on Who counts as a developer. The job opens in a dialog and walks its steps; Back and Next move between them, and closing the dialog abandons it. The first step asks where the group starts: Only people whose…, described here, or Everyone, except people whose…, described in Define it by who is out.

  1. Choose the fields. Every field your organizational context stream declares and does not hide is listed, with its description. Tick the ones that decide who counts.
  2. Choose the values. Each ticked field lists its values, the most common first, each with how many people in your directory hold it — counted the way the definition itself will be counted, so the number beside a value is the number you will get for it. A field with more than 50 values shows the top 50; type in its search box to find the rest (it matches the start of a value, ignoring case). Tick the values that count. A value that begins or ends with unusual whitespace — a tab, a non-breaking space — is not offered: no spreadsheet cell can select it, because the upload trims what a cell holds. Correct it in your directory to make it choosable.
  3. Count it. Prism counts what your choice selects — the same report as an uploaded file, below — and stores nothing.
  4. Name it, with a one-line summary, and any other words people use for it.
  5. Make it live. For a name nobody has used, Make it live — the button carries the number of people Count showed — saves it, counts it and activates it in one click; Save as draft keeps it unused until you activate it. If the save counts a different number than Count showed (the directory changed in between), it stops before activating, says the new number, and leaves the draft for you to check and activate. For a name that already has revisions, Import as draft writes the next revision and Activate makes it the one answers use. If a revision of that name is live, the step first compares the draft with it, as described in Before you activate a new revision.

Every combination of what you tick counts. Tick two job titles and one department and the definition is either title, in that department — two combinations. A choice of more than 500 combinations is refused with a sentence saying so: a list that long is a spreadsheet, and the CSV below is the way to bring it. So is any set of combinations that is not every pairing of the values — this title in this department, that title in that one.

If Make it live stops part-way — the count or the activation is refused — the step says exactly what it left behind, such as Saved "developers" as draft revision 1, but it could not be counted, and the draft waits in Your definitions.

Before you activate a new revision​

When a revision of the name is already live, the step compares the new one with it before it offers Activate: +3 / −1 people compared with revision 1, which answers use now. Both sides are counted with the same statement that counts a definition and that answers use, against today's directory. Show who lists the people added and removed, with the name your directory shows for each, up to 200 of each; the counts always cover everyone. Names are fetched only when you press it.

If the comparison cannot be made, for example because a field the live revision uses has left your directory, the step says so and why. Activate stays available, with the size the draft was counted at on the button.

The comparison counts today's directory. If that differs from the size the draft was counted at, the step says your directory has changed since, and the button reads counted at N people: activating publishes the counted size. Preview the draft again (Re-preview in its History) to count it again. Activate also checks what answers use at the moment you press it. If another revision was made live since the comparison, nothing is activated: the step says so and compares again.

The same comparison runs when you press Activate on a new revision of a live definition in its ⋯ menu or in its History.

Changing a classification​

Edit in a classification's ⋯ menu opens Who counts as a developer with its fields and values ticked, and its name and summary filled in. You then count it, and save it as the next revision. The value picker counts every pairing of the values you tick. If the stored list is not every pairing, the picker would widen it, so Edit opens the definition as JSON instead and says so. It does the same when one of its other words contains a comma, because the words box separates words with commas. It also opens as JSON when a field it uses has left your directory, or when the definition was written against a stream other than the one designated now. Edit as JSON instead is at the bottom of the dialog whenever you edit.

What a classification is​

A classification is one of Prism's definition kinds. It is a named list of accepted combinations over one or more fields of your directory, and it selects every person whose row matches any one of them.

The one thing to understand before you upload is what a row means:

  • A row is an AND. Accounting, Analyst II, Software Engineer selects a person whose job family is Accounting and whose job profile is Analyst II and whose business title is Software Engineer.

  • The list is an OR. Two rows select everyone who matches either.

  • It is never three column lists. Given

    Job Family,Job Profile,Business Title
    Accounting,Analyst II,Software Engineer
    Administrative,Coordinator,Developer

    the classification selects those two combinations and nobody else. It does not select everyone whose family is Accounting or Administrative, whose profile is Analyst II or Coordinator, and whose title is Software Engineer or Developer — that reading would admit Accounting, Coordinator, Developer, a combination you did not list, and on a real file an administrative coordinator was counted as an engineer that way. Prism's statement for a classification cannot express the wrong reading; the file is matched row by row.

  • It is a membership list, not a verdict on everyone else. A person no row names is unclassified. They are not a confirmed non-developer; they are somebody your list did not mention. Prism reports that number beside the number it selected, and never lets a reader subtract one from the other and call the remainder a population. To make "everyone else" a population, say so yourself: see Define it by who is out.

One field is a valid classification. Business Unit alone, with one row Northwind, is how you say "Northwind is a business unit".

Define it by who is out​

If your job titles are not standardised, a list of who is a developer is never finished: a new title is unclassified until someone adds it. Then it is easier to say who is out.

On the Definitions page​

A worked example: developers are everyone, except anyone whose job title contains Manager, Director or VP.

  1. On Admin → Definitions, press Start → on Who counts as a developer, and choose Everyone, except people whose… on the first step.
  2. Choose who is out. Rule 1: the field job_title, contains, and the values Manager, Director and VP, one per line. Add more rules with Add a rule. Each rule is a field, one of is, contains or starts with, and its values. For is, tick the values from the field's own list, which shows how many people hold each, as on the positive-list path. For contains and starts with, type them. As you type, each rule says how many people it matches, and the step says how many are left in the group, for example 319 in the group · 41 excluded (job_title contains any of "Manager", "Director", "VP": 41), of 360 people in the directory. A rule that matches nobody is usually a misspelling. A value Prism refuses, such as one with a space at its end, is refused there with the reason.
  3. Count it, Name it (developers), and Make it live, as on the positive-list path above.

Edit on a classification defined this way opens the same form with its rules filled in. Saving it unchanged writes the same rules.

What it stores​

The form writes a classification that starts from everyone in the directory and carries exclusion rules. You can also write one yourself as JSON:

{"everyone": true,
"exclude": [{"field": "job_title", "contains": ["Manager"]},
{"field": "management_level", "equals": ["VP", "SVP", "EVP"]}]}

That reads: everyone, except anyone whose job title contains "Manager", and anyone whose management level is VP, SVP or EVP. The field names are your directory's own, as Admin → Context streams shows them.

  • A rule names one field, and one way of matching it, with a list of values:

    • equals matches the whole value.
    • contains matches the value anywhere in it.
    • starts_with matches the value at its start.

    Matching ignores case and surrounding spaces, as everywhere in a classification. A % or _ is an ordinary character, not a wildcard.

  • Any rule takes a person out. A person is excluded when any rule matches any of their current directory rows.

  • A person with no value in a rule's field is kept. They do not hold an excluded value.

Refused, with nothing stored:

  • everyone with no exclusion rule, because that is the whole directory;
  • everyone beside fields or tuples, and exclude beside a list of combinations: exclusion rules go only with everyone;
  • an empty value, because contains "" matches everybody;
  • a value that begins or ends with a space, because matching ignores surrounding spaces and the space would be lost;
  • a rule with no match, or with two;
  • a rule on a field your directory does not declare, hides, or uses to identify a person (an address, an employee id, a name). This is refused when the definition is counted, naming the rule.

To write it as JSON instead, on Admin → Definitions press Write raw JSON, choose the kind classification, and give the content above with your own fields and values. Press Save as draft, then Preview and Activate from its ⋯ menu, like any definition. Exclusion rules go only beside everyone, never beside a list of combinations.

Counting reports two more numbers beside the four below:

  • excluded: people the classification would otherwise name whom the rules take out;
  • each rule's count: how many people it matched, for example 1,874 people · 412 excluded (job_title contains "Manager": 380; management_level is any of "VP", "SVP", "EVP": 41). A person two rules match is counted under both rules, and once in excluded.

Excluded people are not unclassified. Unclassified still means only people no combination names, and a classification of everyone has none.

The agent is told which fields the rules read and how they match, such as job_title contains 1 value, and never the values themselves, as it is never told a list's combinations.

Before any rollback to 1.0.0-beta9, withdraw every classification that uses everyone. Version 1.0.0-beta9 cannot read one, and fails any question that uses it rather than answering it.

Answers use it like any classification. "Developers in my line" is a viewer's line intersected with the classification. A viewer restricted to their reporting line sees only their own line's developers, and the same floors apply.

Or upload a spreadsheet​

On the job's first step, Have a spreadsheet? Upload a CSV instead puts the job on the file's path: choose the file, say which column is which, then the same Count, Name and Make it live steps as above. Import from a file, under the cards on Admin → Definitions, opens the same path.

Download a template, beside the file, gives you a CSV whose header row is your directory's fields that can classify people, one column each. Keep the columns that decide who counts, delete the others, and add a row for each combination that counts.

What the file has to look like​

A CSV with a header row and one column for each directory field you want to bind. Other columns are ignored. Values are matched as text against your directory's own values, ignoring case and surrounding space — sw development matches SW Development; Sw Dev does not.

Employee,Job Family,Business Title
E1,Accounting,Software Engineer
E3,Administrative,Developer
E5,SW Development,Sr Developer

You tell Prism which of your columns holds which directory field. It does not guess from the heading text — Job Profile, job_profile and Profile are one column to a person and three to a matcher, and a guess that landed on the wrong field would build a population nobody asked for. It does not ask you to type either side, though: it reads your file's first row and lists your columns, each with a few of its values, and for each one you choose, from the fields your organizational context stream declares, what that column is — or leave it as not used. The mapping that makes is:

{"job_family": "Job Family", "job_title": "Business Title"}

The fields offered are the ones on your organizational context stream's manifest — the same names Admin → Context streams shows. A field the manifest marks hidden is offered and marked hidden on the stream, and choosing it is refused with its own sentence, because it is there and you can unhide it. The Employee column in the example is left as not used, so it never enters the definition.

What happens when you upload​

On the job's first step, press Upload a CSV instead, then choose the file. Prism reads it straight away and stores nothing: the line under the file picker says how many rows and columns it found, and the next step lists your file's own columns, each with a few of its values so you can tell which is which without opening the spreadsheet. A file Prism cannot read — not UTF-8, a repeated heading, a ragged row — is refused here, before you have mapped anything, naming the row or the column.

Then, for each column you need, choose the directory field it holds, and leave the rest as not used. On the next step, press Count it.

Counting reads the file and stores nothing. Prism reports two things side by side, and it is worth reading both.

What the file said:

rows in the filehow many data rows the reader found — the header not counted, and a completely blank line not counted either
combinations kepthow many it kept — the rows, less exact duplicates
exact duplicates removedidentical rows, removed. Untidy, not ambiguous, and not refused
case variants keptrows that differ only by case or surrounding space. Kept, and counted so you can see them

What the directory said, measured by the same statement every answer will use:

people selecteddistinct people in your directory this classification selects
people in the directorydistinct people in the directory at all — the denominator, because 1,874 means nothing without it
people no combination namesdistinct people no combination names, who are unclassified — unclassifiable is the key's name in the report's counts and in the stored counts
combinations naming nobodyrows that match no person at all

Person counts come from your directory's own key, never from the row count of the file. A 4,290-row list is not 4,290 people, and a directory that keeps three monthly snapshots reports each person once.

Combinations naming nobody is where a dirty value surfaces. #NAME? — what Excel leaves in a cell whose formula failed — is kept as a value, matched like any other, matches nobody, and lands here as a number you can act on. Prism does not silently correct it, because it does not know what you meant. A large number here with the people count near zero usually means a column was mapped to the wrong field.

Check the row count against your spreadsheet​

This is the number to read before anything else. A file that was cut off — an export that stopped, a copy that lost its tail — is not always refusable, because a shorter list of combinations is still a valid list:

  • a cut that lands in the middle of a row leaves a row with too few cells, and the upload is refused naming that row;
  • a cut inside a quoted value leaves the file invalid as CSV, and the upload is refused naming the line;
  • a cut on a line boundary leaves a perfectly good file of fewer rows, and nothing can tell. The rows in the file figure is what tells you.

If your spreadsheet has 4,290 data rows and the report says 2,000, do not import it. The definition would activate, report a plausible number of people, and be wrong about everyone in the missing half.

Then name it. The one-line summary is required, because it is what the agent reads to decide whether this definition is what the reader meant; it holds up to 400 characters, and the count under the box says how many you have used. Then finish on the last step. Make it live (a new name) or Save as draft / Import as draft writes the revision with the four directory numbers stored beside it, measured by the same counter the Re-preview button in the definition's History runs. A classification you write under Write raw JSON on the same page is counted the same way, against the same designated directory. Nothing a reader asks is affected until it is activated — by Make it live, or by Activate on the same step. If you close the dialog first, the draft waits in Your definitions, and its ⋯ menu has the same button every other definition uses. The stored draft records what the directory said; it does not record the row count, the duplicates or the case variants — those describe the upload rather than the definition, and you read them in the report while you decide.

What is refused, and what is not​

Refused, naming the row or the column, with nothing stored. A row is named by its data row number — the first row after the header is 1, and a completely blank line is not counted:

  • a blank cell in a mapped column. In the file, a trailing separator and a deliberate "these people have no job profile" are the same bytes, and the two want opposite treatment. A directory value that is genuinely empty cannot be named by a classification in this version; leave those people out and they are counted as unclassified;
  • a ragged row — more or fewer cells than the header;
  • a heading repeated in the first row, or a mapped heading the file does not carry;
  • a file that is not UTF-8 CSV — a UTF-16 "Unicode Text" export, a workbook saved as .csv in name only;
  • a mapping key the directory does not declare, or one it hides;
  • a file with no data rows — a filter that matched nothing exports as a header alone, and a classification of no combinations would answer a confident zero.

Not refused, and reported instead: exact duplicates, case variants, and a value that names nobody.

Re-uploading a corrected file​

Upload the new file under the same name. Prism writes it as the next revision — it builds on the revision the name is at, which the page reads for you — counts it again, and you activate it with Activate on the last step. The previous revision stays readable, so an answer given last month that named it can still be read back.

Limits​

file size8 MB
rows50,000
fields in one classification8
length of one value500 characters

These are fixed rather than settings. A classification is the combinations that decide membership, and the file this feature was built for is 4,290 rows of three short values — a third of a megabyte. A file that meets one of these is almost always the directory itself rather than the list that classifies it, and the refusal says which limit it met.

What this does not do​

It does not change how any figure is calculated. A classification tells Prism what a word means — who developers are — and nothing else. It cannot alter a metric, a required filter or a disclosure floor, because none of those reads it.

It does not resolve names. A classification names directory values, not people, so there is nobody to look up and no ambiguity to settle. Who is in it is whoever the directory's rows say, at the moment a question is asked.

It does not infer. A misspelt value stays misspelt and names nobody; the report shows it as a combination naming nobody, and the fix is in your spreadsheet.

For scripting​

The page calls routes you can call yourself, with the file base64 encoded in a JSON body. inspect with no mapping reads the file and returns its headings, up to five values of each column (each cut at 60 characters) and its row count, measuring nothing; with a mapping it reads, counts and stores nothing. GET /api/admin/definitions/fields returns the fields your organizational context stream declares, each with hidden set as the manifest says. POST /api/admin/definitions/tuples writes the draft.

Every one of them needs a super-administrator session, the same as the page.

# `tr -d '\n'` because GNU and busybox `base64` wrap their output at 76
# columns and macOS's does not; the JSON needs one unbroken string either way.
curl -sS -X POST "https://<host>/api/admin/definitions/tuples/inspect" \
-H "Content-Type: application/json" \
-d "{\"data\": \"$(base64 < developers.csv | tr -d '\n')\", \"filename\": \"developers.csv\",
\"mapping\": {\"job_family\": \"Job Family\", \"job_title\": \"Business Title\"}}"

POST /api/admin/definitions/tuples takes the same body plus name, summary, optional aliases, and base_revision — 0 for a new definition, or the revision you are replacing.