Revision Query Flow
Revision Parameter
URL Parameter
The revision is specified via therevision URL query parameter:
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 URL with Revision
The configuration URL includes a cache-busting timestamp. When the revision changes, the configuration is re-fetched to ensure the correct version of the sheet configuration is loaded.Configuration re-fetching on revision change depends on the server’s handling of revision-aware configuration. Verify that your Polarion server supports revision-specific configuration retrieval.
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.
The 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
- EntityQuery — query structure and parameters
- Document Filtering — document-level query constraints