-
Notifications
You must be signed in to change notification settings - Fork 33
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
Improve WacArcInputFormat.java test coverage #80
Comments
Partially resolved with: 23d0cb4 |
That's what I got. If you want to proceed with the refactoring, go for it. |
Looks like they can go. I'll check these today and see what blows up. I'll also change the "generic" formats to just plain archives. |
The only risk here is that, if all works out, we would remove .arc and .warc specific loading functions from the code without a deprecation warning. This is already technically the case with the changes to RecordLoader in 0.11 anyway, but still. Just a head's up @lintool @ianmilligan1 ! |
We don't have a 1.0.0 release, so we don't have to do it. But, I think a deprecation cycle would be helpful. Is this something you want to take on? |
Sure thing! I meant to assign this to myself earlier. Draft plan as follows:
|
I go back and forth on the deprecation cycle. My sense is that if a user if engaged enough to see a deprecation cycle – i.e. they're checking out a new release – they've noticed the change in all our docs, etc. that we've made since February 2016 when this new functionality came in. |
I think I agree here. It would be good to establish deprecation procedures generally in future, but we may be able to get away with no deprecation in this particular case. For example, do you want to deprecate WriteGDF in future? |
In Islandora and Fedora, we would do one release cycle. So, we'd identify something that need to be deprecated, and wrap it in a deprecation warning. Then release, and it would be in the release notes. Then after that we'd remove it. |
A bit dated, but relevant: https://docs.oracle.com/javase/1.5.0/docs/guide/javadoc/deprecation/deprecation.html |
Okay - so two alternatives.
There would also be a number of "Generic_._" items deprecated, none of them for front-end usage. If we kept deep documentation on the library I would see the deprecation warnings as more important, but I'm good with either option. If we go with option #2, I will take responsibility for adding the deprecation comments to the code for 1.0. The only two user-relevant deprecations (imho) are RecordLoader.loadArcRecord() and RecordLoader.loadWarcRecord() |
OK thanks all – my own vote is to go with option 2 then, it'd be good to get in the habit of doing this. And yes, my gut says maybe we should deprecate |
What's 1.0 and 1.1? Our current release is 0.11.0, and we use semantic versioning. |
It appears that 5e99d63 already removed the associated commands. I also take note the comment by @lintool here as related to java files: #102 (comment) . I pushed a new branch "LoaderRefactor." It has been tested and works for a minimum of 4 scripts in the documentation. |
Partially resolved with: 47b5d26 |
Code deprecated and will be removed in a later release. Closing. |
Fully resolved with: 8fb766e |
WacArcInputFormat.java
test coverage can be improved.The text was updated successfully, but these errors were encountered: