Skip to content

Bump datasette from 0.25 to 0.46 #1

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

Merged
merged 11 commits into from
Nov 22, 2020
Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 11, 2020

Bumps datasette from 0.25 to 0.46.

Release notes

Sourced from datasette's releases.

0.46

Warning: This release contains a security fix related to authenticated writable canned queries. If you are using this feature you should upgrade as soon as possible.

  • Security fix: CSRF tokens were incorrectly included in read-only canned query forms, which could allow them to be leaked to a sophisticated attacker. See issue 918 for details.
  • Datasette now supports GraphQL via the new datasette-graphql plugin - see GraphQL in Datasette with the new datasette-graphql plugin.
  • Principle git branch has been renamed from master to main. (#849)
  • New debugging tool: /-/allow-debug tool (demo here) helps test allow blocks against actors, as described in Defining permissions with "allow" blocks. (#908)
  • New logo for the documentation, and a new project tagline: "An open source multi-tool for exploring and publishing data".
  • Whitespace in column values is now respected on display, using white-space: pre-wrap. (#896)
  • New await request.post_body() method for accessing the raw POST body, see Request object. (#897)
  • Database file downloads now include a content-length HTTP header, enabling download progress bars. (#905)
  • File downloads now also correctly set the suggested file name using a content-disposition HTTP header. (#909)
  • tests are now excluded from the Datasette package properly - thanks, abeyerpath. (#456)
  • The Datasette package published to PyPI now includes sdist as well as bdist_wheel.
  • Better titles for canned query pages. (#887)
  • Now only loads Python files from a directory passed using the --plugins-dir option - thanks, Amjith Ramanujam. (#890)
  • New documentation section on Publishing to Vercel.

0.45

Magic parameters for canned queries, a log out feature, improved plugin documentation and four new plugin hooks.

Magic parameters for canned queries

Canned queries now support Magic parameters, which can be used to insert or select automatically generated values. For example:

insert into logs
  (user_id, timestamp)
values
  (:_actor_id, :_now_datetime_utc)

This inserts the currently authenticated actor ID and the current datetime. (#842)

Log out

The ds_actor cookie can be used by plugins (or by Datasette's --root mechanism) to authenticate users. The new /-/logout page provides a way to clear that cookie.

A "Log out" button now shows in the global navigation provided the user is authenticated using the ds_actor cookie. (#840)

Better plugin documentation

The plugin documentation has been re-arranged into four sections, including a brand new section on testing plugins. (#687)

  • Plugins introduces Datasette's plugin system and describes how to install and configure plugins.
  • Writing plugins describes how to author plugins, from simple one-off plugins to packaged plugins that can be published to PyPI. It also describes how to start a plugin using the new datasette-plugin cookiecutter template.
  • Plugin hooks is a full list of detailed documentation for every Datasette plugin hook.
  • Testing plugins describes how to write tests for Datasette plugins, using pytest and HTTPX.

New plugin hooks

Changelog

Sourced from datasette's changelog.

0.46 (2020-08-09)

.. warning:: This release contains a security fix related to authenticated writable canned queries. If you are using this feature you should upgrade as soon as possible.

  • Security fix: CSRF tokens were incorrectly included in read-only canned query forms, which could allow them to be leaked to a sophisticated attacker. See issue 918 <https://github.com/simonw/datasette/issues/918>__ for details.
  • Datasette now supports GraphQL via the new datasette-graphql <https://github.com/simonw/datasette-graphql>__ plugin - see GraphQL in Datasette with the new datasette-graphql plugin <https://simonwillison.net/2020/Aug/7/datasette-graphql/>__.
  • Principle git branch has been renamed from master to main. ([#849](https://github.com/simonw/datasette/issues/849) <https://github.com/simonw/datasette/issues/849>__)
  • New debugging tool: /-/allow-debug tool (demo here <https://latest.datasette.io/-/allow-debug>) helps test allow blocks against actors, as described in :ref:authentication_permissions_allow. ([#908](https://github.com/simonw/datasette/issues/908) <https://github.com/simonw/datasette/issues/908>)
  • New logo for the documentation, and a new project tagline: "An open source multi-tool for exploring and publishing data".
  • Whitespace in column values is now respected on display, using white-space: pre-wrap. ([#896](https://github.com/simonw/datasette/issues/896) <https://github.com/simonw/datasette/issues/896>__)
  • New await request.post_body() method for accessing the raw POST body, see :ref:internals_request. ([#897](https://github.com/simonw/datasette/issues/897) <https://github.com/simonw/datasette/issues/897>__)
  • Database file downloads now include a content-length HTTP header, enabling download progress bars. ([#905](https://github.com/simonw/datasette/issues/905) <https://github.com/simonw/datasette/issues/905>__)
  • File downloads now also correctly set the suggested file name using a content-disposition HTTP header. ([#909](https://github.com/simonw/datasette/issues/909) <https://github.com/simonw/datasette/issues/909>__)
  • tests are now excluded from the Datasette package properly - thanks, abeyerpath. ([#456](https://github.com/simonw/datasette/issues/456) <https://github.com/simonw/datasette/issues/456>__)
  • The Datasette package published to PyPI now includes sdist as well as bdist_wheel.
  • Better titles for canned query pages. ([#887](https://github.com/simonw/datasette/issues/887) <https://github.com/simonw/datasette/issues/887>__)
  • Now only loads Python files from a directory passed using the --plugins-dir option - thanks, Amjith Ramanujam. ([#890](https://github.com/simonw/datasette/issues/890) <https://github.com/simonw/datasette/pull/890>__)
  • New documentation section on :ref:publish_vercel.

.. _v0_45:

0.45 (2020-07-01)

Magic parameters for canned queries, a log out feature, improved plugin documentation and four new plugin hooks.

Magic parameters for canned queries


Canned queries now support :ref:`canned_queries_magic_parameters`, which can be used to insert or select automatically generated values. For example::
insert into logs
  (user_id, timestamp)
values
  (:_actor_id, :_now_datetime_utc)

This inserts the currently authenticated actor ID and the current datetime. ([#842](https://github.com/simonw/datasette/issues/842) &lt;https://github.com/simonw/datasette/issues/842&gt;__)

Log out


The :ref:`ds_actor cookie &lt;authentication_ds_actor&gt;` can be used by plugins (or by Datasette's :ref:`--root mechanism&lt;authentication_root&gt;`) to authenticate users. The new ``/-/logout`` page provides a way to clear that cookie.

A &quot;Log out&quot; button now shows in the global navigation provided the user is authenticated using the ds_actor cookie. ([#840](https://github.com/simonw/datasette/issues/840) &amp;lt;https://github.com/simonw/datasette/issues/840&amp;gt;__)

Better plugin documentation

</tr></table> ... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [datasette](https://github.com/simonw/datasette) from 0.25 to 0.46.
- [Release notes](https://github.com/simonw/datasette/releases)
- [Changelog](https://github.com/simonw/datasette/blob/main/docs/changelog.rst)
- [Commits](simonw/datasette@0.25...0.46)

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Aug 11, 2020
@jsancho-gpl jsancho-gpl merged commit 2bbd810 into master Nov 22, 2020
@dependabot dependabot bot deleted the dependabot/pip/datasette-0.46 branch November 22, 2020 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant