simonw / simonw/datasette

Basic join support for table view

Open
#613 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement feature
Dominant language
Python
Stars
11.5k
Forks
903
Avg merge
4d 17h
Merged PRs (30d)
18

Description

I think it would be possible to support basic foreign key joins on the table page.

The user could specify columns that should result in a join (from a set of suggestions similar to how facets work right now) and they could then be passed as ?_join=city_id arguments.

This feature will make a lot of sense when combined with the ability to show / hide / customize columns, see #292

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the table page's existing facet behavior and the related column customization work in #292. Define how foreign-key columns are suggested and how selecting one produces a _join argument; done should include a working basic join flow on the table page.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, sqlite
Domain
api, databases, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.