Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
B
buildingservice
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 0
    • Merge Requests 0
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

and though bugs are the bane of my existence, rest assured the wretched thing will get the best of care here

  • Confidential and Proprietary
  • BlocPower
  • buildingservice
  • Merge Requests
  • !38

Merged
Opened Feb 27, 2017 by Tillie Kottmann@deletescapeOwner

Refactor mech turk to be restful

  • Overview 25
  • Commits 16
  • Changes 8

Created by: cschloer

Can now be tested with this front end: https://github.com/Blocp/buildings/pull/49

Don't test on 744 MAC DONOUGH STREET, BK, 11233, there's some weird things in the dev database related to it.

  • I've simplified the model to work the same as all of the other models in our service.
  • The controller uses the "proc" function created in alessandro's recent PR
  • All of the wonky stuff (including calls to amazon mech turk and document service) is handled in the controller.
  • I added a mech_turk.py file in the libary to clean up the code.
  • You now must input a "requester_name" to the POST. This saves the name of the person who requested the mech turk hit in the database.
  • The "response_message" field is required for PUT and that response is sent to amazon mech turk on a rejection. The response_message is saved in the database.
  • Automatically reject hits if they are the wrong type.
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Reference: exconfidential/blocpower/buildingservice!38
Source branch: update-mech-turk