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

Order tags by frequency of use in current city #3578

Open
misaugstad opened this issue Jun 29, 2024 · 1 comment
Open

Order tags by frequency of use in current city #3578

misaugstad opened this issue Jun 29, 2024 · 1 comment

Comments

@misaugstad
Copy link
Member

Brief description of problem/feature

I'd like to reorder the list of tags that we show to people based on the frequency of use in the current city. It will be easier for users to find the tags they're looking for if the most frequently used ones are shown first. I think that this applies to Explore, the new Validate, and Gallery.

I don't think it's important to reorder existing tags on a label by frequency, but we should do it for tags that users may be looking to add to a label.

Potential solution(s)

Add a query on the back end that counts the frequency of each tag. This can even be cached for awhile, it's not important that the order gets updated frequently. Then we just include that with the list of tags when we send to the front end and reorder based on that!

For the new Validate page, there is built-in functionality in the drop down search for adding tags that will sort based on a named field. I gave it a default name of "popularity" right now, and we would just need to add that property to the tag objects.

@jonfroehlich
Copy link
Member

jonfroehlich commented Jun 29, 2024 via email

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