Skip to content

feat: Add saving form submissions to google sheet#36

Open
sajclarke wants to merge 4 commits intodevelopfrom
feat/google-sheet-processing
Open

feat: Add saving form submissions to google sheet#36
sajclarke wants to merge 4 commits intodevelopfrom
feat/google-sheet-processing

Conversation

@sajclarke
Copy link
Contributor

@sajclarke sajclarke commented Jan 5, 2026

Description

Update form processor to optionally save form submission to specified google sheet

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Changes Made

  • Updated schema for exit survey form to save submission to google sheet

Notes

Testing

  • Manual tests completed
  • Added unit tests
  • Added e2e tests

Related Github Issue(s)/Trello Ticket(s)

https://trello.com/c/eBxlufOF/112-update-exit-survey-form-processing-api

Checklist

  • Code follows project style guidelines
  • Self-review completed
  • Documentation updated

@amazon-inspector-n-virginia
Copy link

⏳ I'm reviewing this pull request for security vulnerabilities and code quality issues. I'll provide an update when I'm done

.replace(/([A-Z])/g, ' $1') // Add space before capitals
.replace(/[_-]/g, ' ') // Replace underscores and hyphens with spaces
.trim()
.replace(/^\w/, (c) => c.toUpperCase()); // Capitalize first letter

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Description: Cross-site scripting vulnerability detected. User input is being used in HTML output without proper sanitization.
This could lead to session hijacking, malware installation, or phishing attacks.
Always sanitize and encode user inputs before including them in output using context-appropriate encoding methods.

Severity: High

@amazon-inspector-n-virginia
Copy link

✅ I finished the code review, and left comments with the issues I found.

"config": {
"spreadsheetId": "{{db:exit-survey:spreadsheet_id}}",
"sheetName": "Responses",
"fields": [
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if we do something like this

Suggested change
"fields": [
"fields": [
{
"title": "Timestamp",
"key": "_timestamp"
}
]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't mind that. Do you want to submit an update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants