Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: planter filter to allow filtering parent orgs by name and all orgs by id #589

Merged
merged 2 commits into from
Sep 24, 2021

Conversation

gwynndp
Copy link
Collaborator

@gwynndp gwynndp commented Sep 20, 2021

  • updated /planter and /count endpoints to get both parent and child org entityIds and and planter ids for the query
  • updated /organization/{orgid}/planter, .../trees, and .../count endpoints to check if an org filter was requested, compare it to the org account id, and override the value in the query if it's a sub-org
  • updated /organizations to get all the parent orgs for admin and all the sub-orgs for an org account

@gwynndp gwynndp marked this pull request as ready for review September 23, 2021 01:37
@nmcharlton
Copy link
Collaborator

My only concern is that there appears to be a lot of duplication.

@nmcharlton nmcharlton merged commit 692fdec into Greenstand:master Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants