PNL0 commented on issue #45207:
URL: https://github.com/apache/airflow/issues/45207#issuecomment-2845591029

   Hello @pierrejeambrun @bbovenzi 
   
   Couldn't we just update the is_favorite field in the DagModel of each 
favorite Dag? 
   Similar to what is done when you pause a DAG and use the patch_dag API 
function.
   
   Right now, without any implementation of an association table, I tested the 
new functionality this way: breeze start-airflow, favorite some DAGs, breeze 
down, breeze start-airflow again, check if the DAGs are still favorite.  
   Since the state of the DAGs didn't change even when I close and reopen the 
airflow, I assume that the data is persisted in the database, but maybe I'm 
looking at this in the wrong way and there is other better way to test the 
functionality.
   
   Also, if the association table is needed, do we also need to create a class 
that represents the user/user settings? 
   


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

Reply via email to