Skip to content
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

Apibranch #112

Open
wants to merge 56 commits into
base: backend
Choose a base branch
from
Open

Apibranch #112

wants to merge 56 commits into from

Conversation

alasali1
Copy link
Contributor

@alasali1 alasali1 commented Mar 2, 2022

Please read update in comments below

Swagger specification with host as lambda function, along with the JSON version uploaded to AWS API gateway.
issue #43

TESTING
To Test the API in AWS. Log in to AWS, look for simplePostLambda under lambda functions. Under the triggers look for the API gateway called AI Feedback Coach
image

Click on the lightning shaped button under test
image

At the bottom there is a textbox for the body. In this text box type the message and id for the feedback resource as shown below
image

As you will see we get a 500 Internal Server error. That is not supposed to happen. The yaml document originally works with sites such as http bin but I have yet to successfully integrate it to our Lambda function.

Abenezer1041 and others added 30 commits January 31, 2022 23:45
* first

* update on assignment

* Modified task.py

* deleted floop_data_15k.json and word2vec11.model

* removed the commented

* word2vec11.model file added

* updated

* update line 83

* update csv file

* updates of

* Update on the code

* floop_data_15k.json deleted

* DataFromS3 to Field1 changed

* line 25 added

* Update on task.py and added info.md file
* feat(makeReactBucket.sh): bypass user input with shell arg

* feat(makeReactBucket.sh): make script callable from anywhere

* chore(makeReactBucket.sh): make quotes convention more consistent

* feat(makeReactBucket.sh): extract initials validation function

* refactor(/devops): moved function to a helper file

* refactor(/devops): make function take arg instead of use global

* chore(/devops): lint, change from .sh to .bash

* refactor(makeReactBucket.json): converted to yml for consistency with other template files

* chore(makeReactBucket.json): delete file

* Merge development into dj-40

commit 29f3ca6
Author: Daniel <[email protected]>
Date:   Thu Feb 3 16:02:49 2022 -0800

    Python script run feedback datasets#22 (#30)

    * first

    * update on assignment

    * Modified task.py

    * deleted floop_data_15k.json and word2vec11.model

    * removed the commented

    * word2vec11.model file added

    * updated

    * update line 83

    * update csv file

    * updates of

    * Update on the code

    * floop_data_15k.json deleted

    * DataFromS3 to Field1 changed

    * line 25 added

    * Update on task.py and added info.md file

commit f293101
Merge: 4a8da9b 6f07a1e
Author: ChrisNavo <[email protected]>
Date:   Thu Feb 3 14:11:15 2022 -0800

    Merge pull request #59 from North-Seattle-College/react-S3-action

    React S3 Action deploy

commit 6f07a1e
Author: CNavo <[email protected]>
Date:   Wed Feb 2 21:50:37 2022 -0800

    React S3 Action deploy
…riable (#63)

* feat(makeReactBucket.bash): add region arg

* style(makeReactBucket.bash): lint, add function comment

* feat(makeReactBucket.bash): add env var

* fix(makeReactBucket.bash): fix when called by . ./
uses fetch to send request
determines if error using response.ok
sets response or error data to be passed up
CourtneyHoppus and others added 26 commits February 14, 2022 18:28
caught Boolean mistake
…nces

Python Regex for Splitting Feedback into Sentences stored in a List
Create a Submit button that handles POST request
Create a component for the feedback text
new PR for deploying lambda with GitHub Action
* first

* update on assignment

* Modified task.py

* deleted floop_data_15k.json and word2vec11.model

* removed the commented

* word2vec11.model file added

* updated

* update line 83

* update csv file

* updates of

* Update on the code

* floop_data_15k.json deleted

* DataFromS3 to Field1 changed

* line 25 added

* Update on task.py and added info.md file

* sendiment analysis
* Added notebook file that works in SageMaker

* Rename sage-maker-clustering.ipynb to backend/sage-maker-clustering.ipynb
 determin if sentence is a question
Updates script to upload contents of simpleLambda folder as a zip file
Create Automation for API Gateway
* chore(floop_data_collection.py): lint

* feat(floop_data_collection.py): get each message in a convo

* refactor(floop_data_collection.py): extract fn for getting data

* refactor(floop_data_collection.py): make get_data recursive, enforce a convo limit

* fix(floop_data_collection.py): pass dupe_list to get_conversations

* build(/data): add requirements.txt, argparse

* feat(floop_data_collection.py): ✨ add optional command line args, processed count

* fix(floop_data_collection.py): 🐛 move print statement within loop

* fix(floop_data_collection.py): ⚡ move dupe check above message collection call

* style(floop_data_collection.py): 🚨 lint

* chore(floop_data_collection.py): 🔥 remove console log

* feat(floop_data_collection.py): ✨ scrub pii with scrubadub

* feat(floop_data_collection.py): ✨ add env arg to set db path

* style(floop_data_collection.py): 🚨 lint

* refactor(floop_data_collection.py): 🎨 replace strings with constants

* refactor(floop_data_collection.py): 🎨 remove unnecessary variable

* feat(floop_data_collection.py): ✨ add entity detector
@alasali1
Copy link
Contributor Author

alasali1 commented Mar 7, 2022

Update

this API gateway was tested on an older version of the lambda function that was not functional. The lambda function has now been updated and deployed.

Description

As a user, I want to post a feedback message through the API gateway.

Gallery

Testing in Postman

2022-03-06 (2)

Tested

  • Postman
  • cURL

Testing

Prerequisites

  • Postman

Testing in Postman

  • Open Postman
  • Open a new request and select POST from the drop down menu.
  • Enter https://lqr99dj0r4.execute-api.us-west-2.amazonaws.com/test/feedback as the request URL.
  • Select JSON from the drop down menu.
  • Open the Body tab and enter { "feedback": "Sentence" }
  • Hit the Send button to view the response JSON.

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.