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

Civic Tech Organization Search - Open to lowest level when only 1 Organization shows #1230

Closed
1 task
smsada opened this issue Apr 21, 2022 · 1 comment · Fixed by #1247
Closed
1 task
Assignees
Labels
p-feature: Organizations Everything relating to Organizations page Priority: Low Low priority issues are those which do not have any impact and those which can be addressed later. role: front end size: missing

Comments

@smsada
Copy link
Member

smsada commented Apr 21, 2022

Overview

On the Civic Tech Organizations page, searches need to open to the lowest level if there is only one selection

Description

  • When you search for an organization and there is only one organization with that name, you should open to the lowest level and thus show the organization
  • When you search for an organization and there are multiple organizations with that name, the current implementation is correct
Current action

image

Intended Outcome

image

Action Items

  • Change logic so when you search for an organization and there is only one result, the organization is shown (as seen above in Intended Outcome)

Resources/Instructions

@smsada smsada changed the title Civic Tech Organization Search - Open to lowest level Civic Tech Organization Search - Open to lowest level when only 1 Organization shows Apr 21, 2022
@smsada smsada added role: front end p-feature: Organizations Everything relating to Organizations page Priority: Low Low priority issues are those which do not have any impact and those which can be addressed later. size: 1pt Can be done in 6 hours or less labels Apr 21, 2022
@smsada smsada added this to the 7 - MVP Website Launch milestone Apr 21, 2022
@smsada smsada added size: missing and removed size: 1pt Can be done in 6 hours or less labels Apr 22, 2022
@smsada
Copy link
Member Author

smsada commented May 4, 2022

States to Discuss

Everything should open, except where described

  1. 1 child organization in 1 parent organization
    • Hack for LA
  2. 3 child organizations in 1 parent organization
    • Civic Tech Sweden
  3. 2 child organizations both with the same name, but with different parents
    • codeforparis.org and codeforparis.fr (Code for Paris is the display name)
  4. 3 or more parent organizations
    • 2 Grandparents and 5 or more results - don't open
    • 1 Grandparent and 4 parents, 1 or more grandchildren - don't open
    • 1 Grandparent and 3 parents and 7 or more grandchildren - don't open
    • 3+ grandparents - don't open
  5. 4 grandchild organizations, one in A, two in B, one in C
    • Code for All>Code for France>Open Heroines France
    • Code for All>Code for Canada>Open North
    • Code for All>Code for Canada>Open DataBC
    • Code for All>Code for Germany>Open Dresden
  6. 1 child with multiple parents
    • Open Knowledge Belgium (primary parent is Open Knowledge Foundation, secondary parent is Code for All)
  7. Search input refers to just parent organization
    • 1 grandparent and no grandchildren it opens
    • 2 grandparents and more than 4 results total - do not open

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p-feature: Organizations Everything relating to Organizations page Priority: Low Low priority issues are those which do not have any impact and those which can be addressed later. role: front end size: missing
Projects
Development

Successfully merging a pull request may close this issue.

2 participants