Skip to content

Groups: Union/Intersection: needs re-selection of groups to take effect #6998

@mlep

Description

@mlep

JabRef 5.2--2020-10-07--4b1b7b4
Linux 4.9.0-13-amd64 amd64
Java 15

The group pane allows to choose between an intersection and a union when selecting several groups.

  • Groups: Union/Intersection: need restart of groups to take effect

    Issue: When clicking on the Intersection/Union button, an information message is displayed, but the list of entries in the table of entries is not changed. A restart of JabRef is needed for the selected mode to become active. A restart should not be needed.

    Steps to reproduce the behavior:

    1. Open the file jabref-authors.bib (https://github.com/JabRef/jabref/blob/master/src/test/resources/testbib/jabref-authors.bib)
    2. Select the groups "By status" and "By rating"
      Here you should have 1 entry displayed (if you are in intersection mode) or 48 entries displayed (if you are in union mode)
    3. Click once on the Union/Intersection button
      An information message at the bottom of the window confirms the change,
      but the number of displayed entries is still the same.
    4. Close and restart JabRef
    5. Reselect the 2 groups
      If you had one entry displayed, you now get 48, and vice-versa.

    Note 1: when clicking on the union/intersection button, the aspect of the button is not always changed
    Note 2: the hovering message ("Toggle union" or "Toggle intersection") can contradict the information message. E.g. hovering message is "Toggle union", and after the click, the information message is "Group view mode set to intersection".
    Note 3: resetting the preferences did not change the behavior.
    Note 4: In the preferences, the "Groups" tab has two radio buttons: "Display only entries belonging to all selected groups" and "Display all entries belonging to one or more of the selected entries". This seems equivalent to Intersection and Union, respectively. What is their use?

Edit: Meanwhile some progress has been made. What is left to do:

  • Groups: Union/Intersection: needs re-selection of groups to take effect

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done
    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions