Revision Query Flow
Revision Parameter
URL Parameter
The revision is specified via the_revision URL query parameter:
revision name is still honored as a legacy alias, so existing links keep working.
Setting Revision Programmatically
The revision can be changed without a full page reload. The URL parameters are updated and the data is re-fetched at the new revision.Read-Only Mode
Historical revisions are always displayed in read-only mode. The sheet enters read-only mode when any of these conditions is true:Query Execution with Revision
The query processor handles revisions at two levels:1. Query Parameter Revision
Therevision parameter in the entity query controls which historical version of the data is queried:
2. Configuration Processing
When a revision is active, the configuration processor:- Injects the
revisionparameter into the main data source query - Appends the revision number to the document display name (e.g.,
SystemReqs (Rev 42)) - Sets the sheet to read-only mode
Document Context with Revision
The document display name includes the revision when viewing historical data:
Configuration at a Revision
The sheet configuration is not read at the revision. The configuration request carries only the project and the document, and is served from the current revision of both the document and the configuration file. The data model is likewise read at its current revision. The configuration URL includes a timestamp only so that the browser does not serve a cached copy.Entity Metadata at Revision
Entity query results at a specific revision include standard metadata fields:Baseline vs. Revision
The query processor supports both approaches. The revision can come from an explicit query parameter or from a project baseline associated with the query context.
Verify in applicationThe relationship between Polarion project baselines and SVN revision numbers depends on your Polarion server configuration. Consult your administrator for baseline-to-revision mapping.
Complete YAML Example
?_revision=42 in the URL, the query processor:
- Fetches
UserNeedentities as they existed at revision 42 - Expands
systemRequirements.systemRequirementat the same revision - Displays the sheet in read-only mode
- Shows the document name with revision suffix
Related Pages
- Query Context — query parameter reference
- Collection-Scoped Sheets — open a sheet with a revision per document instead of one revision for the whole sheet
- EntityQuery — query structure and parameters
- Document Filtering — document-level query constraints