Skip to content

Harden the script against API changes. #24

@bjohas

Description

@bjohas

Given this note:

Google adds features to Tasks, but does not provide access to that information for third-party apps
The new Tasks allows a user to set a time for a task, and allows for a task to be repeated, but that information is not available via the API, so I cannot export or display the time or repeat info for a task. These features have been available in Tasks since March 2019, but as at October 2019, I am unable to export that data for my users. There is an open issue for this at https://issuetracker.google.com/issues/36759725#comment40

and given this https://github.com/Google-Tasks-Backup/tasks-backup and https://github.com/Google-Tasks-Backup/import-tasks (defunct):

Should we think about having certain test cases? I might make a gtasks list that has all the features supported by the script, and then export this list once in a while (or perhaps before every backup?), comparing against the expected results. This would guard against API changes that aren't implemented in the script (e.g., if the subtasks suddenly disappear, we know it's due to an API change.)

The above apps seek to go much further, implementing import as well. That's definitely not the intention for our script. So I'm not sure that sudden API changes pose a major risk, if we monitor?

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions