You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, this makes it impossible to examine the PUBLISHED workflow state, as any attempt to access it will render a query. The rendering could shift to a function call:
This change mirrors the changes introduced in #166 (specifically, 8979fa9, for #165), where instead of returning a boolean when accessed via the instance, we return an object that implements __bool__. Unfortunately, SQLAlchemy doesn't give us an equivalent __sql__, and inheriting from ClauseElement will have unknown side effects.
StateManager currently allows database queries like this:
Unfortunately, this makes it impossible to examine the
PUBLISHED
workflow state, as any attempt to access it will render a query. The rendering could shift to a function call:This is a breaking change unless SQLAlchemy provides us a way to cast an object into a SQL expression.
The text was updated successfully, but these errors were encountered: