-
-
Notifications
You must be signed in to change notification settings - Fork 698
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
Table configuration settings should work in both metadata.yml and datasette.yml #2247
Comments
it looks like most (all?) of those things are still part of table metadata, e.g. datasette/datasette/database.py Lines 420 to 423 in b466749
datasette/datasette/database.py Lines 490 to 497 in b466749
etc. |
Changing this issue to be about deciding what to do with these. I'll bump it out of the 1.0a8 milestone for the moment. @asg017 did we talk about this before? |
Made a decision on this: as with plugin settings and |
Reminder to move this section of the docs to |
To be sure I'm getting all of the table metadata stuff, I tried rg table_metadata -A 15 datasette
|
And piping that through rg table_metadata -A 15 datasette | llm -m gpt-4-turbo --system \
'List all of the keys that are looked up in the table_metadata dictionary, e.g. sort and sort_desc - add a bit of a description for each one' Got a good result from that:
|
Next step: create a new Datasette method called I could even see if that method could be an Since this is a new method now might be a good time to do this - I have avoided making the existing |
It's going to be a bit weird to have |
Next step to resolve the facets part of this is for this code here to reference datasette/datasette/views/table.py Lines 1264 to 1282 in 5d21057
datasette/datasette/views/table.py Line 965 in 5d21057
Defined here in Lines 1205 to 1212 in 5d21057
Added here in April 2019: 53bf875 |
Since I ran a GitHub code search and couldn't spot any uses of it in plugins or anything that wasn't a clone of the Datasette repo: https://github.com/search?q=ds.table_metadata+-repo%3Asimonw%2Fdatasette&type=code&p=1 |
Turns out
|
I'm going to finish this in a PR so I can iterate on the last remaining tests. |
Closes #2243 * Changelog for jinja2_environment_from_request and plugin_hook_slots * track_event() in changelog * Remove Using YAML for metadata section - no longer necessary now we show YAML and JSON examples everywhere. * Configuration via the command-line section - #2252 * JavaScript plugins in release notes, refs #2052 * /-/config in changelog, refs #2254 Refs #2052, #2156, #2243, #2247, #2249, #2252, #2254
The https://docs.datasette.io/en/latest/configuration.html page should gather together the various table settings, including:
https://docs.datasette.io/en/latest/facets.html#facets-in-metadata
https://docs.datasette.io/en/latest/full_text_search.html#configuring-full-text-search-for-a-table-or-view
And a bunch of stuff from metadata (has this moved to
datasette.yaml
yet?)https://docs.datasette.io/en/latest/metadata.html#setting-a-default-sort-order
There's a full list here:
https://docs.datasette.io/en/latest/metadata.html#table-level-metadata
hidden
sort/sort_desc
size
sortable_columns
label_column
facets
fts_table
fts_pk
searchmode
The text was updated successfully, but these errors were encountered: