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

Organization categories should have hierarchy #30

Closed
anselmbradford opened this issue May 7, 2013 · 3 comments
Closed

Organization categories should have hierarchy #30

anselmbradford opened this issue May 7, 2013 · 3 comments
Assignees
Milestone

Comments

@anselmbradford
Copy link
Member

In the database, the "keywords" for a particular organization should be organized to have a hierarchy so it is apparent what are top level categories and subcategories. For instance, a returned JSON string might look like:

"categories":{"children":
[
{"id":"6","name":"Clinic","children":
[
{"id":"7","name":"Dental Clinic"},
{"id":"8","name":"Medical Clinic"}
]},
{"id":"0","name":"Food","children":
[
{"id":"1","name":"Food Pantry","children":
[
{"id":"3","name":"Hot Meal"},
{"id":"4","name":"Soup Kitchen"}
]},
{"id":"2","name":"Food Bank"}
]},
{"id":"5","name":"Shelter"}
]}

And an organization might have the JSON (snippet):

... "category":["0","1","3"] ...

that specifies the ids of the categories its apart of.

@ghost ghost assigned spara May 28, 2013
@spara
Copy link

spara commented Jun 4, 2013

OK, I'll look at this when I get to organizing the metadata task

@anselmbradford
Copy link
Member Author

@spara Can this issue be closed?

@anselmbradford
Copy link
Member Author

Covered in codeforamerica/ohana-api#45

monfresh added a commit that referenced this issue Jun 23, 2022
Set Kind to All by default on home page search. Fixes #30.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants