The chat responses are generated using Generative AI technology for intuitive search and may not be entirely accurate. They are not intended as professional advice. For full details, including our use rights, privacy practices and potential export control restrictions, please refer to our Generative AI Service Privacy Information. As this is a test version, please let us know if something irritating comes up. Like you get recommended a chocolate fudge ice cream instead of an energy managing application. If that occurs, please use the feedback button in our contact form!
Skip to content

Iterate: change, rebuild, re-upload

2612

Once the first version is installed, every further change follows the same short loop.

The loop

  1. Edit the source.
  2. npm run package (build + ZIP).
  3. Global Administration → Applications → Upload the new ZIP.
  4. Reload the Polarion page that shows the view (hard reload: Ctrl+Shift+R or Cmd+Shift+R).

Configuration XML does not have to be touched again unless you rename the application identifier or add a new view.

Updating an installed application

Uploading a ZIP whose identifier matches an installed application updates it in place. The confirmation step of the upload dialog changes accordingly: it reads You are going to UPDATE the following application and shows two columns, New Version and Current Version, with the manifest data of both.

Upload dialog when the identifier already exists: New Version next to Current Version

Bump applicationVersion with every upload. The update dialog shows it next to the installed version, administrators see it in Properties, and it is the only reliable way to tell two builds apart.

Browser caching: Vite gives every build output a content hash in its file name, so a new build never collides with cached assets. The entry index.html itself is small and is reloaded with the page.

Checking what is installed

Select a tile on the Applications page and click Properties. The dialog shows the identifier, version, title, publisher, manifest version and description taken from the installed manifest.

Application Properties dialog

The static files are also reachable directly, which is useful for a quick check that a build made it to the server:

https://<polarion-host>/polarion/apps/<identifier>/<rootDirectory>/index.html

Opening a view this way shows your page without the Polarion host around it. fetchContext() cannot succeed there; a well-written view reports that instead of hanging (see the error state in Your first application).

Removing an application

Select the tile and click Delete. Polarion removes the application and its files immediately and confirms with Application <identifier> was deleted; treat the button as final. Configuration XML that still references a view of the deleted application is not changed; the corresponding panel simply disappears from forms and the entry vanishes from the Show Sidebar menu. Remove the applicationView elements by hand to keep the configuration clean.

Several developers, one server

Application identifiers are global on a server. Two people uploading com.example.hello overwrite each other. During development, give every developer or feature branch its own identifier (for example com.example.hello.jdoe) and switch to the final identifier when the application is ready. Remember that the identifier is part of the configuration id, so the applicationView elements must follow.

Local development without uploading

Rebuilding and uploading for every CSS tweak is slow. For UI work, run npm run dev and open the Vite dev server in a browser; fetchContext() fails there, so give your code a mock context in development mode. The pattern is described in Develop locally.