Skip to content

Tags

Tags help you organize PVs into logical groups for easier filtering and management.

What are Tags?

Tags are labels you can assign to PVs. A PV can have multiple tags, and tags can be organized into tag groups.

Examples of tag groups:

  • System - Magnets, RF, Vacuum, Diagnostics
  • Location - Sector 1, Sector 2, Injector, Linac
  • Priority - Critical, Standard, Optional

Tags can have a description, for notes on what the tag means or when to use it.

Accessing Tag Management

Click Configure Tags in the sidebar. The Tag Groups table lists each group with its tag count and description. Click a group to see its tags.

Filtering by Tags

Throughout Squirrel, you can filter PV tables by tags. Above the table there is one dropdown per tag group:

  1. Open a group's dropdown and select one or more tags.
  2. The table shows only PVs with at least one of those tags.
  3. Select tags in other groups to narrow it further: a PV must match every group you've filtered on.

Click Clear Filters to remove them all.

This works in:

  • Snapshot Details
  • Snapshot Comparison
  • PV Browser

Managing Tag Groups

Admin Required

Creating and modifying tag groups requires admin privileges.

Creating a Tag Group

  1. Click New Group.
  2. Enter a Title and, optionally, a Description.
  3. Click Save.
  4. Click the new group to open it, and add its tags (see below).

Editing a Tag Group

Click a group to open Edit Tag Group, where you can add, edit, and delete its tags. Click Close when you're done.

A group's title and description can't be changed after it is created yet: the edit dialog has no Save button (#207).

Adding Tags to a Group

  1. Open the tag group.
  2. Enter a name in New Tag Name.
  3. Click Add, or press Enter.

Editing a Tag

  1. Open the tag group.
  2. Click the edit icon next to the tag.
  3. Change its Tag Name or Tag Description, and click Save.

Outside admin mode, the same icon opens the tag's notes, read-only.

Deleting Tags

  1. Open the tag group
  2. Click the delete icon next to the tag
  3. Confirm the deletion

Impact of Deleting Tags

Deleting a tag removes it from all PVs that have it assigned.

Deleting a Tag Group

Click the delete icon in the group's row, then confirm. This deletes the group and all its tags, and removes them from every PV.

Importing Tags from CSV

  1. Click Import Tags.
  2. Choose a CSV file. Each column is a tag group, named by its header, and each cell holds one or more tags, separated by commas ("tag1, tag2").
  3. Check the preview, then click Import N tags.

Groups and tags that don't exist yet are created. Ones that already exist are kept, and the result says how many were skipped. Empty cells, and cells containing only nan or none, are ignored.

Assigning Tags to PVs

Tags are assigned to one PV at a time, in its details panel:

  1. In the PV Browser, click a PV to open its details.
  2. With admin mode on, pick the PV's tags in each group's dropdown under Tags.
  3. Click Save.

You can also give PVs tags when you create them, or import them with tags from a CSV file; see PV Browser.

Best Practices

Tag Organization

  • Use consistent naming conventions
  • Create tag groups that match your organizational structure
  • Avoid too many tags - keep it manageable
  • Use descriptive names that are clear to all users