nicob3y opened a new pull request, #35662:
URL: https://github.com/apache/superset/pull/35662

   ### SUMMARY
   
   This PR aims to improve jinja dataset macro by:
   
   1. allowing the user to use a dataset by its name as well,
   2. adding a parameter "alias" to force the alias of the returned subquery.
   
   Using the names instead of the IDs helps, for example during a dashboard 
export/import, to guard against ID changes and thus a broken dataset definition.
   Using a custom alias also frees you from the problem of changing ID since 
the default is built with.
   
   The update of this macro preserves its previous behavior.
   
   Tests and documentation are updated.


-- 
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]

Reply via email to