-
Notifications
You must be signed in to change notification settings - Fork 126
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
feat: dimension and measure filter for canvas #6396
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments, but generally LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@briangregoryholmes is your proposal that we lift the StateManagers even further up the component tree, or keep them here?
void queryClient.refetchQueries( | ||
getQueryServiceResolveCanvasQueryKey( | ||
this.instanceId, | ||
res.name.name, | ||
{}, | ||
), | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally we use invalidateQueries
, though it might not work due to this: https://github.com/rilldata/rill-private-issues/issues/719
} from "@rilldata/web-common/runtime-client"; | ||
import { derived, type Readable } from "svelte/store"; | ||
import { derived, get, type Readable } from "svelte/store"; | ||
|
||
export class CanvasResolvedSpec { | ||
canvasSpec: Readable<V1CanvasSpec | undefined>; | ||
isLoading: Readable<boolean>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need isError
and error
for error handling?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If so, might it be easier to expose the $validSpecStore
itself, rather than duplicating the fields that map 1:1 to the TanStack Query response? If so, maybe the exposure of the useCanvas
response belongs in the top-level CanvasEntity
class?
Adds dimension and measure filters for canvas.
Merge after #6411
TODOs