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

Priority Queue #405

Merged
merged 34 commits into from Nov 14, 2020
Merged

Priority Queue #405

merged 34 commits into from Nov 14, 2020

Conversation

NEUDitao
Copy link
Collaborator

@NEUDitao NEUDitao commented Nov 1, 2020

ezgif-1-a1ae0453ca98

We need help with the "Requeue Student" button's design in terms of color and stuff

@NEUDitao NEUDitao added this to In Progress in Office Hours v2 via automation Nov 1, 2020
@vercel
Copy link

vercel bot commented Nov 1, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/sandboxneu/office-hours/m31gt99g5
✅ Preview: https://office-hours-git-dc-limbo-fsm.sandboxneu.vercel.app

Copy link
Member

@willstenzel willstenzel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great overall! I left some suggestions for minor improvements and had a few general questions.

@willstenzel
Copy link
Member

For re-queued questions, I saw that "last helped by" was added to the student banner which I liked.

Should the "last helped by" be displayed for TA's as well? That way the TA's have more visibility on who was helping whom.

@NEUDitao
Copy link
Collaborator Author

NEUDitao commented Nov 3, 2020

For re-queued questions, I saw that "last helped by" was added to the student banner which I liked.

Should the "last helped by" be displayed for TA's as well? That way the TA's have more visibility on who was helping whom.

We were thinking about this, but couldn't figure out a way to render it

@liustanley liustanley removed this from In Review in Office Hours v2 Nov 4, 2020
@liustanley
Copy link
Member

liustanley commented Nov 4, 2020

When running locally, here are some things I found:

  • After a student rejoins the queue (going into priority queue), the "Priority Queue" and "Queue" headers don't show up on the TA side
  • Unable to leave the queue as a student who has been re-queued, gives me a 401 error
  • Same problem as a student who couldn't be found, gives a 401 error when I click leave queue
  • Clicking Rejoin Queue as a student doesn't update/mutate the frontend, have to click out and click in the window to update banner state
  • 404 error when removing a student from the queue (although I believe this was an existing issue)

relations: ['creator', 'taHelped'],
where: {
queueId,
status: In(StatusSentToCreator),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't it be In( ) of all the statuses in queue, help, and priorityQueue?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

StatusSentToCreator includes all of those

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah yes but we dont' need them in th is function fuck

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh yeah but we don't need them in this funciton fuck

@@ -1,9 +1,16 @@
import {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm alright not doing it now, but a big TODO should be queue service tests. The new ListQuestions stuff has like no tests afaik

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wasn't the whole thing we didn't know how to do this currently?

This reverts commit 6401447.
Copy link
Member

@dajinchu dajinchu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⛵ ship!

@NEUDitao NEUDitao merged commit aa72ed8 into master Nov 14, 2020
@willstenzel willstenzel deleted the dc-limbo-fsm branch November 14, 2020 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Priority Queue Implement Priority Queue
5 participants