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

When assigning a group color to a group, not all entries are marked #7325

Open
koppor opened this issue Jan 10, 2021 · 6 comments
Open

When assigning a group color to a group, not all entries are marked #7325

koppor opened this issue Jan 10, 2021 · 6 comments
Labels
bug Confirmed bugs or reports that are very likely to be bugs groups

Comments

@koppor
Copy link
Member

koppor commented Jan 10, 2021

  1. Open library with existing group from old JabRef version
  2. Select group
  3. Edit group color
    grafik
  4. Dialog "Change of Grouping Method" appears.
    grafik
  5. Click "OK"
  6. Group is unselected --> maintable changes
  7. Click on group
  8. Correct number of entries is displayed, group color not shown
    grafik

In another experiment, only 1/3 of the entries got the group color

Questions:

  • Why is the dialog "Change of Grouping Method" appearing?
  • Why are not all (or none) entries marked with a color?
@koppor koppor added the groups label Jan 10, 2021
@koppor
Copy link
Member Author

koppor commented Jan 10, 2021

@@ -22797,11 +22797,11 @@ it is less complex than WS-R and well-integrated in the WSPA.},
 1 KeywordGroup:SOC\;0\;keywords\;SOC\;0\;0\;1\;\;\;\;;
-1 KeywordGroup:OG\;0\;keywords\;OG\;0\;0\;0\;\;\;\;;
+1 KeywordGroup:OG\;0\;keywords\;OG\;0\;0\;1\;0xccffccff\;\;\;;
 1 KeywordGroup:AskedForPDF\;0\;keywords\;AskedForPDF\;1\;0\;1\;\;\;\;;

@koppor
Copy link
Member Author

koppor commented Jan 11, 2021

@k3KAW8Pnf7mkmdSMPHz27 May I ask whether you could have a look here?

@k3KAW8Pnf7mkmdSMPHz27
Copy link
Sponsor Member

k3KAW8Pnf7mkmdSMPHz27 commented Jan 11, 2021

  • Why is the dialog "Change of Grouping Method" appearing?

I have never noticed the name of the dialog window before.

My assumption, so far, is that it appears because when you make changes to a group it often implies changes in the bibentries as well. E.g., an explicit group will modify the GROUP field of all entries if you change its name, and the same should happen for all Keyword groups. It is perhaps a little bit misleading and appear in too many cases. I could probably look at this at some point this week. I'd guess the required changes are small.

  • Why are not all (or none) entries marked with a color?

There are two issues,

  1. The color region is only updated on changes in the GROUP field (and this group uses the KEYWORDS field). See Updates to colored group indicator for cited entries #7173 (review) , and feel free to chime in.
  2. The other part is that you are creating a change in the actual group (change of color), which should be a meta data event. It should be addressed for TexGroups in Updates to colored group indicator for cited entries #7173, as long as a onDescendantChanged event happens (which it should, but I have not verified). It is similar to point 1 in that I can see an argument for making it both in and out of scope of Updates to colored group indicator for cited entries #7173 . I'll add another comment in that PR when I have time. I am not sure how to minimize the performance impact of this (which is why I only addressed it for TexGroups)

@k3KAW8Pnf7mkmdSMPHz27
Copy link
Sponsor Member

(Just to state it plainly, I'll look into it after #7173 is merged, it doesn't make sense to do so before)

@k3KAW8Pnf7mkmdSMPHz27
Copy link
Sponsor Member

This is still open and I am not currently working on it. It ended up spilling needing further down the line changes and I forgot to write about that here,

@koppor koppor added the bug Confirmed bugs or reports that are very likely to be bugs label Oct 25, 2021
@koppor
Copy link
Member Author

koppor commented Oct 25, 2021

Group colors somehow do not update. All three entries belong to the "TOD" group, but the last one has a different color.

grafik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bugs or reports that are very likely to be bugs groups
Projects
Status: Low priority
Development

No branches or pull requests

2 participants