Open DrIffathsultana opened 2 years ago
@DrIffathsultana is this
If this issue is for the google form/ spreadsheet then please connect with @macho-catt or @jbubar or @Aveline-art to understand how the google form on the wins page on the hackforla.org website ends up delivering an issue like this: https://github.com/hackforla/website/issues/2336 to the repo
My prioritization of this issue is dependent on it being for the Google form. If it is not for the google form, another issue will have to be made or edited and that should be prioritized at milestone 5
Progress: I have a copy of the form with a working script that creates new github issues from the responses. I still need to add the ability to create project cards from issues and also apply the contact us label.
Problem: When the end user goes back to edit the responses after submitting the first time, a new issue is created rather than the old one modified. This is because there's no apparent way to know which response is edited. When a form is edited, only the data fields that were updated will be passed to the script, so the new issue would look incomplete as well.
Solution: disable the ability to edit responses after the form is submitted for the first time. I have confirmed with Matthew Cacho mentioned above to verify that this is also what he does to avoid running into this issue.
Here's what the settings option looks like.
https://github.com/hackforla/website/issues/1980
This should probably be a separate issue so we can research the current best method, with the solution in the issue as backup if there's no better way.https://github.com/hackforla/website/issues/1980
role: product management
and size: 1pt
Next steps
https://github.com/hackforla/website/issues/1980
Two-factor authentication problem when trying to create the github account, consult with Bonnie. Or create a separate account specifically for this purpose.
@emecas please provide update
I was able to create the github account using the civictechindex@hackforla.org email.
Can a repo admin add this user to the repo? It needs write access in order to create project cards. https://github.com/cti-serv
The user name can be changed if something else is better. I tried these that are already taken cti-bot, cti-service.
Have reached out to admin to add the provided user to the repo. Still waiting for a response.
I started working on this again and I expect to be done by next week.
I made a copy of the form and spreadsheet to my own drive and will go through the steps to securing the api key from there before trying to do the same in the project drive.
After it's working. I will need someone with admin access to the project drive to copy the wrapper code to a private folder that's not viewable by developers. The idea is that the API key shouldn't be viewable by developers or other normal users of the drive. To do that, the wrapper code that has visibility of the key needs to be restricted as well, so that only the wrapper's functionality is exposed.
Need to make a way to store the Github Token with restricted permissions on CTI Google Drive. Talk to Bonnie about setting this up.
Edit: Refer to comment below
New drive made to store Keys & Tokens. I will be adding the necessary people to the drive during Thursday's Stand-up
Can I work with an admin on this? Or maybe temporarily give the civictechindex user more access. I would need to make sure the secret is not accessible to a developer account like mine but I can still call the library that does have access to the secret. I'm not too sure how to do that exactly, but I know what the end result behavior should be.
We can try this again.
I created the set of linked documents and scripts at https://drive.google.com/drive/u/1/folders/1_bARUvskj4AyaRtroJ5EoZkF2EO391Yv?ths=true They start with either Secret or Not secret. The Secret files need to be place into the secured drive. There may be permissions that need to be granted.
I added a check function in each script to check the connection to the linked document or script. Those can be run in the script editor to verify. I can show how to do that and I also need to document it.
Overview
When a user submits the 'Contact us form', a new alert / GitHub action / Github issue should be created to notify the PM for review and approval. The issue should have the label "Contact us" and be in the "New Issue Approval" column.
Action Items
https://github.com/hackforla/website/issues/1980
already found a way)Resources/Instructions
Figma page contact us page on CTI site reference issue #2353 from hackforla website project storing secrets for apps scripts - issue #1980 from hackforla website project Google App Script doc GitHub API