home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 439836586

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
439836586 MDExOlB1bGxSZXF1ZXN0Mjc1NTU4NjEy 445 Extract facet code out into a new plugin hook, closes #427 9599 closed 0     0 2019-05-03T00:02:41Z 2019-05-03T18:17:18Z 2019-05-03T00:11:27Z OWNER simonw/datasette/pulls/445

Datasette previously only supported one type of faceting: exact column value counting.

With this change, faceting logic is extracted out into one or more separate classes which can implement other patterns of faceting - this is discussed in #427, but potential upcoming facet types include facet-by-date, facet-by-JSON-array, facet-by-many-2-many and more.

A new plugin hook, register_facet_classes, can be used by plugins to add in additional facet classes.

Each class must implement two methods: suggest(), which scans columns in the table to decide if they might be worth suggesting for faceting, and facet_results(), which executes the facet operation and returns results ready to be displayed in the UI.

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

Links from other tables

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