We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Because of https://github.com/simonw/datasette/blob/main/datasette/views/index.py#L63, the tables dict built does not include invisible tables; however, if https://github.com/simonw/datasette/blob/main/datasette/views/index.py#L80 is reached (because table_counts was not successfully initialized, e.g. due to a very large database) then as db.get_all_foreign_keys() returns ALL tables, a KeyError will be raised.
tables
This error can be recreated with the fixtures.db if any table is hidden, e.g. by adding something like "foreign_key_references": { "allow": {} } to fixtures-metadata.json and deleting or not table_counts from https://github.com/simonw/datasette/blob/main/datasette/views/index.py#L77.
"foreign_key_references": { "allow": {} }
or not table_counts
I'm not sure how to fix this error; perhaps by testing if the table is in the aforementions tables dict.
The text was updated successfully, but these errors were encountered:
Possible fix for simonw#1305
ab2f2b1
Merge pull request #1 from slygent/slygent-patch-1
0e09b2a
115332c
Avoid error sorting by relationships if related tables are not allowed
0f41db1
Refs #1306
80d8b0e
Applied Black, refs #1305
d5d387a
Release 0.57
58746d3
Refs #263, #615, #619, #1238, #1257, #1305, #1308, #1320, #1332, #1337, #1349, #1353, #1359, #1360
No branches or pull requests
Because of https://github.com/simonw/datasette/blob/main/datasette/views/index.py#L63, the
tables
dict built does not include invisible tables; however, if https://github.com/simonw/datasette/blob/main/datasette/views/index.py#L80 is reached (because table_counts was not successfully initialized, e.g. due to a very large database) then as db.get_all_foreign_keys() returns ALL tables, a KeyError will be raised.This error can be recreated with the fixtures.db if any table is hidden, e.g. by adding something like
"foreign_key_references": { "allow": {} }
to fixtures-metadata.json and deletingor not table_counts
from https://github.com/simonw/datasette/blob/main/datasette/views/index.py#L77.I'm not sure how to fix this error; perhaps by testing if the table is in the aforementions
tables
dict.The text was updated successfully, but these errors were encountered: