venkatamandavilli-code commented on issue #40119: URL: https://github.com/apache/superset/issues/40119#issuecomment-4471300547
Thanks for reporting this issue. The requirement makes sense, especially for environments where dynamic date filtering and Jinja-based query customization are used together for aggregate calculations. One thing that may help is verifying whether `get_time_filter()` is fully supported in the specific Superset 4.0.2 setup or whether the functionality depends on newer Explore/Jinja handling introduced in later versions. Based on the screenshots, it also looks possible that the `403 Forbidden` error while editing metrics could be related to dataset-level permissions or restricted SQL Lab access rather than the Jinja function itself. It may be useful to validate: * dataset edit permissions and role mappings * whether Jinja templating is enabled/configured globally * whether the query context exposes the expected temporal filter state in Explore * whether the same behavior occurs directly in SQL Lab versus dataset metrics A small example in the documentation showing dynamic date filtering with Jinja templates across different Superset versions could also help clarify expected behavior for similar use cases. Thanks again for documenting the issue clearly. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
