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

Add support for existing type categories #10

Closed
ezwelty opened this issue Dec 26, 2021 · 1 comment
Closed

Add support for existing type categories #10

ezwelty opened this issue Dec 26, 2021 · 1 comment

Comments

@ezwelty
Copy link
Contributor

ezwelty commented Dec 26, 2021

The four supported type categories reflect four different user communities: forager, freegan, grafter, honeybee. Support for these are needed by falling-fruit/falling-fruit-web#246 to handle historic URLs. However, they could also be seen as built-in type lists (see #9). The simplest solution would be to return categories of each type from GET types.

However, for performance (#2), it might make sense to pre-compute these type filters as indices on the locations table. This would avoid the need for filtering locations by a long list of type ids dynamically. This would instead require a new query parameter in GET locations (e.g. categories).

@ezwelty
Copy link
Contributor Author

ezwelty commented Jul 3, 2024

Types are now returned with their categories, which allows the most basic level of category support. Closing this issue untile additional functionality or performance is needed.

@ezwelty ezwelty closed this as completed Jul 3, 2024
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

1 participant