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 asset ordering by tags #305

Open
hburgund opened this issue Dec 19, 2016 · 0 comments
Open

add asset ordering by tags #305

hburgund opened this issue Dec 19, 2016 · 0 comments
Assignees

Comments

@hburgund
Copy link
Member

hburgund commented Dec 19, 2016

Currently, assets can be ordered in the playlist in a few ways such as by_weight or by_like on a project basis controlled by the project.ordering field which defaults to random.

The desired functionality of ordering by tags is that admins can select a tag and then any assets assigned with that tag will be prioritized in the playlist. If multiple tags exist with the "priority tag", than they will be randomly ordered among themselves, while collectively remaining at the top of the playlist.

This prioritization will be on a project basis, so the prioritized tag should presumably be stored in a new project field i.e. project.prioritized_tag. This field will only be used if project.ordering is set to by_tag and clearly is not a required field and can default to None.

Ordering is done in roundwared/asset_sorters.py, controlled by recording_collection.order_assets() which reads from the project.ordering field.

We should consider #189 alongside this when we devise an approach because they are related and may be able to work in conjunction.

@hburgund hburgund self-assigned this Dec 19, 2016
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