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

Changed 'wakeword' to 'audiosample' to better reflect the backend table. #45

Closed
wants to merge 1 commit into from

Conversation

snekiam
Copy link
Member

@snekiam snekiam commented Feb 17, 2020

What's New?

This addresses #44 - Refactor API for data upload.

Fixes #<<ISSUE_NUMBER>> ... (e.g. #9)

Type of change (pick-one)

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Tested locally using firefox/postman

Checklist (check-all-before-merge)

formatting help: - [x] means "checked' and - [ ] means "unchecked"

  • I documented my code according to the Google Python Style Guide

  • I ran ./build_docs.sh and the docs look fine

  • I ran ./type_check.sh and got no errors

  • I ran ./format.sh because it automatically cleans my code for me 😄

  • I ran ./lint.sh to check for what "format" missed

  • I added my tests to the /tests directory

  • I ran ./run_tests.sh and all the tests pass

@snekiam
Copy link
Member Author

snekiam commented Feb 17, 2020

This will break the current web recorder until it is updated to reflect the new endpoint.

@mfekadu
Copy link
Member

mfekadu commented Feb 18, 2020

@snekiam

I was thinking it could be as simple as @app.route('/audiosample', methods=['POST']) such that the fact that it is a POST request implies new data is being added

@mfekadu mfekadu self-requested a review February 18, 2020 01:15
@@ -69,7 +69,7 @@ def handle_question():
return jsonify(response), SUCCESS


@app.route('/new_data/wakeword', methods=['POST'])
@app.route('/new_data/audiosample', methods=['POST'])
Copy link
Member

Choose a reason for hiding this comment

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

let's go with /audiosample to keep it simple

Copy link
Member

@mfekadu mfekadu Feb 24, 2020

Choose a reason for hiding this comment

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

@Waidhoferj what are your thoughts?

Copy link
Member Author

Choose a reason for hiding this comment

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

I have no preference either way.

@snekiam
Copy link
Member Author

snekiam commented Jun 14, 2020

Closing since this is super small and super old.

@snekiam snekiam closed this Jun 14, 2020
@kgoo124 kgoo124 deleted the snekiam-api-work branch June 24, 2020 06:47
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