Skip to content

duplicate functions tags #619

Closed
Closed

Description

@janvanrijn

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)

Activity

  1. added
    Good First Issue
    on Feb 16, 2019
  2. self-assigned this
    on Apr 8, 2019
  3. sahithyaravi commented on Apr 8, 2019

    @sahithyaravi
    Contributor

    @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 ?

  4. janvanrijn commented on Apr 8, 2019

    @janvanrijn
    MemberAuthor

    @sahithyaravi1493 welcome on the team :)

    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.

  5. sahithyaravi commented on Apr 8, 2019

    @sahithyaravi
    Contributor

    Thank you :)

    Then I will proceed with the proposed approach (tag_entity as backend for the other two).

  6. mfeurer commented on Apr 11, 2019

    @mfeurer
    Member

    Fixed via #667.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Good First Issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions