home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

4 rows where issue = 277589569 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 3
  • wsxiaoys 1

author_association 2

  • OWNER 3
  • NONE 1

issue 1

  • A primary key column that has foreign key restriction associated won't rendering label column · 4 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
347715452 https://github.com/simonw/datasette/issues/155#issuecomment-347715452 https://api.github.com/repos/simonw/datasette/issues/155 MDEyOklzc3VlQ29tbWVudDM0NzcxNTQ1Mg== simonw 9599 2017-11-29T00:52:30Z 2017-11-29T00:52:30Z OWNER

Interestingly, it almost does the right thing on the individual row page: https://bug-155-dkcqckhgki.now.sh/bug-155-9a7bb68/lhs/1

The symbol has been expanded, but there's a rogue '1' that shouldn't be there at all - I think that's bug #152

The table view itself is definitely doing the wrong thing: https://bug-155-dkcqckhgki.now.sh/bug-155-9a7bb68/lhs

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
A primary key column that has foreign key restriction associated won't rendering label column 277589569  
347714471 https://github.com/simonw/datasette/issues/155#issuecomment-347714471 https://api.github.com/repos/simonw/datasette/issues/155 MDEyOklzc3VlQ29tbWVudDM0NzcxNDQ3MQ== simonw 9599 2017-11-29T00:47:21Z 2017-11-29T00:47:21Z OWNER

Thanks!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
A primary key column that has foreign key restriction associated won't rendering label column 277589569  
347714314 https://github.com/simonw/datasette/issues/155#issuecomment-347714314 https://api.github.com/repos/simonw/datasette/issues/155 MDEyOklzc3VlQ29tbWVudDM0NzcxNDMxNA== wsxiaoys 388154 2017-11-29T00:46:25Z 2017-11-29T00:46:25Z NONE

``` CREATE TABLE rhs ( id INTEGER PRIMARY KEY, name TEXT );

CREATE TABLE lhs ( symbol INTEGER PRIMARY KEY, FOREIGN KEY (symbol) REFERENCES rhs(id) );

INSERT INTO rhs VALUES (1, "foo"); INSERT INTO rhs VALUES (2, "bar"); INSERT INTO lhs VALUES (1); INSERT INTO lhs VALUES (2); ```

It's expected that in lhs's view, foo / bar should be displayed.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
A primary key column that has foreign key restriction associated won't rendering label column 277589569  
347713453 https://github.com/simonw/datasette/issues/155#issuecomment-347713453 https://api.github.com/repos/simonw/datasette/issues/155 MDEyOklzc3VlQ29tbWVudDM0NzcxMzQ1Mw== simonw 9599 2017-11-29T00:41:30Z 2017-11-29T00:41:30Z OWNER

Could you provide the SQL to create a reproducible test case (both CREATE TABLE and INSERT statements)?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
A primary key column that has foreign key restriction associated won't rendering label column 277589569  

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