feat(commands): Add convenient names for read-data-subset n/m#328
Merged
feat(commands): Add convenient names for read-data-subset n/m#328
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files
|
simonsan
approved these changes
Oct 14, 2024
Merged
github-merge-queue bot
pushed a commit
that referenced
this pull request
Oct 24, 2024
## 🤖 New release * `rustic_backend`: 0.4.1 -> 0.4.2 (✓ API compatible changes) * `rustic_core`: 0.5.3 -> 0.5.4 (✓ API compatible changes) <details><summary><i><b>Changelog</b></i></summary><p> ## `rustic_backend` <blockquote> ## [0.4.2](rustic_backend-v0.4.1...rustic_backend-v0.4.2) - 2024-10-24 ### Fixed - fix opendal paths on windows ([#340](#340)) </blockquote> ## `rustic_core` <blockquote> ## [0.5.4](rustic_core-v0.5.3...rustic_core-v0.5.4) - 2024-10-24 ### Added - *(commands)* Add convenient names for read-data-subset n/m ([#328](#328)) ### Fixed - OpenFile::read_at no longer errors on invalid offset or length ([#331](#331)) ### Other - *(deps)* update actions ([#338](#338)) </blockquote> </p></details> --- This PR was generated with [release-plz](https://github.com/MarcoIeni/release-plz/). Co-authored-by: rustic-release-plz[bot] <182542030+rustic-release-plz[bot]@users.noreply.github.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR adds convenience names for the
-read-data-subset=n/moption which allow for more easy regular check runs which cover the whole repository data over a given period.E.g. it allows to daily run
check --read-data --read-data-subset=daily/monthwhich covers the repository once run at every day of any month. Before, this requirement needed scripting to setnto the number of the current day within the month andmto the total count of days in the current month.For
n, it is now allowed to usehourlydailyweeklymonthlyyearlywhich is replaced by an index corresponding to the date/time the
checkcommand is called.For
m, it is now allowed to usedayweekmonthyearwhich is depending on
nreplaced by the total count of hours/days/weeks/months within the current entity. Moreovermonth_hours,month_days,year_hours,year_dayswhich work independent fromn.