-
-
Notifications
You must be signed in to change notification settings - Fork 232
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
docs fix: dates in Recurring Tasks examples #2601
base: main
Are you sure you want to change the base?
Conversation
Hi @st-- Thank you. Could you describe the changes you actually made please? What was wrong with the old dates and so how did you chose the new ones? |
In some of the examples, the years weren't consistent throughout the example. Maybe this was due to features being added later? -- [ ] take out the trash 🔁 every Sunday ➕ 2023-03-10 📅 2021-05-02
-- [x] take out the trash 🔁 every Sunday 📅 2021-04-25 ✅ 2023-03-10
+- [ ] take out the trash 🔁 every Sunday ➕ 2021-04-24 📅 2021-05-02
+- [x] take out the trash 🔁 every Sunday 📅 2021-04-25 ✅ 2021-04-24 Previously, it jumped to 2023 for the "marked complete"/"created" date even though the "due date" was living in 2021 |
9e156fd#diff-7180dda3f3ee0ae61f9611e70893a879113dfb5d175cc4cce691ecc3b940ced4 was committed on 2023-03-10 and adds the following example: - [ ] take out the trash 🔁 every Sunday ➕ 2023-03-10 📅 2021-05-02
- [x] take out the trash 🔁 every Sunday 📅 2021-04-25 ✅ 2023-03-10 which uses the commit date for the newly added functionality (completed date of previous occurrence -> created date of new occurrence) but kept the due date from before, which I found rather confusing. So I've just "backdated" the newly added dates in examples. |
Super. Thanks for the replies. |
I think the years were not consistent because it was trying to make the point that however late you complete a task that does not have |
I don't think so - the part where the year had jumped to 2023 only addresses whether a creation date is added when completing a recurrence. |
- [ ] take out the trash 🔁 every Sunday ➕ 2023-03-10 📅 2021-05-02 | ||
- [x] take out the trash 🔁 every Sunday 📅 2021-04-25 ✅ 2023-03-10 | ||
- [ ] take out the trash 🔁 every Sunday ➕ 2021-04-24 📅 2021-05-02 | ||
- [x] take out the trash 🔁 every Sunday 📅 2021-04-25 ✅ 2021-04-24 |
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 is the documentation of the "addition of created dates" feature, so I believe it should be consistent with the previous example (lines 33-34) that has completion marked in 2021
- [ ] sweep the floors 🔁 every week ⏳ 2021-02-13 | ||
- [x] sweep the floors 🔁 every week ⏳ 2021-02-06 ✅ 2022-02-13 | ||
- [ ] sweep the floors 🔁 every week ⏳ 2022-02-13 | ||
- [x] sweep the floors 🔁 every week ⏳ 2022-02-06 ✅ 2022-02-13 |
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.
As noted by the surrounding text, the completion should be one week after the originally scheduled date (not one week and a year), and the scheduled date of the new task should be the same as the completed date of the previous occurrence
- [x] sweep the floors 🔁 every week when done ⏳ 2021-02-06 ✅ 2022-02-13 | ||
- [x] sweep the floors 🔁 every week when done ⏳ 2022-02-06 ✅ 2022-02-13 |
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.
Same as previous change; here the difference of including the when done
is that the next scheduled date is February 20 (one week after completed date) rather than February 13 (one week after original scheduled date), but the year should still be the same.
Setting to draft status any PRs which are not currently mergable, but will be useful in future. I want to write some tests to confirm these changes, and ideally machine-generate the recurring tasks examples. |
Description
I've changed some of the dates in the examples to make them self-consistent.
I've also added the "assumed date" in one example to make it more immediately understandable.
Motivation and Context
It took me a bit longer to figure out how the recurrence relations work because the examples were a bit confusing to me.
Types of changes
Changes visible to users:
fix
- non-breaking change which fixes an issue)feat
- non-breaking change which adds functionality)feat!!
orfix!!
- fix or feature that would cause existing functionality to not work as expected)docs
- improvements to any documentation content for users)vault
- improvements to the Tasks-Demo sample vault)contrib
- any improvements to documentation content for contributors - see Contributing to Tasks)Internal changes:
refactor
- non-breaking change which only improves the design or structure of existing code, and making no changes to its external behaviour)test
- additions and improvements to unit tests and the smoke tests)chore
- examples include GitHub Actions, issue templates)Checklist
yarn run lint
.Terms