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

Allow arbitrary sorting of price alerts #23

Open
w0rp opened this issue Apr 21, 2022 · 0 comments
Open

Allow arbitrary sorting of price alerts #23

w0rp opened this issue Apr 21, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@w0rp
Copy link
Member

w0rp commented Apr 21, 2022

Storing a position field for price alerts, which could be NULL, we should support sorting price alerts by position. NULL values should be sorted to the button, and the alerts should otherwise appear in the insertion order they appear in currently. (Order by position, nulls last, then order by id.)

Implementation detail: Updating the position of elements will require updating all other alerts for a user to shift the values and database transactions.

@w0rp w0rp added the enhancement New feature or request label Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant