simonw / simonw/datasette

Interface should show same JSON shape options for custom SQL queries

Open
#369 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

At the moment the page returning a custom SQL query shows the JSON and CSV APIs, but not the multiple JSON shapes. However, adding the _shape parameter to the JSON API URL manually still works, so perhaps there should be consistency in the interface by having the same "Advanced Export" box for custom SQL queries.

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 at the custom SQL query results page and compare its current JSON/CSV links with the regular query page's Advanced Export box. Verify that the interface exposes the same JSON shape choices for custom SQL queries and that the existing _shape URL behavior still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, sql
Domain
databases, frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.