-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Fix/copy linked files on entry transfer #13535
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
Draft
UmutAkbayin
wants to merge
24
commits into
JabRef:main
Choose a base branch
from
UmutAkbayin:fix/copy-linked-files-on-entry-transfer
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 16 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
6b73b3f
refactor(RightClickMenu): pass libraryTab to createCopySubMenu
UmutAkbayin f036db2
feat(ClipBoardManager): add static BibDatabaseContext field with gett…
UmutAkbayin ddb7fff
refactor(ClipBoardManager): change sourceDatabaseContext to instance …
UmutAkbayin 9da934b
feat(RightClickMenu): set sourceBibDatabaseContext from libraryTab
UmutAkbayin 83070d5
feat: add LinkedFileTransferHelper#adjustLinkedFilesForTarget call to…
UmutAkbayin 36cc6af
feat(CopyTo): support file preferences in copy operations
UmutAkbayin fd355cf
feat(LinkedFileTransferHelper): add new helper class to support Entry…
UmutAkbayin fb76057
feat(LinkedFileTransferHelper): add helper to check reachability from…
UmutAkbayin a5a48a7
test(LinkedFileTransferHelperTest): add test cases for LinkedFileTran…
UmutAkbayin 427c12c
feat: adjust relative file paths after entry transfer between libraries
UmutAkbayin 8b52972
feat(ImportHandler): clone entry in importEntryWithDuplicateCheck
UmutAkbayin 83ad967
chore: update LinkedFileTransferHelper#adjustLinkedFilesForTarget cal…
UmutAkbayin 35e97bc
refactor: update LibraryTab#pasteEntry to copy with feedback
UmutAkbayin bf4b442
feat(LinkedFileTransferHelper): enhance linked file adjustment and co…
UmutAkbayin 86e648c
test(LinkedFileTransferHelperTest): add tests for all three scenarios
UmutAkbayin 24a1e6b
docs(requirements): add file transfer requirements specification
UmutAkbayin aaebd48
chore: remove unnecessary comments and adjust filed.ms to increment t…
UmutAkbayin 5e32e8b
chore: replace Collection constructors with factories
UmutAkbayin 3e54bc7
chore: remove DisplayNames for test classes
UmutAkbayin ee96a85
chore: replace assertTrue with assertEquals
UmutAkbayin 2e8125b
refactor: change method signature to have boolean parameter last and …
UmutAkbayin f2bcebb
refactor: replace IOException with Exception in the throws clause and…
UmutAkbayin 5a23b6f
refactor: remove unused import
UmutAkbayin f2b46a9
refactor: remove static modifier
UmutAkbayin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# File Transfer Between Bib Entries | ||
|
||
### File is reachable and should not be copied | ||
Check failure on line 3 in docs/requirements/filed.md
|
||
`req~logic.externalfiles.file-transfer.reachable-no-copy~1` | ||
When a linked file is reachable from the target context, the system must adjust the relative path in the target entry but must not copy the file again. | ||
|
||
Needs: impl | ||
|
||
### File is not reachable, but the path is the same | ||
`req~logic.externalfiles.file-transfer.not-reachable-same-path~1` | ||
When a linked file is not reachable from the target context, and the relative path in both source and target entry is the same, the file must be copied to the target context. | ||
|
||
Needs: impl | ||
|
||
### File is not reachable, and a different path is used | ||
`req~logic.externalfiles.file-transfer.not-reachable-different-path~1` | ||
When a linked file is not reachable from the target context, and the relative path differs between source and target entries, the file must be copied and the directory structure must be created to preserve the relative link. | ||
|
||
Needs: impl | ||
|
||
<!-- markdownlint-disable-file MD022 --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.