-
Notifications
You must be signed in to change notification settings - Fork 2
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
DEV-1373 make catalog indexing date independent #52
Conversation
- Add `CICTL::Journal` class for writing dated files to a predefined location to record Zephir files indexed. - Add `journal_directory` to `Services` with `ENV`-overridable default location for journal files. - Add `cictl continue` command that calls `cictl all` or `cictl since` depending on presence or absence of relevant jourmals.
…fied by Dependabot
- To availability_map_ht.rb add `orphcand`, `icus`, `supp`. - To availability_map_ht_intl.rb add the above plus `ic-world`, `und-world`, and `pd-pvt`. - Re-map `umall` to "search only" for consistency with other HT code although it is no longer used. - Re-order map entries by attribute id where possible, add comments, and where possible prefer strings over regexes. - Add tests.
…y) by changing single to double quotes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The journal logic all makes sense to me. The tests could perhaps be made a little bit easier to read as described in the comment.
The translation maps are a little frustrating to look at since I wish we didn't have that information duplicated in so many places... That said, if we're touching the availability maps I think it's worth considering if we can make some small improvements now -- specifically if we can remove a couple of them that may not be used, and if we can just spell out the rights codes rather than using regexes (and thereby avoid adding a test for the availability map).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This all seems good to me. It may be worthwhile thinking at some point about how to extract some of the common functionality here and in our other ruby projects (processed file tracking, temp dirs for tests), but I don't have a clear enough sense of how to do that to suggest a specific approach right now.
CICTL::Journal
class for writing dated files to a predefined location to record Zephir files indexed.journal_directory
toServices
withENV
-overridable (ENV["JOURNAL_DIRECTORY"]
) default location for such files.cictl index
commands automatically write journals on completion.cictl continue
command that callscictl all
orcictl since
depending on presence or absence of relevant jourmals.babel
apps andhathifiles
allow/deny criteria. Full suite of tests added (see the particulars in the commit message).standardrb
no-go area (lib/translation_maps
) by mass-changing single quotes to double (standardrb --fix
changed one or two other minor formatting issues).Requests of the Reviewer
Journal
class and its application. Fortunately the newcictl continue
functionality mostly just builds on what is there already.availability_map_*
rewrites -- is this an improvement, and is there anything to be done to improve on it?