-
Notifications
You must be signed in to change notification settings - Fork 9
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
Candidate Invitations Details #164
Comments
Break up into separate issues for multiple team members to work on? NOTE |
@ice1080 I have the first one in a repo I will check in soon. |
@ddfridley for when you get back from vacation: |
We have a new volunteers who just signed up to look at that one. I should have slacked you.
I ended up creating another api to create and send - that calls the two separate apis. To get rid of the generate button. But the functionality is still needed for the create api.
Thanks
David.
Get BlueMail for Android
On Sep 6, 2022, 3:38 PM, at 3:38 PM, ice1080 ***@***.***> wrote:
***@***.*** for when you get back from vacation:
…The third item of extracting reasonsNotReadyForCandidateRecorders into
status methods says that it's for the Generate button. The only
generate button in the code base is for the moderator recorder button
and it already has a method for determining if it's ready for
generation. Or perhaps I'm misunderstanding this and this is all for
the Send Invites button?
--
Reply to this email directly or view it on GitHub:
#164 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
|
No problem. Is the other person just taking the third item of extracting? Or this whole issue? |
@ice1080 Just trying to find my way through the tasks step by step, so just undertaking the third item for now. |
@ice1080 Can you think of anything for this one: Show the list of sent dates of invitations. [invitations might get sent more than once]. this is electionObj.moderator.invitations and the date is encoded in the _id use ObjectId(_id).getTimestamp() to get the date And it says moderator.invitations but it should be about candidades.[candidateId].invitations It's needs some UI design as well as a code - but minimal |
Ya I can take that part @ddfridley |
Hey @ddfridley, a couple questions on this one whenever you get a chance.
|
@ice1080 2-Good point. Use sentDate. |
Both pages sounds fine. Looks good. Its starting to look like the two pages should be combined - but later. |
@ice1080 - an alternative idea, would it be hard to change the '<Envelope Icon>Sent' Submission status to '<Envelope Icon>Sent 210 days ago` and the not having a special column. |
@ice1080 Oh - I see the Send Reminders is only on the candidate-table page. Back to the first idea. |
@ddfridley I believe it will be quite a bit of work and hacky code to get the Submissions page to have this list of invites without some pretty major refactoring. Since you talked about eventually combining them, would we be alright if this only goes to the Election Table page for now? |
@ice1080 looks great. Good enough to have this for now, worry about submissions page in another iteration. |
Hey @ddfridley I'm working on the create-candidate-recorders merging of undebatesFromTemplateAndRows result, but have an issue that is blocking me from being able to test it. This file assumes that the moderator is done recording, but I can't seem to finish recording for the moderator. When recording (in a different browser than the undebates creator), I am able to record all of the videos and sign up as the moderator, but when I try to Post, the upload percentage hangs, and I see this in the logs. Any idea what else I could be missing for successful uploading of recordings?
|
I was able to make a bit more progress with some heavy db hacking. Through this work, I noticed what I believe is a defect in create-moderator-recorder:
The viewer and recorder url start with Can you confirm the following for setting up a local env and I'll add it to the README.md? Should we have option 1:
or option 2:
@ddfridley if you can just run |
@ice1080 I applaud your heavy debugging skills! I see the defect you are talking about. We should deprecate the use of HOST_NAME in favor of HOSTNAME. In the undebate repo it is only used in tools and not in server code. But for this issue, the real reason for that code is that we need to get to the path part. So I figured this out, which would be a more general solution:
Do you want to make this change in your branch? (I haven't tested it). |
If you do make the change, move the two lines under the try block below them. new URL can through an error if the url is not valid. |
Ok we might need to look at the code because I've seen usages of both HOSTNAME and HOST_NAME which is part of why it's so confusing. |
In app/lib/viewer-recorder-template.js I want to add:
and delete the previous hostName assignment. That's all the HOST_NAME in this repo. |
Here's a potential bug in my URL() idea. But as long as we are careful to put the schema in front of HOSTNAME than we are okay. |
should be
in above. I've made this change in my repo. |
Just confirming, the viewer-recorder-template.js file above that you mentioned, that's where the email invites get created at? |
viewer-recorder-template.js is the class for creating the template that is passed to undebatesFromTemplateAndRows to create the iotas that are the recorders for the candidates, and the viewer for the voter. Each iota gets a unique URL which is what you are getting back in rowObj.viewer_url and rowObj.recorder_url. The recorder URLs are sent in the email invites. |
Ok I'll test with these changes then and make sure that it fixes the urls in the email. I would imagine it has to since there seem to be no other references to host_name |
PR created.. As mentioned this only closes the last two tasks of this issue, not the whole issue. Let me know if you test this and it doesn't work, I wasn't able to locally get recording posts to work. Thanks! |
@ddfridley Please break the remaining tasks into separate issues so we can close the user visible tasks. |
The remaining tasks here are not seen by the uses so I am removing the V1Req tab |
npm run test app/socket_apis/test/create-create-candidate-recorders.js |
The text was updated successfully, but these errors were encountered: