ENH: Preserve links in added pages also when links come from merged-in pages - #3400
ENH: Preserve links in added pages also when links come from merged-in pages#3400larsga wants to merge 1 commit into
Conversation
90563bc to
016e81f
Compare
75cb5ad to
956e3fd
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3400 +/- ##
==========================================
+ Coverage 97.70% 97.80% +0.10%
==========================================
Files 55 55
Lines 10410 10526 +116
Branches 1928 1965 +37
==========================================
+ Hits 10171 10295 +124
+ Misses 133 128 -5
+ Partials 106 103 -3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This is an unexpected side effect of these changes and as we know that it decreases performance, I cannot merge this PR safely without addressing the speed issues - ideally as a separate PR. |
2c388a3 to
eba0fee
Compare
|
Now that PR #3442 has been merged, and I've fixed the issue you found, I guess this one might be ready to merge as well? |
stefan6419846
left a comment
There was a problem hiding this comment.
Thanks for the updates. I have left some remarks where I see further changes to consider.
11fb5d3 to
ecc1d1c
Compare
|
This should be ready for review now. |
stefan6419846
left a comment
There was a problem hiding this comment.
Thanks for the updates.
Besides the inline comments: The modifications to pypdf/generic/__init__.py and NamedReferenceLink.__init__ breaks backwards compatibility. As they have been exposed as public API, we unfortunately need to keep this backwards-compatible with a proper deprecation period and cannot simply remove them. Please indicate if you need help with this, especially with the __init__.py part.
|
|
||
|
|
||
| @pytest.mark.enable_socket | ||
| def test_copy_to_writer(): |
There was a problem hiding this comment.
Could we please add an assertion here?
@stefan6419846 Yes, please. I don't know the deprecation process for PyPDF, so I'm at a loss for how to proceed here. |
ecc1d1c to
a9da8f6
Compare
I will try to look into this as fast as possible, but for personal reasons, it might take a few weeks. |
This is the last part of the implementation of issue 3290.
It causes the tests to be slow because
named_destinationsis not cached, but I'm leaving that as a separate task.