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

Apply ordering for jobs when using Bull queue #327

Merged

Conversation

roggervalf
Copy link
Collaborator

@roggervalf roggervalf commented Feb 19, 2021

When showing the jobs list by state, would be nice to have the last created jobs at the top, this PR tries to handle that by applying ordering desc by default. Also I added a dropdown for ordering so a user could choose how to order jobs by id
#240
tested with #326

Selection_002
Selection_003
Selection_004
Selection_005
Selection_006

@roggervalf roggervalf force-pushed the fix-desc-ordering-for-bull-jobs branch from 2d99202 to 1e1f891 Compare February 19, 2021 06:27
@roggervalf roggervalf force-pushed the fix-desc-ordering-for-bull-jobs branch from 0539e0b to c5d21a0 Compare February 20, 2021 05:06
@roggervalf roggervalf changed the title Apply descending ordering for jobs when using Bull queue Apply ordering for jobs when using Bull queue Feb 20, 2021
@roggervalf
Copy link
Collaborator Author

roggervalf commented Feb 22, 2021

Hi @bradvogel, could you please help me with some 👀 in this PR when you have some free time

@bradvogel
Copy link
Contributor

I don't have a way to test the Bull queue but I trust that you've tested this. The code looks good.

Separately, it'd be great to have another example (apart from the Bee Queue example in #326) that uses Bull.

@bradvogel bradvogel merged commit 85042b4 into bee-queue:master Feb 22, 2021
@beequeueci
Copy link
Collaborator

🎉 This PR is included in version 3.8.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@roggervalf roggervalf deleted the fix-desc-ordering-for-bull-jobs branch February 22, 2021 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants