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

Add plr sorting hook #979

Merged
merged 7 commits into from
Jan 12, 2020
Merged

Add plr sorting hook #979

merged 7 commits into from
Jan 12, 2020

Conversation

jwkaltz
Copy link
Member

@jwkaltz jwkaltz commented Jan 3, 2020

This PR introduces a new hook, to be able to define a sorting of the plrs within the themes in the extract data.
It also proposes a contrib method for one specific sorting implementation, by type_code, as requested by @romefi . This contrib method can be tested by defining in the project configuration file the following:

sort_within_themes_method: pyramid_oereb.contrib.plr_sort_within_themes_by_type_code

(see example in new standard configuration file)

C2C reference ticket: GEO-2844

Copy link
Collaborator

@kdeininger kdeininger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we already had a discussion about sorting in pyramid_oereb. If I remember rightly, the result was to implement no sorting because this step should be done in the client application according to its special needs. Otherwise, you will have to rely on the extract to be parsed in the right order. The only exception is the print proxy for Mapfish Print, which acts as kind of client.

But anyway, if it is a requirement to get a sorted extract, this PR looks good to me.

@kdeininger kdeininger requested a review from vvmruder January 9, 2020 07:33
jwkaltz and others added 6 commits January 9, 2020 10:09
@jwkaltz jwkaltz force-pushed the add_plr_sorting_hook branch from 137425f to 4ea47d7 Compare January 9, 2020 09:14
@jwkaltz jwkaltz merged commit 36b93a6 into master Jan 12, 2020
@jwkaltz jwkaltz deleted the add_plr_sorting_hook branch January 12, 2020 16:10
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.

3 participants