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
all entities (data, flow, etc) have a push_tag and remove_tag function, but this functionality is also implemented in utils.py with the function _tag_entity (tags and untags). Let's drop either of these functionalities (or at least make the push_tag and remove_tag functions use _tag_entity as backend)
@janvanrijn if dropping one of them is better, I think we could drop _tag_entity from utils.py.
It seems to be used only in test_tag_untag_dataset which can be replaced by push_tag and remove_tag.
Do you agree with dropping _tag_entity ?
I think that the various push_tag and remove_tag have similar structure and therefore code-duplications, which I think we should try to avoid. Therefore, my proposal would be to make the various push_tag and remove_tag functions call to utils. _tag_entity, making all these functions a one liner with specific values set as parameters.
Activity
sahithyaravi commentedon Apr 8, 2019
@janvanrijn if dropping one of them is better, I think we could drop
_tag_entityfrom utils.py.It seems to be used only in
test_tag_untag_datasetwhich can be replaced bypush_tagandremove_tag.Do you agree with dropping
_tag_entity?janvanrijn commentedon Apr 8, 2019
@sahithyaravi1493 welcome on the team :)
I think that the various
push_tagandremove_taghave similar structure and therefore code-duplications, which I think we should try to avoid. Therefore, my proposal would be to make the variouspush_tagandremove_tagfunctions call toutils. _tag_entity, making all these functions a one liner with specific values set as parameters.sahithyaravi commentedon Apr 8, 2019
Thank you :)
Then I will proceed with the proposed approach (
tag_entityas backend for the other two).mfeurer commentedon Apr 11, 2019
Fixed via #667.