home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

7 rows where issue = 723838331 sorted by updated_at descending

✖
✖

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: created_at (date), updated_at (date)

user 2

  • simonw 6
  • jarib 1

author_association 2

  • MEMBER 6
  • NONE 1

issue 1

  • export.xml file name varies with different language settings · 7 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
711083698 https://github.com/dogsheep/healthkit-to-sqlite/issues/11#issuecomment-711083698 https://api.github.com/repos/dogsheep/healthkit-to-sqlite/issues/11 MDEyOklzc3VlQ29tbWVudDcxMTA4MzY5OA== jarib 572 2020-10-17T21:39:15Z 2020-10-17T21:39:15Z NONE

Nice! Works perfectly. Thanks for the quick response and great tooling in general.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
export.xml file name varies with different language settings 723838331  
711081703 https://github.com/dogsheep/healthkit-to-sqlite/issues/11#issuecomment-711081703 https://api.github.com/repos/dogsheep/healthkit-to-sqlite/issues/11 MDEyOklzc3VlQ29tbWVudDcxMTA4MTcwMw== simonw 9599 2020-10-17T21:18:35Z 2020-10-17T21:18:35Z MEMBER

OK, if you upgrade to the just-released 1.0 this should work (it worked against my Spanish export).

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
export.xml file name varies with different language settings 723838331  
711079760 https://github.com/dogsheep/healthkit-to-sqlite/issues/11#issuecomment-711079760 https://api.github.com/repos/dogsheep/healthkit-to-sqlite/issues/11 MDEyOklzc3VlQ29tbWVudDcxMTA3OTc2MA== simonw 9599 2020-10-17T21:00:05Z 2020-10-17T21:00:05Z MEMBER

Checking for either <!DOCTYPE HealthData or <HealthData in the first 1000 bytes should do it.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
export.xml file name varies with different language settings 723838331  
711079056 https://github.com/dogsheep/healthkit-to-sqlite/issues/11#issuecomment-711079056 https://api.github.com/repos/dogsheep/healthkit-to-sqlite/issues/11 MDEyOklzc3VlQ29tbWVudDcxMTA3OTA1Ng== simonw 9599 2020-10-17T20:53:00Z 2020-10-17T20:53:00Z MEMBER

I think the safest thing is to sniff the first few lines of the file. Those should be the same no matter the language that was used: ```xml

<!DOCTYPE HealthData [ ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
export.xml file name varies with different language settings 723838331  
711078917 https://github.com/dogsheep/healthkit-to-sqlite/issues/11#issuecomment-711078917 https://api.github.com/repos/dogsheep/healthkit-to-sqlite/issues/11 MDEyOklzc3VlQ29tbWVudDcxMTA3ODkxNw== simonw 9599 2020-10-17T20:51:55Z 2020-10-17T20:52:03Z MEMBER

I switched my phone to Spanish and ran an export - I got a file called exportar.zip. Unzipped I still got a apple_ health_export folder but the root contained: electrocardiograms/ export_cda.xml exportar.xml workout-routes/ It looks like export_cda.xml does not have a translated name, so maybe I can ignore it and look for the other .xml file in that directory.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
export.xml file name varies with different language settings 723838331  
711074306 https://github.com/dogsheep/healthkit-to-sqlite/issues/11#issuecomment-711074306 https://api.github.com/repos/dogsheep/healthkit-to-sqlite/issues/11 MDEyOklzc3VlQ29tbWVudDcxMTA3NDMwNg== simonw 9599 2020-10-17T20:16:22Z 2020-10-17T20:16:22Z MEMBER

The "first XML file in the root" solution is probably easier though!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
export.xml file name varies with different language settings 723838331  
711074031 https://github.com/dogsheep/healthkit-to-sqlite/issues/11#issuecomment-711074031 https://api.github.com/repos/dogsheep/healthkit-to-sqlite/issues/11 MDEyOklzc3VlQ29tbWVudDcxMTA3NDAzMQ== simonw 9599 2020-10-17T20:14:01Z 2020-10-17T20:14:01Z MEMBER

I'd be happy to teach the tool to look for export.xml or eksport.xml - and then expand that list to other languages.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
export.xml file name varies with different language settings 723838331  

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issue_comments] (
   [html_url] TEXT,
   [issue_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [created_at] TEXT,
   [updated_at] TEXT,
   [author_association] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
, [performed_via_github_app] TEXT);
CREATE INDEX [idx_issue_comments_issue]
                ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
                ON [issue_comments] ([user]);
Powered by Datasette · Queries took 35.697ms · About: github-to-sqlite
  • Sort ascending
  • Sort descending
  • Facet by this
  • Hide this column
  • Show all columns
  • Show not-blank rows