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

Sw integrate queue with bot #50

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

swangs
Copy link
Collaborator

@swangs swangs commented Mar 20, 2020

No description provided.

swangs added 3 commits March 20, 2020 13:35
Some gems could not be fetched over https. This is currently a stashed change on the instance but I can commit it here
The access and refresh tokens are too long to be stored as strings
Also fixed some typos in the station names and env vars
When a spot opens the next person in line will be notified
Copy link
Collaborator

@jmangel jmangel left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks

@@ -17,6 +17,10 @@ def members_string
"```#{formatted_response}```"
end

def first_user_in_line
channel_queue_memberships.order(created_at: :asc).joins(:user).first&.user
Copy link
Collaborator

Choose a reason for hiding this comment

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

There is a NextInQueue service that's also used by the /queue open command, but it shouldn't be any different or more robust than this, afaik

The service already exists and contains similar logic so it should be reuseable. I also remembered that the &. operator doesn't work in rails 2 so I have to remove that anyways
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.

2 participants