Skip to content

Legend filter is persisted while editing a style causing inconsistencies #10236

Closed

Description

@allyoucanmap

Description

The legend filter is not removed while editing a style of a WMS layer with the visual style editor, this can cause incosistency in the following cases:

  • selection of a different style (internal editing)
  • editing of the selected style and changing the rule with the visual style editor (internal editing)
  • creation of a new style with the visual style editor (internal editing)
  • external editing of a style (eg. on GeoServer) (external editing)

For all the internal editing we should intercept the events and correctly update the layer (it could be helpfull to take a look to the styleeditor epic where all the style editor logic is implemented).

For external cases I think we need a message inside the Legend component itself to let the user know that something is not aligned and a button to reset the legend filters

Important: the legend filter is part of the layerFilter that could have similar inconsistency problems so it's important to evaluate this task taking into account the whole property

What kind of improvement you want to add? (check one with "x", remove the others)

  • Investigation

Other useful information

Activity

  1. added
    estimate needed
    on Apr 23, 2024
  2. added this to the 2024.02.00 milestone on Apr 23, 2024
  3. removed their assignment
    on Aug 28, 2024
  4. modified the milestones: 2024.02.00, 2025.01.00 on Sep 2, 2024
  5. self-assigned this
    on Sep 2, 2024
  6. 17 remaining items

  7. added a commit that references this issue on Jan 13, 2025
  8. added a commit that references this issue on Jan 15, 2025
  9. added a commit that references this issue on Jan 15, 2025
  10. added a commit that references this issue on Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions