Skip to content

Fix Shared Database Tests#7040

Merged
Siedlerchr merged 7 commits into
masterfrom
sharedbtest
Nov 3, 2020
Merged

Fix Shared Database Tests#7040
Siedlerchr merged 7 commits into
masterfrom
sharedbtest

Conversation

@Siedlerchr

@Siedlerchr Siedlerchr commented Oct 25, 2020

Copy link
Copy Markdown
Member

Fix FieldChangeEvent Delta computation

The CoarseChangeFilter only reports delta >0 as Major change.
The problem is that when you codewise set new field content with the same exact length as before, but not the same content it still has a delta of 0 and therefore no DB sync is triggered.
A more detailed explanation is #6862 (comment)

Fixes #6862

  • Change in CHANGELOG.md described (if applicable)
  • Tests created for changes (if applicable)
  • Manually tested changed features in running JabRef (always required)
  • Screenshots added in PR description (for UI changes)
  • Checked documentation: Is the information available and up to date? If not created an issue at https://github.com/JabRef/user-documentation/issues or, even better, submitted a pull request to the documentation repository.

Fix FieldChangeEvent Delta computation
@Siedlerchr Siedlerchr added the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Oct 25, 2020
@Siedlerchr Siedlerchr requested a review from koppor October 25, 2020 17:02
Comment thread src/main/java/org/jabref/model/entry/event/FieldChangedEvent.java Outdated
Comment thread src/main/java/org/jabref/model/entry/event/FieldChangedEvent.java
@tobiasdiez tobiasdiez added the status: changes-required Pull requests that are not yet complete label Oct 26, 2020
* upstream/master:
  Bump mockito-core from 3.5.13 to 3.5.15 (#7044)
  Bump styfle/cancel-workflow-action from 0.5.0 to 0.6.0 (#7047)
* upstream/master:
  Fix 4040 link
  Bump java-diff-utils from 4.8 to 4.9 (#7061)
  Bump bcprov-jdk15on from 1.66 to 1.67 (#7063)
  Bump checkstyle from 8.36.2 to 8.37 (#7064)
  Bump mockito-core from 3.5.15 to 3.6.0 (#7067)
  Bump controlsfx from 11.0.2 to 11.0.3 (#7066)
  Squashed 'src/main/resources/csl-styles/' changes from 5297abd..5c376b8
  add short date formatter (#7039)
  Add awt native open commands (#7037)
  Add online-link detection to FileFieldParser (#7043)
* upstream/master:
  Bump unirest-java from 3.11.02 to 3.11.03 (#7060)
  Bump xmlunit-matchers from 2.7.0 to 2.8.0 (#7062)
  Bump xmlunit-core from 2.7.0 to 2.8.0 (#7065)
rename delta to majorCharacterChange
@Siedlerchr Siedlerchr merged commit b5bcea4 into master Nov 3, 2020
@Siedlerchr Siedlerchr deleted the sharedbtest branch November 3, 2020 18:54
Siedlerchr added a commit that referenced this pull request Nov 3, 2020
* upstream/master:
  Fix Shared Database Tests (#7040)
  Bump byte-buddy-parent from 1.10.17 to 1.10.18 (#7059)
Siedlerchr added a commit to JabRef/jabref-koppor that referenced this pull request Nov 11, 2020
* upstream/master: (164 commits)
  Bump lucene-queryparser from 8.6.3 to 8.7.0 (JabRef#7089)
  Fix endnote importer when keyword style is null (JabRef#7084)
  Rename Firefox extension file in Windows (JabRef#7092)
  Add support for Microsoft Edge browser in Windows and Linux builds (JabRef#7056)
  Bump unirest-java from 3.11.03 to 3.11.05 (JabRef#7087)
  Bump com.github.ben-manes.versions from 0.33.0 to 0.36.0 (JabRef#7088)
  Bump gittools/actions from v0.9.4 to v0.9.5 (JabRef#7091)
  Feature/add abstract field to complex search (JabRef#7079)
  Add missing authors
  Implement Emacs key bindings (JabRef#6037)
  Special field code maintenance (JabRef#7078)
  Follow up fix for 7077 Reset preview layouts on clear
  Fix preview settings not saved due to l10n (JabRef#7077)
  Add link to existing documentation of filed types
  Remove unused supportsPaging
  Squashed 'src/main/resources/csl-styles/' changes from 5c376b8..f4399aa
  Fix more 404 links
  Fix custom theme styles not applied to the entry preview (JabRef#7071)
  Fix Shared Database Tests (JabRef#7040)
  Bump byte-buddy-parent from 1.10.17 to 1.10.18 (JabRef#7059)
  ...

# Conflicts:
#	src/main/java/org/jabref/gui/DefaultInjector.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: changes-required Pull requests that are not yet complete 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.

Fix shared database tests

2 participants