-
-
Notifications
You must be signed in to change notification settings - Fork 700
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
view_actions() hook, to avoid showing table actions on view pages that don't work #2297
Comments
Some options to add to Datasette:
|
Or... I could add a I think this may be the best solution. It will very slightly break any existing plugins that expect to work on the views at the moment, but that's a good change to ship prior to 1.0 - plus I can't think of anything that will really get hurt by this. Best I can think of is that |
This is wrong: https://latest.datasette.io/fixtures/simple_view Should say "View actions", not "Table actions". |
... which is weird, because in the tests it seems to have the correct label. |
... no, it's working. I hit the demo page before the demo had finished deploying. Now https://latest.datasette.io/fixtures/simple_view looks like this: |
Spotted this on Datasette Cloud:
All those plugins forgot to check if the table was actually a view, and break if you attempt to use them!
Need something in Datasette Core to help plugins not make that mistake.
The text was updated successfully, but these errors were encountered: