-
-
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
Raise an exception if a "plugins" block exists in metadata.json #2190
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #2190 +/- ##
==========================================
- Coverage 92.69% 92.67% -0.03%
==========================================
Files 40 40
Lines 6039 6044 +5
==========================================
+ Hits 5598 5601 +3
- Misses 441 443 +2
☔ View full report in Codecov by Sentry. |
TODO: add similar checks for permissions/allow/canned queries |
This looks good and works well. The error from this currently looks like:
With wrapping:
I think we should link directly to documentation that tells people how to perform this upgrade. |
It would be nice if we could catch that and turn that into a less intimidating Click exception too. |
I'm going to land this and open a new issue for the upgrade instructions. |
refs #2183 #2093
From this comment in #2183: If a
"plugins"
block appears inmetadata.json
, it means that a user hasn't migrated over their plugin configuration frommetadata.json
todatasette.yaml
, which is a breaking change in Datasette 1.0.This PR will ensure that an error is raised whenever that happens.
📚 Documentation preview 📚: https://datasette--2190.org.readthedocs.build/en/2190/