-
-
Notifications
You must be signed in to change notification settings - Fork 766
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
Google Apps Script: Add unique IDs as object keys for each wins entry #2385
Comments
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Progress: Done
39 const keyValueData = filteredRows.map((row,i) => {
40 const valueObject = new Object();
41 row.forEach((value, j) => {
42 valueObject[columnHeaders[j]] = value;
43 })
+ 44 valueObject['uniqueId']= 2+ i
45
46 return valueObject;
47 })
Doing
Blockers: No blockers |
open a new issue, and self assign to Please add the instruction on when and how to encode a token to the contributing.md file |
@lopezpedres Thanks for making a PR. Please add the final code changes that you have made here. Also, the mobile and desktop screenshots of the wins page that you see in your local env after merging PR as well as the unique ID that is generated in wins-data.json file. It will be helpful to get all this documented with this issue. I will add the changes to the main gs code app script and close the PR after your demo on Sunday. Thank you. |
@SAUMILDHANKAR Thank you! I'll attach the two screenshots here: Example of an UniqueID generatedThe key for all the objects is "UniqueID" and its value is the Timestamp when the form was submitted as well as the email of the creator of the submit. Example:{ "UniqueID" : "2020-11-30T06:17:25.226Z : johnsritchey@yahoo.com"}
|
lines 7, 8, 9 to be added in the main code. |
So, last few action items are still pending and therefore, adding dependency and moving this to ice box. Again, thank you Miguel for all your hard work on this. Great work! |
This comment was marked as outdated.
This comment was marked as outdated.
@roslynwythe I moved this into the new issue review column because the dependency is resolved. Please add a ready for prioritization label if its ready. |
We realized the use case for this is the wins randomizer. When we update our documentation (see depedency) then we will be ready to look at this again. |
Hi @roslynwythe, thank you for taking up this issue! Hfla appreciates you :) Do let fellow developers know about your:- You're awesome! P.S. - You may not take up another issue until this issue gets merged (or closed). Thanks again :) |
This comment was marked as outdated.
This comment was marked as outdated.
I assigned @daras-cu, a new member of the merge team, because she is interested in becoming familiar with WINS in order to write WINS issues and support other devs. |
Dependency
Overview
To expedite the process of locating a specific wins entry, each wins entry (which is also a javascript object) should have a unique ID as a key.
Action Items
wins-form-responses
andgh-requests
so setup will be required in both/google-apps-script/wins-form-responses
and/google-apps-script/gh-requests
main()
in debug mode.main()
for testing, you must follow instructions in Testing WINS in a test repositoryclasp
utility can be used to transfer code back and forth between the local worksation and the Google Drive as needed.Resources/Instructions
Google Apps Script
_wins-data file
wins page JS
Footnotes
Wins Apps Script Development Process ↩
Wins Form Admin Guide ↩
Wins-form (Response) Sheet ↩
The text was updated successfully, but these errors were encountered: