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

New core API to request server info #323

Merged
merged 4 commits into from
Dec 11, 2015
Merged

New core API to request server info #323

merged 4 commits into from
Dec 11, 2015

Conversation

mstevens83
Copy link
Contributor

Added core API to request server info (geokey version + installed exTensions), to be used by Sapelli.

Test case included.

Signed-off-by: Matthias Stevens [email protected]

…ensions), to be used by Sapelli.

Test case included.

Signed-off-by: Matthias Stevens <[email protected]>
@mstevens83 mstevens83 added this to the 0.8.2 milestone Dec 10, 2015
@ghost
Copy link

ghost commented Dec 11, 2015

My only concern would be if to expose superuser extensions? Because extension can be made to be used by superusers only. In this case, it would be worth checking if the request user is a superuser or a regular user. What do you think?

the info API uses this information to report the versions of installed extensions.

Because version is an optional argument of register() this should not break existing extension which do not (yet) pass their version to GeoKey.

Signed-off-by: Matthias Stevens <[email protected]>
 - check if 'version' field exists on extension dict
 - hide superuser extensions unless request comes from superuser
 - improved test case
Also added a deregister() method for extensions (only for testing purposes)

Signed-off-by: Matthias Stevens <[email protected]>
…changes to extension registration logic.

Also added proper setUp() and tearDown().
This should resolve the travis failures on this branch...

Signed-off-by: Matthias Stevens <[email protected]>
mstevens83 added a commit that referenced this pull request Dec 11, 2015
New core API to request server info
@mstevens83 mstevens83 merged commit 56ba700 into master Dec 11, 2015
@mstevens83 mstevens83 deleted the mstevens-info_api branch December 11, 2015 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant