Repository navigation
fix: refuse a numeric column on a date axis with a clear error instead of a 500 on zoom - #148
Merged
Merged
Conversation
…d of failing on zoom
… axis types from one schema lookup
jvdd
force-pushed
the
fix/numeric-on-date-axis
branch
from
October 5, 2026 08:26
153bf48 to
9492140
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A numeric column on an axis with
type: "date"rendered, and then every zoom returned 500 ('str' - 'str'in the line bucket grid). Linked axes already refused this setup. Now every figure axis refuses it.check_axis_link_typesis nowcheck_axis_types. It refuses a numeric column on adateaxis for every figure axis, linked or not, and tells the user to cast the column toDatetime./shareand/viewreturn 400, and/dashboard/updatereturns 422.layout.templatenow counts too (_layout_axismerges the template axis under the figure's own settings, as the client'sisLogAxisdoes; a figure value ofNonecounts as unset). This also applies to the existing link checks (log axes, reversed axes).check_axis_typestakes a schema lookup and calls it only for adateaxis or a linked axis, so a spec build without either still reads no schema.Tests: builder and server rejection (also through a template), and the combinations that must still work (
Datetimeon a date axis, numeric on a default or linear axis, a figurelineartype over a templatedatetype).Closes #81