Repository navigation
fix(import): follow-ups to the destination and date checks - #397
Merged
Merged
Conversation
…lded title Of headings whose titles differ only in case Things takes the lowest uuid (db.HeadingTarget), so a to-do under the other twin is no longer taken for the one add or import sent.
…Things rejects too
…ts own destination
Hold a to-do sent to a heading the payload creates to any heading, judge a completion-date only once the row has a stopDate and with a second's slack, give a heading-id's project the same notes as a list-id's, and drop the reopen note for an item the payload closes, which leaves the project closed (measured). Warn about a nested to-do's ignored destination only for the four measured attributes in a created project, share one check of which verdicts fail the import, and tell agents not to import a completion-date-dropped item again.
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.
Follow-ups to #391 and #394, one commit each.
What I measured in Things 3
creation-dateorcompletion-dateon a heading or a checklist item makes Things reject the whole payload ("There is a problem with the provided JSON."), the same as on a to-do or project.itemsof a project the payload creates goes in that project, under the heading before it, whateverlist,list-id,heading-idorheadingit also gives.completion-dateas its stop date, to the fraction of a second. An open item'scompletion-dateis ignored.Changes
importprints the same notes asaddwhen a list or area title is shared, or a project is closed or in the Trash, once per list or area.completion-date-dropped. It keeps its uuid, and the message says not to import it again.db.HeadingTarget(lowest uuid among case-twins), foraddandimport. Before, a to-do under the other twin was confirmed.importwarns when a to-do in a created project'sitemsgives a destination that Things ignores.I did not dedupe the list lookup and warnings that
addandimportshare (item 2 of the brief). Import resolves ids and titles differently (list-idversuslist, payload-created and renamed projects, headings created in the payload, per-item paths and caching), so one shared function would need most of those as parameters, which isn't clean.