Skip to content
This repository has been archived by the owner on Aug 29, 2022. It is now read-only.

Story/client setup endpoint #32

Merged
merged 37 commits into from
Jul 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
3882389
added azure api call for client setup
michellexliu Jul 26, 2021
4ee047b
added azure api call for client setup
michellexliu Jul 26, 2021
f0d5161
installed googleapis and uniqid packages
michellexliu Jul 26, 2021
9872d0c
google api implementation for creating copies of a template and shari…
michellexliu Jul 27, 2021
35304b1
changed req.body to body, modified file name
michellexliu Jul 27, 2021
8899878
changed emailMessage, set to can view
michellexliu Jul 27, 2021
7603243
changes split argument to regex
michellexliu Jul 27, 2021
3f7da50
moved credentials to .env and referenced them in new credentials object
michellexliu Jul 27, 2021
60957d4
updated credentials in azure function
michellexliu Jul 27, 2021
5ab4c80
moved credentials after dotenv config
michellexliu Jul 27, 2021
19f40a9
fixed client_id and updated private_key to escape \n characters
michellexliu Jul 27, 2021
5a480a4
context.res for testing
michellexliu Jul 27, 2021
bca95ce
added error handling if err
michellexliu Jul 27, 2021
dceff92
changed from async to regular function
michellexliu Jul 27, 2021
5808941
put async back
michellexliu Jul 27, 2021
5abc20e
moved credentials to if body
michellexliu Jul 27, 2021
15cfad4
moved credentials out of if body to test if private_key is causing is…
michellexliu Jul 27, 2021
83ac671
moved auth
michellexliu Jul 27, 2021
5d5f08c
added scopes
michellexliu Jul 27, 2021
fac9cae
added googleapis
michellexliu Jul 27, 2021
81f5058
moved fetch out of else body
michellexliu Jul 28, 2021
ef7bde1
moved fetch to new async function, created successMsg and errorMsg fu…
michellexliu Jul 28, 2021
8b28550
moved file sharing to .then callback
michellexliu Jul 28, 2021
efb038a
simplified error and success messging
michellexliu Jul 28, 2021
807b010
moved success message to end
michellexliu Jul 28, 2021
b141328
added error handling for missing page title, missing agency, missing …
michellexliu Jul 28, 2021
ec6e5aa
get rid of async
michellexliu Jul 28, 2021
4f17355
changed out name from res to
michellexliu Jul 28, 2021
af8d324
changed back to res
michellexliu Jul 28, 2021
0086bd2
changed from context.res to context.done
michellexliu Jul 28, 2021
fbdf92c
deleted end context.done
michellexliu Jul 28, 2021
0e49d71
added curly braces around function
michellexliu Jul 28, 2021
1303f52
combination of context.done and context.res
michellexliu Jul 28, 2021
fc85a52
removed extraneous success message
michellexliu Jul 28, 2021
d6d0f5b
new rfc2822 compliant regexp
michellexliu Jul 28, 2021
262fbc9
deleted g tag in regex
michellexliu Jul 28, 2021
75ed3eb
changed backend to backend-stub, removed unused test code in backend/…
michellexliu Jul 28, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion .github/workflows/dev_ctofeedback.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
workflow_dispatch:

env:
AZURE_FUNCTIONAPP_PACKAGE_PATH: "./backend-stub" # set this to the path to your web app project, defaults to the repository root
AZURE_FUNCTIONAPP_PACKAGE_PATH: "./backend" # set this to the path to your web app project, defaults to the repository root
NODE_VERSION: "14.x" # set this to the node version to use (supports 8.x, 10.x, 12.x)

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"azureFunctions.deploySubpath": "backend-stub",
"azureFunctions.deploySubpath": "backend",
"azureFunctions.postDeployTask": "npm install (functions)",
"azureFunctions.projectLanguage": "JavaScript",
"azureFunctions.projectRuntime": "~3",
Expand Down
6 changes: 3 additions & 3 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
"isBackground": true,
"dependsOn": "npm install (functions)",
"options": {
"cwd": "${workspaceFolder}/backend-stub"
"cwd": "${workspaceFolder}/backend"
}
},
{
"type": "shell",
"label": "npm install (functions)",
"command": "npm install",
"options": {
"cwd": "${workspaceFolder}/backend-stub"
"cwd": "${workspaceFolder}/backend"
}
},
{
Expand All @@ -25,7 +25,7 @@
"command": "npm prune --production",
"problemMatcher": [],
"options": {
"cwd": "${workspaceFolder}/backend-stub"
"cwd": "${workspaceFolder}/backend"
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The following are the main folders in this repository

This folder contains the source files for our feedback module. It produces the widget that folks can click in order for them to pull out the feedback module.

### `backend-stub`
### `backend`

This folder contains a simple backend that accepts any requests from `feedback-module`. It mainly responds `{ "status": "OK"}` or `{ "status": "error", "message": "An error occured"}` on command.

Expand Down
2 changes: 0 additions & 2 deletions backend-stub/.gitignore

This file was deleted.

Loading