-
Notifications
You must be signed in to change notification settings - Fork 18
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
Server-side panels #1085
Server-side panels #1085
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good! Approved.
ServiceContact: | ||
IndividualName: "Norman Fomferra" | ||
PositionName: "Senior Software Engineer" | ||
ContactInfo: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This info is outdated, pleas update with the following:
ContactInfo:
Phone:
Voice: +49 40 696 389 300
Facsimile: +49 40 696 389 399
Address:
DeliveryPoint: Chrysanderstr. 1
City: Hamburg
AdministrativeArea: Hamburg
PostalCode: 21029
Country: Germany
ElectronicMailAddress: info@brockmann-consult.de
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should remove this entirely
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, looks good! Just a couple of tiny suggestions.
- pip: | ||
- git+https://github.com/bcdev/chartlets.git#subdirectory=chartlets.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume this is temporary until Chartlets gets a conda-forge release?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes.
path = Path(augmentation["Path"]) | ||
if not path.is_absolute(): | ||
path = Path(self.base_dir) / path | ||
with prepend_sys_path(path): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel as though there ought to be a more elegant way to do this without changing the system path globally, but on closer examination it seems that alternative approaches would need quite a lot of import system surgery :(.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you know anything better, please report back to me!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested from a user perspective. Works well :) Minor comment on outdated info in config - but thats not crucial for merging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works as described!
Co-authored-by: Pontus Lurcock <pontus.lurcock@brockmann-consult.de>
Co-authored-by: Pontus Lurcock <pontus.lurcock@brockmann-consult.de>
This PR allows extending xcube Viewer by custom panels defined in xcube Server.
Added experimental feature that allows for extending the xcube Viewer user interface by server-side panels. For this to work, users can now configure xcube Server to load one or more Python modules that provide
xcube.webapi.viewer.contrib.Panel
UI-contributions. Panel instances provide two decoratorslayout()
andcallback()
which are used to implement the UI and the interaction behaviour, respectively. The functionality is provided by the https://github.com/bcdev/chartlets Python library. A working example can be found inexamples/serve/panels-demo
.Related xcube Viewer PR: xcube-dev/xcube-viewer#438
Checklist:
[ ] New/modified features documented indocs/source/*
CHANGES.md