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

Server - Add an option to always expose empty groups in GetCapabilities #56730

Closed
wants to merge 1 commit into from

Conversation

Gustry
Copy link
Contributor

@Gustry Gustry commented Mar 6, 2024

Since #51724 empty groups are not exposed in the GetCapabilities.
Some groups can be empty after a server plugin for instance hiding layers.

But for some projects, the GIS client still wants all groups to be fetched from the server. The PR #51724 is a choice but doesn't fit for all needs.

I propose to add a flag if we want the group to be always exposed in the GetCapabilities, even if it's empty.

Can this be backported to the current LTR 3.34 ? (or at least the server part if possible). #51724 is breaking a change for people migrating from 3.28 to the new LTR.

CC @pblottiere @elpaso @rldhont

@Gustry Gustry added the Server Related to QGIS server label Mar 6, 2024
@github-actions github-actions bot added this to the 3.38.0 milestone Mar 6, 2024
Copy link

github-actions bot commented Mar 6, 2024

🪟 Windows builds ready!

Windows builds of this PR are available for testing here. Debug symbols for this build are available here.

(Built from commit f2110df)

@elpaso
Copy link
Contributor

elpaso commented Mar 6, 2024

I don't see the use case for that and I'd prefer not to add another option.
Can you elaborate why this is necessary (when do you want to see empty groups)?
If - as you said - the content of the group was hidden by a plugin cannot you just rewrite the plugin to not empty the group?

@Gustry
Copy link
Contributor Author

Gustry commented Mar 19, 2024

I understand @elpaso.
I got another way around.

@Gustry Gustry closed this Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Server Related to QGIS server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants