Open macho-catt opened 2 years ago
Hi @macho-catt.
Good job adding the required labels to this issue.
Additional Resources: Wiki: How to add status labels to issues (WIP. Link will be updated when the wiki is done) Wiki: How to create issues (WIP. Link will be updated when the wiki is done)
Availability for this week: 10 hrs. My estimated ETA for completing this issue: 2021/12/28
@lopezpedres
Please add update using the below template (even if you have a pull request). Afterwards, remove the 'To Update !' label and add the 'Status: Updated' label.
If you need help, be sure to either: 1) place your issue in the developer meeting discussion column and ask for help at your next meeting, 2) put a "Status: Help Wanted" label on your issue and pull request, or 3) put up a request for assistance on the #hfla-site channel.
You are receiving this comment because your last comment was before Monday, December 20, 2021 at 11:19 PM PST.
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 })
Doing
After checking that the unique iD for each object was set correctly and corresponded to the row number in the Wins-form (Responses) file, I wanted to try to use the GitHub API to update the _wins-data.json file in my repository. Just to check that the output in the GitHub repository would be the same as the one in the previous image.
Problems
For some reason that I still can't figure it, whenever I try to make a PUT request, which is part of the process of updating the _wins-data.json file (line 186 of the gh-request App Script ), using my own token and repository, I get a 404 response.
Blockers: No blockers Availability: 10 hrs ETA: December 30th
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:
// Create an array of objects (key-value pair) based on the column headers and rows of values so the data does not need to be formatted later in GitHub
const keyValueData = filteredRows.map(row => {
const valueObject = new Object();
row.forEach((value, i) => {
valueObject[columnHeaders[i]] = value;
})
const date = valueObject["Timestamp"]
const formatDate = Utilities.formatDate(date, 'Etc/GMT', 'yyyy-MM-dd\'T\'HH:mm:ss.SSS\'Z\'')
valueObject["UniqueID"]=`${formatDate} : ${valueObject["Email Address"]}`
return valueObject;
})
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!
I moved this issue from the icebox to the new issue approval column because the dependency has been satisfied.
@ExperimentsInHonesty, this issue's dependency is also back in the new issue approval column due to your comment on #2901.
If we want to reopen #2901, do you want this issue to be put back into the icebox until the dependency is fully satisfied?
Sending this issue back to the Ice Box as its dependency #2901 has been determined to be not satisfied after its merge.
The dependency https://github.com/hackforla/website/issues/2901 has been satisfied, however two new issues should be considered as dependencies: #3722 and #3641
Hi @roslynwythe, thank you for taking up this issue! Hfla appreciates you :)
Do let fellow developers know about your:- i. Availability: (When are you available to work on the issue/answer questions other programmers might have about your issue?) ii. ETA: (When do you expect this issue to be completed?)
You're awesome!
P.S. - You may not take up another issue until this issue gets merged (or closed). Thanks again :)
Added dependencies: https://github.com/hackforla/website/issues/3722 and https://github.com/hackforla/website/issues/3641, as it would be desirable to defer updates to Google Apps Script code until that code is source controlled. Moving the issue to the Ice Box.
@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.
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
Resources/Instructions
Google Apps Script _wins-data file wins page JS [^1]:Wins Apps Script Development Guide - see draft