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

WIP: Refactoring layerlisting #745

Draft
wants to merge 11 commits into
base: develop
Choose a base branch
from

Conversation

ZakarFin
Copy link
Member

@ZakarFin ZakarFin commented Jun 29, 2021

From JSONObject to classes serialized with Jackson. Work-in-progress etc. The idea is that LayerOutput could be used for data included in listing while LayerExtendedOutput could be used to add more metadata for the listing. Similar thing is currently done for the admin-layereditor backend with https://github.com/oskariorg/oskari-server/blob/master/service-map/src/main/java/org/oskari/maplayer/model/MapLayerAdminOutput.java

Now that we have cleared out the old admin functionalities we can concentrate on what OpenLayers and the "end-user" needs for the layers instead of throwing in everything to accommodate using the same layer object for both admin and "normal" users. This would allow us to streamline OskariLayer class, possible get rid of OskariLayerWorker and make the response format easier to see from the code (improving developer experience).

We might need to work even more on reducing the output and move things around since there are some things that rely on having options or attributes for layerlisting BUT they can be a HUGE json-fragment with vector styles included etc that are mostly only needed when the layer is actually added to the map (not when it's being listed for users to choose from).

Note! After oskariorg/oskari-frontend#2222 we should be able to remove even more things from layer listing and get the values from DescribeLayer when the layer is added to map.

@ZakarFin ZakarFin marked this pull request as draft June 29, 2021 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant