-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[NEW] Live poll: Multi-Question and Timed-Polls #13
Conversation
@murtaza98 @ramkumarkb please take a look. Thanks. |
Couple of suggestions to improve this PR
|
@@ -14,5 +14,10 @@ | |||
"description": "A simple app to create polls on Rocket.Chat. Use the slash command: /poll [Question?]", | |||
"implements": [ | |||
"IUIKitInteractionHandler" | |||
], | |||
"permissions": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This app uses a lot of other permissions like slashcommand
, message.read
etc which we need to also declare over here. For a list of all permissions, please refer here and declare ONLY the permissions being used by this app.
PS: Earlier since this app was using apps-engine version < 1.20.0 which is when the permission system was introduced, we didn't have to explicitly declare any such permissions as the apps-engine assigns such apps default permission
. However now, since our app is going to be using schedular apis which is on 1.23.0 version of apps-engine - we now need to declare all these permissions explicitly and if this isn't done, the app will start throwing permission errors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added the permissions. Please let me know if I missed any. Thanks.
Also there are a lot of tslint errors in this PR so we need to fix them too before we merge this PR. JFYI: You can find the tslint issues by running |
@murtaza98 Mixed Visibilty and Additional Poll modes aren't in the scope of the current PR. To keep things modular I've created a separate issue (#14). I'll raise a PR to that once I have the challenges listed figured out. |
Hi @RonLek Apart from the comments, I think also found a bug within |
Thanks for the review @murtaza98 . I've resolved all comments and fixed the above issue. Users can now load the same poll across multiple rooms. |
That's awesome 💯 Overall this PR LGTM!! |
/poll live <number>
subcommand based triggering for live polls added.IPoll
interface to encourage code-reuse.scheduleOnce
) to post next poll within room on Time to vote" expiry.Live Poll
Screencast.from.10-08-21.08.57.40.PM.IST.mp4
Live Poll - Late Retrieval
Screencast.from.16-08-21.01.20.58.AM.IST.mp4
Closes #12