home / github / issue_comments

Menu
  • GraphQL API

issue_comments: 973700322

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions issue performed_via_github_app
https://github.com/simonw/datasette/issues/1518#issuecomment-973700322 https://api.github.com/repos/simonw/datasette/issues/1518 973700322 IC_kwDOBm6k_c46CXzi 9599 2021-11-19T03:30:30Z 2021-11-19T03:30:30Z OWNER Right now the HTML version gets to cheat - it passes through objects that are not JSON serializable, including custom functions that can then be called by Jinja. I'm interested in maybe removing this cheating - if the HTML version could only request JSON-serializable extras those could be exposed in the API as well. It would also help cleanup the kind-of-nasty pattern I use in the current `BaseView` where everything returns both a bunch of JSON-serializable data AND an awaitable function that then gets to add extra things to the HTML context. {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} 1058072543  
Powered by Datasette · Queries took 0.763ms