Skip to content

[BUG]: Filtering on projects by tag returns all the projects #221

@xvirgov

Description

@xvirgov

Is there an existing issue for this?

  • I have searched the existing issues

Description of the bug

When I try to filter projects using project tags I get all the projects instead of the selected few with the correct tag.

Steps To Reproduce

Filter the projects
client.projects.filter(tags = [{"key": "some-key", "value": "some-value"}])

Receive ALL the projects across all the orgs the token has access to

Additional Information

I realized that to get the projects filtered, you have to first get an organization: client.organizations.first().projects.filter(tags = [{"key": "some-key", "value": "some-value"}])

This works fine, however, if this should be the only way the filtering should work, I would expect an error message and not all projects returned if I don't specify "organizations.first()".

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions