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

Update wms layer title each time a new layer is selected #47087

Merged
merged 1 commit into from
Mar 23, 2022

Conversation

landryb
Copy link
Contributor

@landryb landryb commented Jan 31, 2022

previously, if the wms layer title was manually modified, it would never get
updated anymore until qgis was restarted.

Fixes #28858 #40421

Description

the existing behaviour of not updating the field anymore feels like a bug.. and nobody has been able to explain why this choice had been made.

@github-actions github-actions bot added this to the 3.24.0 milestone Jan 31, 2022
@landryb
Copy link
Contributor Author

landryb commented Jan 31, 2022

testing wise, i've backported locally the commit on 3.22.3 and:

  • checked that upon layer selection the title field was updated
  • checked that i could still edit the title field, and if added the layer title was the modified one in the layertree
  • checked that after that, upon layer selection the title field was still updated with the selected layer title (eg the previously modified title was overwritten)
  • same thing with WMS and WMTS servers (eg with a tiled layer list)

@landryb
Copy link
Contributor Author

landryb commented Jan 31, 2022

Peek 31-01-2022 09-52

shows the 'new' behaviour

@lbartoletti
Copy link
Member

LGTM — test failure is unrelated —, but I'm not a web/server guy. cc @elpaso @pblottiere ?

@landryb
Copy link
Contributor Author

landryb commented Feb 2, 2022

@elpaso, can you review this or point me at the right developer who should review it ? Thanks !

@jef-n
Copy link
Member

jef-n commented Feb 2, 2022

That feature predates the unified add layer dialog. So the last layer name would be clean whenever you opened the dialog and you could enter the title and then pick the layer(s) without that resetting the entered title. You could also reuse the existing title to add another (set of) layer(s) - maybe because your entered title also describes the service and not just the layer (introduced in r15681 / 7b4e699)

@Gustry
Copy link
Contributor

Gustry commented Feb 2, 2022

@lbartoletti FYI, these 2 backport labels are the same target branch 3.22. One should be removed.
QGIS 3.22 is the new LTR now.

@jef-n
Copy link
Member

jef-n commented Feb 2, 2022

the updates also resume, when you just clear the field.

@landryb
Copy link
Contributor Author

landryb commented Feb 3, 2022

the updates also resume, when you just clear the field.

agreed, but that's ... super counter-intuitive, a bit like an easter-egg :)

@github-actions
Copy link

The QGIS project highly values your contribution and would love to see this work merged! Unfortunately this PR has not had any activity in the last 14 days and is being automatically marked as "stale". If you think this pull request should be merged, please check

  • that all unit tests are passing

  • that all comments by reviewers have been addressed

  • that there is enough information for reviewers, in particular

    • link to any issues which this pull request fixes

    • add a description of workflows which this pull request fixes

    • add screenshots if applicable

  • that you have written unit tests where possible
    In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this pull request.
    If there is no further activity on this pull request, it will be closed in a week.

@github-actions github-actions bot added the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Feb 18, 2022
@nyalldawson nyalldawson added backport release-3_24 and removed stale Uh oh! Seems this work is abandoned, and the PR is about to close. labels Feb 20, 2022
@nyalldawson nyalldawson modified the milestones: 3.24.0, 3.26 (Feature) Feb 20, 2022
@github-actions
Copy link

github-actions bot commented Mar 7, 2022

The QGIS project highly values your contribution and would love to see this work merged! Unfortunately this PR has not had any activity in the last 14 days and is being automatically marked as "stale". If you think this pull request should be merged, please check

  • that all unit tests are passing

  • that all comments by reviewers have been addressed

  • that there is enough information for reviewers, in particular

    • link to any issues which this pull request fixes

    • add a description of workflows which this pull request fixes

    • add screenshots if applicable

  • that you have written unit tests where possible
    In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this pull request.
    If there is no further activity on this pull request, it will be closed in a week.

@github-actions github-actions bot added the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Mar 7, 2022
@landryb
Copy link
Contributor Author

landryb commented Mar 7, 2022

can someone merge this ? or is there more to discuss ? thanks!

@github-actions github-actions bot removed the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Mar 7, 2022
@github-actions
Copy link

The QGIS project highly values your contribution and would love to see this work merged! Unfortunately this PR has not had any activity in the last 14 days and is being automatically marked as "stale". If you think this pull request should be merged, please check

  • that all unit tests are passing

  • that all comments by reviewers have been addressed

  • that there is enough information for reviewers, in particular

    • link to any issues which this pull request fixes

    • add a description of workflows which this pull request fixes

    • add screenshots if applicable

  • that you have written unit tests where possible
    In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this pull request.
    If there is no further activity on this pull request, it will be closed in a week.

@github-actions github-actions bot added the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Mar 22, 2022
@landryb
Copy link
Contributor Author

landryb commented Mar 22, 2022

@jef-n @nyalldawson is there any reason for not merging this, eg something controversial in the change/fix ? i hate to see those bots marking PRs as stale..

@github-actions github-actions bot removed the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Mar 22, 2022
previously, if the layer title was manually modified, it would never get
updated anymore until qgis was restarted.

Fixes qgis#28858 qgis#40421
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Manually entered "layer name" never cleared
5 participants