-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* add itertools as dependency. * add database model for Poll stuff. * really add itertools as dependency in main.rs. * teams: expose test data, change team names a bit, expose ping and name of teams. * refactor a bunch of logic and implement polling (hopefully...). * update command grammar in README.md. * fix syntax error in up.sql migration. * fix copy error in up.sql migration. * fix typo in up.sql migration. * close poll when everyone has answered it. * fix #212 by filtering in unstarted fcps. (#223) * Update toolchain and lockfile (#232) * update toolchain and lockfile. * add never_type gate. * Add Centril to the lang team (#230) * fix typos (quized -> quizzed). * fix 225, and deal with leading whitespace. * colocate from_invocation_line and from_str_all. * get rid of global state from command parser. * review -> response for polls. * fix comments. * make progress on all 3 in evaluate_nags. * RfcBotCommand::{AskQuestion -> StartPoll}. * gracefully handle poll comment typos. * fix bug.
- Loading branch information
Showing
12 changed files
with
1,174 additions
and
616 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
DROP TABLE poll; | ||
DROP TABLE poll_response_request; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
CREATE TABLE poll ( | ||
id SERIAL PRIMARY KEY, | ||
fk_issue INTEGER UNIQUE NOT NULL REFERENCES issue (id), | ||
fk_initiator INTEGER NOT NULL REFERENCES githubuser (id), | ||
fk_initiating_comment INTEGER NOT NULL REFERENCES issuecomment (id), | ||
fk_bot_tracking_comment INTEGER NOT NULL REFERENCES issuecomment (id), | ||
poll_question VARCHAR NOT NULL, | ||
poll_created_at TIMESTAMP NOT NULL, | ||
poll_closed BOOLEAN NOT NULL, | ||
poll_teams VARCHAR NOT NULL | ||
); | ||
|
||
CREATE TABLE poll_response_request ( | ||
id SERIAL PRIMARY KEY, | ||
fk_poll INTEGER NOT NULL REFERENCES poll (id) ON DELETE CASCADE, | ||
fk_respondent INTEGER NOT NULL REFERENCES githubuser (id), | ||
responded BOOLEAN NOT NULL, | ||
UNIQUE (fk_poll, fk_respondent) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.