-
Notifications
You must be signed in to change notification settings - Fork 33
Clone filter #582
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
Clone filter #582
Conversation
Codecov Report
@@ Coverage Diff @@
## master #582 +/- ##
==========================================
+ Coverage 84.60% 85.27% +0.66%
==========================================
Files 49 50 +1
Lines 2813 2933 +120
Branches 550 577 +27
==========================================
+ Hits 2380 2501 +121
Misses 332 332
+ Partials 101 100 -1
Continue to review full report at Codecov.
|
|
Any preferences on the command line interface? 0123 |
OcrdMetsFilter: support regexes like OcrdMets.find_files does OcrdMetsFilter: __str__ and test for no-arg call OcrdMetsFilter: support mimetype, fileGrp, pageId, ID OcrdMetsFilter: support lowercase synonyms OcrdMetsFilter: more robust kwargs, regex matching OcrdMetsFilter: more synonyms
ocrd workspace clone: support inclusion/exclusion in download by fileGrp, mimetype ocrd workspace clone: Simplify filter logic, allow empty dict
I fail to see the difference between 1 and 3. But I would prefer the What about Also, I think it would be better to use the same identifiers as the other workspace CLI commands:
|
|
The relevant part is filtering by file group, which has now been impemented in #1139 in a simpler way than the more generic way proposed here. Since this is only targeting file groups and |
OcrdMetsFilterinocrd_modelsthat represents restrictions on files (include/exclude by fileGrp, mimetype currently)ocrd workspace clonesupports--fileGrp-include--fileGrp-exclude--mimetype-include--mimetype-excludeProposed by @bertsky in #506
This is a very rushed implementation because we need this feature now.,Implementation has been improved now.