Roadmap and release notes¶
Polarion Applications are designed as the long-term extensibility framework of Polarion. This page describes what the 2612 preview contains, the direction for the next releases, and the differences to earlier internal previews.
Shipped in Polarion 2612 (preview)¶
- Upload and management under Global Administration → Applications: upload, update, inspect properties, delete.
- Three view types: form extensions, sidebars and navigation topics, declared under
viewsinmanifest.json. - Your own REST endpoints: GET and POST endpoints declared under
serverScripts.endpointsand implemented as GraalVM JavaScript with access to the Polarion Java API. - Polarion Application SDK 0.5.2-preview (
polarion-app-sdk), downloadable from every 2612 server at/polarion/sdk/applications/. - Framework-managed authentication: the context carries a REST token for the current user; views call the REST API and your endpoints without handling credentials.
The feature is disabled by default and is switched on with the polarionapp.enabled configuration property. See Enable Applications in Polarion.
Direction¶
The framework is built to grow along two axes. Dates and scope are indicative and subject to change; the manifest format is versioned (manifestVersion) so that applications can declare what they need.
More places in the UI¶
| View type | Status | Purpose |
|---|---|---|
| Form extension | 2612 | Panel in the Work Item form |
| Sidebar | 2612 | Sidebar in the Work Items table and in Documents |
| Navigation topic | 2612 | Full page in the project navigation |
| Widget | planned | Application-provided widgets for LiveReport pages, dashboards and Documents |
| Administration view | planned | Pages in Project and Global Administration for configuring the application itself |
See Upcoming: widgets and administration for how to prepare.
More content an application can deliver¶
| Content | Status | Purpose |
|---|---|---|
| Views and endpoints | 2612 | UI and server-side capability |
| Scripts | planned | Workflow functions, conditions and scheduled scripts shipped and versioned with the application |
| Templates | planned | Project templates, document templates and configuration delivered by the application |
| Further resource types | planned | Enumerations, custom fields and other configuration as part of a package |
The goal is that everything an extension needs travels in one package, is installed in one step, and is updated as a unit.
SDK¶
The SDK will gain events beyond selection-changed and calls from the view into the host (refreshing a form, navigating, notifications). The current API (fetchContext, events.subscribe, destroy) is a first version and is subject to change; each change will come with clear migration steps.
Changes compared with earlier previews¶
If you have seen pre-release material (for example workshop starters that used a polarion.js helper file), note the following differences. Applications built against the earlier protocol do not work on 2612 without changes.
| Earlier preview | Polarion 2612 |
|---|---|
Manifest sections workItemForms and viewlets.navigation | views.formExtensions, views.sidebars, views.navigationTopics |
Manifest section endpoints | serverScripts.endpoints |
| No publisher field | publisherName (shown in the upload dialog and in Properties) |
Copy of a polarion.js helper in every app | npm package polarion-app-sdk |
Bridge messages polarion-viewlet-bridge* (internal names) | polarion-view-bridge* (internal to the SDK) |
Context { data: { restBase, objectId } } | Flat PolarionContext with projectId, workItemId, restBaseUrl, appEndpoint, restToken, … |
Form layout element <extension applicationId="…" viewletId="…"/> | <applicationView id="<identifier>.<viewId>"/> |
REST token obtained from window.getRestApiToken() | context.restToken from fetchContext() |
ZIP with manifest.json at the root (some drafts) | ZIP with one top-level folder named after the identifier |
Known limitations in 2612¶
See Limitations and known issues for the complete list. The most important ones:
- The SDK only supports
fetchContext()and theselection-changedevent. There is no API yet to call back into the host (for example to refresh the form). - One subscription per event type per view.