Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Row page JSON should use new ?_extra= format #2050

Open
simonw opened this issue Mar 31, 2023 · 1 comment
Open

Row page JSON should use new ?_extra= format #2050

simonw opened this issue Mar 31, 2023 · 1 comment

Comments

@simonw
Copy link
Owner

simonw commented Mar 31, 2023

@simonw simonw added this to the Datasette 1.0a3 milestone Mar 31, 2023
@simonw simonw changed the title Row pgae JSON should use new ?_extra= format Row page JSON should use new ?_extra= format Mar 31, 2023
@simonw
Copy link
Owner Author

simonw commented Mar 31, 2023

Some of the extras from the table view make sense here. A few custom ones make sense too - including this already existing but undocumented one:

if "foreign_key_tables" in (request.args.get("_extras") or "").split(","):
data["foreign_key_tables"] = await self.foreign_key_tables(
database, table, pk_values
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant