Skip to content
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

Update WebLink to allow missing title and description #153

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

jkitching
Copy link
Contributor

@jkitching jkitching commented Dec 11, 2023

Google Assistant's note and list system has been moved to Google Keep:
https://support.google.com/keep/?p=migrated_from_assistant

These items are annotated with a webLink that looks like this:

  {
    "webLink": {
      "kind": "notes#webLink",
      "url": "https://support.google.com/keep/?p=migrated_from_assistant",
      "provenanceUrl": "https://support.google.com/keep/?p=migrated_from_assistant",
      "hasThumbnailUrl": true
    }
  }

Previously, it was assumed that "name" and "description" are guaranteed to be supplied in a webLink annotation. However, this is no longer the case. This commit updates the WebLink class accordingly, and adds a test case.

Fixes #152.

Google Assistant's note and list system has been moved to Google Keep:
  https://support.google.com/keep/?p=migrated_from_assistant

These items are annotated with a webLink that looks like this:
  {
    "webLink": {
      "kind": "notes#webLink",
      "url": "https://support.google.com/keep/?p=migrated_from_assistant",
      "provenanceUrl": "https://support.google.com/keep/?p=migrated_from_assistant",
      "hasThumbnailUrl": true
    }
  }

Previously, it was assumed that "name" and "description" are
guaranteed to be supplied in a webLink annotation.  However,
this is no longer the case.  This commit updates the WebLink
class accordingly, and adds a test case.
@kiwiz kiwiz merged commit f108e54 into kiwiz:main Dec 12, 2023
1 check passed
@kiwiz
Copy link
Owner

kiwiz commented Dec 12, 2023

Thanks! Uploaded 0.15.1.

@jkitching
Copy link
Contributor Author

jkitching commented Dec 12, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrated Assistant Notes raise KeyError: 'title' on resume
2 participants