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

WFSSearchChannel: get region from a property #883

Merged

Conversation

jampukka
Copy link
Member

@jampukka jampukka commented Sep 22, 2022

Allow feature property to be used for the value of SearchResultItem.region as discussed in oskariorg/oskari-docs#280.

Stored in database table oskari_wfs_search_channels inside column config:

{
   ... rest of the config ...,
  "region-property": "foobar",
}

Example SQL for adding the value to existing config value (there's no UI for this yet)
UPDATE oskari_wfs_search_channels SET config = (config::jsonb || '{"region-property": "my_prop"}'::jsonb) where id = :id

@ZakarFin ZakarFin added this to the 2.9.0 milestone Sep 22, 2022
@ZakarFin ZakarFin merged commit c821ec1 into oskariorg:develop Sep 22, 2022
@ZakarFin
Copy link
Member

Nice 👍

@jampukka jampukka deleted the feature/wfs-search-channel-region branch September 22, 2022 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants