GitHub user dosubot[bot] added a comment to the discussion: QueryContext.slice_
<!-- Greeting --> Hi @akolotvinov! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team. <!-- Answer --> The QueryContext.slice_ attribute is an optional reference to a Slice (chart object) and is only used to check for a cache timeout value in the get_cache_timeout method. If slice_ is not set or doesn't have a cache_timeout, the logic falls back to datasource or database cache timeouts. There are no comments or documentation indicating active use, deprecation, or any connection to ChartFilter, and it's not referenced elsewhere in QueryContext methods. In current Superset code, slice_ is essentially a legacy attribute with minimal impact—a semantic noop in modern query and chart filtering logic. [Source](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/common/query_context.py) <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/528f6112-6076-4832-bed1-16c70bf921b7?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/528f6112-6076-4832-bed1-16c70bf921b7?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/528f6112-6076-4832-bed1-16c70bf921b7?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/528f6112-6076-4832-bed1-16c70bf921b7?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/528f6112-6076-4832-bed1-16c70bf921b7?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/528f6112-6076-4832-bed1-16c70bf921b7?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/528f6112-6076-4832-bed1-16c70bf921b7?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)& nbsp;[](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/35455) GitHub link: https://github.com/apache/superset/discussions/35455#discussioncomment-14576665 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
