You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The use case I'm thinking about is that I want to have an airflow task that pulls data on exercise issues each day, and add them to a project. Since most of the tasks will already exist from the previous day, I want to check whether or not it already exists before creating it.
I think that this sort of safe checking is a common enough pattern that it ought to exist here. If not, I can put it in dcasana instead.
The API allows you to create projects and tasks with the same name as existing projects/tasks.
It would be useful to have safe alternatives that check if the thing already exists, and only create it if it doesn't.
For example, a safe version of
asn_projects_create_in_team()
could look like this.The use case I'm thinking about is that I want to have an airflow task that pulls data on exercise issues each day, and add them to a project. Since most of the tasks will already exist from the previous day, I want to check whether or not it already exists before creating it.
I think that this sort of safe checking is a common enough pattern that it ought to exist here. If not, I can put it in dcasana instead.
cc: @ramnathv
The text was updated successfully, but these errors were encountered: