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
Accessing Tag Management¶
Click Tags in the sidebar to manage tag groups.
Filtering by Tags¶
Throughout Squirrel, you can filter PV tables by tags:
- Look for the tag filter dropdown above the table
- Select one or more tags
- The table updates to show only matching PVs
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¶
- Click Create Tag Group
- Enter a name for the group
- Add tags within the group
- Click Save
Editing a Tag Group¶
- Click on the tag group name
- Modify the name or tags
- Click Save
Adding Tags to a Group¶
- Open the tag group
- Click Add Tag
- Enter the tag name
- Click Add
Deleting Tags¶
- Open the tag group
- Click the delete icon next to the tag
- Confirm the deletion
Impact of Deleting Tags
Deleting a tag removes it from all PVs that have it assigned.
Assigning Tags to PVs¶
You can assign tags to PVs from:
PV Browser¶
- Select PVs using checkboxes
- Click Tags
- Select tags to assign
- Click Save
PV Details¶
- Open the PV details page
- Click Edit (admin mode required)
- Modify tag assignments
- Click Save
Best Practices¶
!!! tip "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