Skip to content

0.18.0

Latest
Compare
Choose a tag to compare
@jonathansick jonathansick released this 28 Feb 22:49
69dd27b

Backwards-incompatible changes

  • Redis cache keys for page instance HTML models and noteburst job records use a new format based on the URL query string of page instances and display settings. Existing cached data will be ignored, but the new times-square migrate-html-cache command is available to migrate cached HTML pages in the old key format to the new one based on URL query strings.

  • The Jinja context for rendering templated Markdown cells now uses the native Python types rather than the string representation. This provides more flexibility for template authors to use these values in their templates. For example, a date parameter is a datetime.date object rather than a string. A boolean parameter is a bool rather than a string.

New features

  • Parameters can now have date and date-time JSON schema formats. In a notebook, these parameters are rendered as datetime.date and datetime.datetime objects, respectively.

  • Improved reliability of constructing URL query strings in the API by using the new PageParameterSchema classes in conjunction with the PageInstanceId class and NbHtmlKey classes.

  • A new times-square migrate-html-cache command is available to migrate cached HTML pages in the old key format to the new one based on URL query strings.

Bug fixes

  • Fix getting date_deleted from the pages database table.

Other changes

  • Update to Python 3.13
  • Adopt uv in the Docker image
  • New internal API for page parameters. Each parameter type is now backed by a subclass of PageParameterSchema. These types implement methods for casting to Python types, creating JSON-compatible values, query-string compatible values, and listing any Python imports needed to instantiate the native Python type.
  • Refactored interface models to the "storage" layer where possible, including the models for settings files in GitHub repositories and models for the GitHub API. This helps clarify the internal domain from external interfaces.

What's Changed

  • DM-48924: Add support for date/timetime parameters and refactor domain model for parameters, and separate storage from domain models by @jonathansick in #94
  • DM-48924: CLI command for migrating the HTML cache keys to the new format by @jonathansick in #95

Full Changelog: 0.17.0...0.18.8