Skip to content

Fix moving of file into library#12001

Merged
koppor merged 35 commits into
mainfrom
fix-melting-630
Oct 23, 2024
Merged

Fix moving of file into library#12001
koppor merged 35 commits into
mainfrom
fix-melting-630

Conversation

@koppor

@koppor koppor commented Oct 16, 2024

Copy link
Copy Markdown
Member

Fixes https://github.com/JabRef/jabref-issue-melting-pot/issues/630

Follow-up to #11576

Additionally:

  • We added support for modifier keys when dropping a file on an entry in the main table.
  • When dropping a file into the main table, after copy or move, the file is now renamed according to the configured patterns.

Mandatory checks

  • I own the copyright of the code submitted and I licence it under the MIT license
  • Change in CHANGELOG.md described in a way that is understandable for the average user (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 developer's documentation: Is the information available and up to date? If not, I outlined it in this pull request.
  • Checked documentation: Is the information available and up to date? If not, I created an issue at https://github.com/JabRef/user-documentation/issues or, even better, I submitted a pull request to the documentation repository.

@Siedlerchr

Copy link
Copy Markdown
Member

Need to test under Mac, there was something about modifiers not working

@koppor

koppor commented Oct 17, 2024

Copy link
Copy Markdown
Member Author

Need to test under Mac, there was something about modifiers not working

Test is drag and drop with and without modifier keys>

  • outside file directory
  • inside file directory

Which means: 6 different manual test cases.

You can also add drag'n'drop from another volume, which makes then 9 test cases.

@github-actions

Copy link
Copy Markdown
Contributor

The build of this PR is available at https://builds.jabref.org/pull/12001/merge.

@github-actions

Copy link
Copy Markdown
Contributor

The build of this PR is available at https://builds.jabref.org/pull/12001/merge.

@github-actions

Copy link
Copy Markdown
Contributor

The build of this PR is available at https://builds.jabref.org/pull/12001/merge.

@github-actions

Copy link
Copy Markdown
Contributor

The build of this PR is available at https://builds.jabref.org/pull/12001/merge.

Comment thread src/main/java/org/jabref/gui/externalfiles/ExternalFilesEntryLinker.java Outdated
Comment thread src/main/java/org/jabref/gui/externalfiles/ExternalFilesEntryLinker.java Outdated
@Siedlerchr

Copy link
Copy Markdown
Member

Mac only supports copy https://bugs.openjdk.org/browse/JDK-8264172

github-actions[bot]

This comment was marked as outdated.

@InAnYan

InAnYan commented Oct 23, 2024

Copy link
Copy Markdown
Member

I've only done 3 test cases with a .bib file outside of the PDFs files directory.

The PR works!

(Linux Mint)

@koppor

koppor commented Oct 23, 2024

Copy link
Copy Markdown
Member Author

One needs to check whether the file indexing works - or causes trouble... I would bet it works, because I first handle the file on the file system and then add it to jabref which then indexes it...

# Conflicts:
#	src/main/java/org/jabref/gui/entryeditor/EntryEditor.java
#	src/main/java/org/jabref/gui/externalfiles/ExternalFilesEntryLinker.java
#	src/main/java/org/jabref/gui/maintable/MainTable.java
#	src/main/java/org/jabref/gui/preview/PreviewPanel.java

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your code currently does not meet JabRef's code guidelines.
We use Checkstyle to identify issues.
The tool reviewdog already placed comments on GitHub to indicate the places. See the tab "Files" in you PR.
Please carefully follow the setup guide for the codestyle.
Afterwards, please run checkstyle locally and fix the issues.

You can check review dog's comments at the tab "Files changed" of your pull request.

@LoayGhreeb

Copy link
Copy Markdown
Member

Fixed compilation errors, removed IndexManager from ImportHandler, and removed the index blocker.
Tested, the indexing works without issues.

github-actions[bot]

This comment was marked as resolved.

@github-actions

github-actions Bot commented Oct 23, 2024

Copy link
Copy Markdown
Contributor

The build for this PR is no longer available. Please visit https://builds.jabref.org/main/ for the latest build.

@koppor

koppor commented Oct 23, 2024

Copy link
Copy Markdown
Member Author

@LoayGhreeb Thank you for fixing! Then we can go ahead!

@koppor koppor added the automerge PR is tagged with that label will be merged if workflows are green label Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge PR is tagged with that label will be merged if workflows are green

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants