home / github

Menu
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

4 rows where issue = 1342430983

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: 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
1218849845 https://github.com/simonw/datasette/issues/1786#issuecomment-1218849845 https://api.github.com/repos/simonw/datasette/issues/1786 IC_kwDOBm6k_c5Ipiw1 simonw 9599 2022-08-18T01:16:02Z 2022-08-18T01:16:02Z OWNER Would be neat if it could adjust the non-JS height of the test area to fit the query displayed when the page is loaded. {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} Adjust height of textarea for no JS case 1342430983  
1219657981 https://github.com/simonw/datasette/issues/1786#issuecomment-1219657981 https://api.github.com/repos/simonw/datasette/issues/1786 IC_kwDOBm6k_c5IsoD9 simonw 9599 2022-08-18T15:50:53Z 2022-08-18T15:50:53Z OWNER I went with number of lines + 2 ems in height: <img width="482" alt="image" src="https://user-images.githubusercontent.com/9599/185438949-c8b8bb7f-413d-4557-ab81-c318d1beabd5.png"> It gets confused by wrapping text but I think that's OK: <img width="495" alt="image" src="https://user-images.githubusercontent.com/9599/185439072-35e2a2af-d11d-44ee-afeb-095d0d2d928f.png"> {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} Adjust height of textarea for no JS case 1342430983  
1219683223 https://github.com/simonw/datasette/issues/1786#issuecomment-1219683223 https://api.github.com/repos/simonw/datasette/issues/1786 IC_kwDOBm6k_c5IsuOX simonw 9599 2022-08-18T16:15:13Z 2022-08-18T16:15:13Z OWNER Hard to demo this because the JavaScript kicks in, but if you view source on this page: https://latest.datasette.io/_memory?sql=select+id%2C+name%2C+ingredients%2C+%28%0D%0A++select+json_group_array%28value%29+from+json_each%28ingredients%29%0D%0A++where+value+in+%28select+value+from+json_each%28%3Ap0%29%29%0D%0A%29+as+matching_ingredients%0D%0Afrom+recipes%0D%0Awhere+json_array_length%28matching_ingredients%29+%3E+0%0D%0Aorder+by+json_array_length%28matching_ingredients%29+desc If you view source on that page: ```html <p><textarea id="sql-editor" name="sql" style="height: 9em" >select id, name, ingredients, ( select json_group_array(value) from json_each(ingredients) where value in (select value from json_each(:p0)) ) as matching_ingredients from recipes where json_array_length(matching_ingredients) &gt; 0 order by json_array_length(matching_ingredients) desc</textarea></p> ``` {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} Adjust height of textarea for no JS case 1342430983  
1294116493 https://github.com/simonw/datasette/issues/1786#issuecomment-1294116493 https://api.github.com/repos/simonw/datasette/issues/1786 IC_kwDOBm6k_c5NIqaN simonw 9599 2022-10-27T21:50:12Z 2022-10-27T21:50:12Z OWNER Demo in Datasette Lite: https://lite.datasette.io/#/fixtures?sql=select%0A++pk1%2C%0A++pk2%2C%0A++content%2C%0A++sortable%2C%0A++sortable_with_nulls%2C%0A++sortable_with_nulls_2%2C%0A++text%0Afrom%0A++sortable%0Aorder+by%0A++pk1%2C%0A++pk2%0Alimit%0A++101 {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} Adjust height of textarea for no JS case 1342430983  

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 17.698ms · About: simonw/datasette-graphql