home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 770598024

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association pull_request body repo type active_lock_reason performed_via_github_app reactions draft state_reason
770598024 MDU6SXNzdWU3NzA1OTgwMjQ= 1152 Efficiently calculate list of databases/tables a user can view 9599 open 0     12 2020-12-18T06:13:01Z 2021-12-27T23:04:31Z   OWNER  

The homepage currently performs a massive flurry of permission checks - one for each, database, table and view: https://github.com/simonw/datasette/blob/0.53/datasette/views/index.py#L21-L75

A paginated version of this is a little daunting as the permission checks would have to be carried out in every single table just to calculate the count that will be paginated.

Originally posted by @simonw in https://github.com/simonw/datasette/issues/1150#issuecomment-747864831

107914493 issue    
{
    "url": "https://api.github.com/repos/simonw/datasette/issues/1152/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
   

Links from other tables

  • 3 rows from issues_id in issues_labels
  • 12 rows from issue in issue_comments
Powered by Datasette · Queries took 1.57ms · About: github-to-sqlite