home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

6 rows where issue = 710506708 sorted by updated_at descending

✖
✖

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 1

  • simonw 6

issue 1

  • Rendering glitch with column headings on mobile · 6 ✖

author_association 1

  • OWNER 6
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
700320480 https://github.com/simonw/datasette/issues/978#issuecomment-700320480 https://api.github.com/repos/simonw/datasette/issues/978 MDEyOklzc3VlQ29tbWVudDcwMDMyMDQ4MA== simonw 9599 2020-09-28T22:39:18Z 2020-09-28T22:39:18Z OWNER

python def escape_css_string(s): return _css_re.sub(lambda m: "\\" + ("{:X}".format(ord(m.group())).zfill(6)), s) That fixes it:

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Rendering glitch with column headings on mobile 710506708  
700319656 https://github.com/simonw/datasette/issues/978#issuecomment-700319656 https://api.github.com/repos/simonw/datasette/issues/978 MDEyOklzc3VlQ29tbWVudDcwMDMxOTY1Ng== simonw 9599 2020-09-28T22:36:44Z 2020-09-28T22:36:44Z OWNER

Weirdly even those leading 0s doesn't fix it:

But... padding to six characters does! See https://www.w3.org/International/questions/qa-escapes

In [32]: print('\\' + "{:X}".format(ord('"')).zfill(6)) \000022

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Rendering glitch with column headings on mobile 710506708  
700317760 https://github.com/simonw/datasette/issues/978#issuecomment-700317760 https://api.github.com/repos/simonw/datasette/issues/978 MDEyOklzc3VlQ29tbWVudDcwMDMxNzc2MA== simonw 9599 2020-09-28T22:30:25Z 2020-09-28T22:30:25Z OWNER

python print('\\' + "{:X}".format(ord('"')).zfill(4)) \0022

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Rendering glitch with column headings on mobile 710506708  
700316511 https://github.com/simonw/datasette/issues/978#issuecomment-700316511 https://api.github.com/repos/simonw/datasette/issues/978 MDEyOklzc3VlQ29tbWVudDcwMDMxNjUxMQ== simonw 9599 2020-09-28T22:26:38Z 2020-09-28T22:26:38Z OWNER

The fix may be to use \0022 instead of \22.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Rendering glitch with column headings on mobile 710506708  
700314509 https://github.com/simonw/datasette/issues/978#issuecomment-700314509 https://api.github.com/repos/simonw/datasette/issues/978 MDEyOklzc3VlQ29tbWVudDcwMDMxNDUwOQ== simonw 9599 2020-09-28T22:20:51Z 2020-09-28T22:20:51Z OWNER

Here's the HTML for the broken example above: ```html

<style> @media only screen and (max-width: 576px) { .rows-and-columns td:nth-of-type(1):before { content: "dateutil_parse(\2210 october 2020 3pm\22)"; } .rows-and-columns td:nth-of-type(2):before { content: "dateutil_easter(\222020\22)"; } .rows-and-columns td:nth-of-type(3):before { content: "dateutil_parse_fuzzy(\22This is due 10 september\22)"; } .rows-and-columns td:nth-of-type(4):before { content: "dateutil_parse(\221/2/2020\22)"; } .rows-and-columns td:nth-of-type(5):before { content: "dateutil_parse(\222020-03-04\22)"; } .rows-and-columns td:nth-of-type(6):before { content: "dateutil_parse_dayfirst(\222020-03-04\22)"; } .rows-and-columns td:nth-of-type(7):before { content: "dateutil_easter(2020)"; } } </style>

``` The glitch affects the ones where the quote is followed by digits.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Rendering glitch with column headings on mobile 710506708  
700313836 https://github.com/simonw/datasette/issues/978#issuecomment-700313836 https://api.github.com/repos/simonw/datasette/issues/978 MDEyOklzc3VlQ29tbWVudDcwMDMxMzgzNg== simonw 9599 2020-09-28T22:19:05Z 2020-09-28T22:19:05Z OWNER

Looks like a bug in this function: https://github.com/simonw/datasette/blob/1f021c37110fc9019b0ef70062c28c335e568ae2/datasette/utils/init.py#L269-L274

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Rendering glitch with column headings on mobile 710506708  

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.712ms · About: github-to-sqlite
  • Sort ascending
  • Sort descending
  • Facet by this
  • Hide this column
  • Show all columns
  • Show not-blank rows