home / github

Menu
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

4 rows where issue = 277589569

✎ View and edit SQL

This data as json, CSV (advanced)

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

id ▼ html_url issue_url node_id user created_at updated_at author_association body reactions issue performed_via_github_app
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  
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  
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  
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 <img width="303" alt="cursor_and_bug-155__lhs" src="https://user-images.githubusercontent.com/9599/33352129-511419e4-d45c-11e7-98f3-9c1dfefa6350.png"> 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 <img width="546" alt="cursor_and_bug-155__lhs__2_rows_and_paradise_papers_tie_kushner_startup_to_russian_money_ _the_forward" src="https://user-images.githubusercontent.com/9599/33352178-8491b9a2-d45c-11e7-8d89-fedd455cfcba.png"> {"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 19.575ms · About: simonw/datasette-graphql