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

Fix group storage #2978

Merged
merged 2 commits into from
Jul 7, 2017
Merged

Fix group storage #2978

merged 2 commits into from
Jul 7, 2017

Conversation

lenhard
Copy link
Member

@lenhard lenhard commented Jul 7, 2017

Fixes #2932

It seems that up to now all group related changes in the UI were not actually stored in the MetaData and lost on save. This PR resets the group-related information in the MetaData whenever something group-related changes.

Hopefully I found all positions where that may happen. If tested it manually, but someone else needs to do this, too!

It also seems that IntelliJ decided to remove trailing whitespaces in the Changelog when I added my entry...

  • Change in CHANGELOG.md described
  • Tests created for changes
  • Screenshots added (for bigger UI changes)
  • Manually tested changed features in running JabRef
  • Check documentation status (Issue created for outdated help page at help.jabref.org?)
  • If you changed the localization: Did you run gradle localizationUpdate?

@lenhard lenhard added groups status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers labels Jul 7, 2017
@lenhard lenhard added this to the v4.0 milestone Jul 7, 2017
@tobiasdiez
Copy link
Member

I don't have time right now to have a closer look, so just a very quick remark/question:
I think that up to now changes were actually stored correctly. The reference to the root group was passed from the metadata to the group view model and thus changes from the later class should propagate back and update the metadata automatically. But if you create a new database, then the root was actually null (instead of empty) and thus the whole procedure broke down.

So I'm not sure if this explicit update is really necessary. But if its works we can also just merge it :-). Thanks anyway for having a look at this issue!

@Siedlerchr
Copy link
Member

Tested it locally and now the group information is stored when you create a new db, Importing works also.

@Siedlerchr Siedlerchr merged commit eaf53f7 into master Jul 7, 2017
@Siedlerchr Siedlerchr deleted the fix-group-adding branch July 7, 2017 14:55
Siedlerchr added a commit that referenced this pull request Jul 10, 2017
* upstream/master:
  Fix Brazilian Portugese language loading (#2981)
  Use sftp's symlink command to provide symlink to latest version
  Update gradle from 4.0 to 4.0.1
  Fix group storage (#2978)
  Fix keybindings in entry editor (#2971)
Siedlerchr added a commit that referenced this pull request Jul 11, 2017
* upstream/master:
  Eclipse J
  Add switch indentation for Eclipse and add some new missing formatting options
  Check for different editions in the duplicate check (#2991)
  Add CheckStyle Check for Constants (final static) (#2992)
  Add Remove link context menu entry in file editor (#2972)
  Fix DiVA tests
  Remove <pre> tag from entries fetched using MathSciNet (#2990)
  Fix Brazilian Portugese language loading (#2981)
  Use sftp's symlink command to provide symlink to latest version
  Update gradle from 4.0 to 4.0.1
  Fix group storage (#2978)
  Fix keybindings in entry editor (#2971)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
groups status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants