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

new table/module for asset categories #292

Open
jd2rogers2 opened this issue Feb 22, 2023 · 2 comments
Open

new table/module for asset categories #292

jd2rogers2 opened this issue Feb 22, 2023 · 2 comments

Comments

@jd2rogers2
Copy link
Contributor

jd2rogers2 commented Feb 22, 2023

Is your feature request related to a problem? Please describe.
yes, we need to show what filter options on the left sidebar of the search results page
each of these options should be for a type of item, and will filter our results to only show needs

Describe the solution you'd like
A clear and concise description of what you want to happen.
a new module with a relationship to the assets table
volunteer type assets cannot have these categories (maybe add a constraint)

this is a separate table from the "interests"/"categories"/"initiatives" table (naming still TBD) that relates to users, orgs

@skyfox93
Copy link
Contributor

skyfox93 commented Mar 10, 2023

is there a reason not to just set the category name directly on the assets table?
or have an enum of categories defined in the codebase?

@jd2rogers2
Copy link
Contributor Author

is there a reason not to just set the category name directly on the assets table? or have an enum of categories defined in the codebase?

@skyfox93 because we want, i think, a many-to-one relationship. assets can have many categories
but we actually ended up trying out single column of jsonb (so we're storing an array of the category strings)
see #296

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants