Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frontend code versioning for RPC #32

Open
ZakarFin opened this issue Feb 22, 2017 · 2 comments
Open

Frontend code versioning for RPC #32

ZakarFin opened this issue Feb 22, 2017 · 2 comments

Comments

@ZakarFin
Copy link
Member

This is a roadmap item. Responsible party is NLS Finland.

Initial support for more graceful version negotiation. Mainly for clients connecting with RPC. Currently any RPC-clients will receive the latest Oskari code immediately when a new version is updated to the Oskari instance hosting the embedded map. As there might be backwards-incompatible changes the software built on RPC might break at the same time.

We should add support for a version parameter for the embedded map url (iframe src) that could be used to request a specific version of the frontend code of Oskari. Naturally it's the responsibility of the administrator of each Oskari instance which versions are supported and for how long, but Oskari should enable this kind of functionality. This way an older version of the client code could be used by the RPC-clients to make the migration process more flexible when versions are updated.

@ZakarFin
Copy link
Member Author

oskariorg/oskari-server#897 enables instance admins to enable embedded maps to specify URL-parameter v=[version] for requesting a non-default version. This also requires instance admin to provide the parallel versions on the server.

Future steps could be providing "well known version tags" to be used as version to make it easier to use. The current implementation requires the embedded maps user to know about the versioning system. Having admin configure more developer-friendly tags would make it easier to use. Something like:

  • "stable" == for current version
  • "next" == upcoming version

Also defaulting the version to stable if requested version was not available would require more work on this.

@ZakarFin
Copy link
Member Author

Keeping this open to gather more experiences and think on the process for updating an instance and how we could help users select the "correct" version when this is enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant