-
-
Notifications
You must be signed in to change notification settings - Fork 785
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 has been minimized.
This comment has been minimized.
This comment was marked as outdated.
This comment was marked as outdated.
This comment has been minimized.
This comment has been minimized.
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 has been minimized.
This comment has been minimized.
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. |
UpdateI have added code to the
Follow-up question: Do rows ever get deleted from the |
Link to updated insructions for wins_data issue: |
@daras-cu We do not delete rows from the responses sheet |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Update: |
Please add update using the below template (even if you have a pull request). Afterwards, remove the '2 weeks inactive' label and add the 'Status: Updated' label.
If you need help, be sure to either: 1) place your issue in the You are receiving this comment because your last comment was before Monday, December 30, 2024 at 11:04 PM PST. |
Update:
|
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: