Skip to main content

Seed Service Ratings mircoservice

Project description

Service Rating is built around two models: Invites and Ratings.

If you want the user to rate the service they received, you first create an Invite for them. The user then gets sent a message to invite them to rate the service they received.

When the user rates the service he received, the feedback they provide is stored in Ratings. A Rating is created for each question they answered, and it stores the question and the answer in the model.

Invite creation typically happens via a Post request to the /invite endpoint.

When a user has completed their service rating by answering all the questions, they Invite field completed should be set to True to prevent sending additional invitations.

A special endpoint /invite/send should be hit in order to send all the invites that need to go out. Hitting this endpoint activates the SendInviteMessages task, which in turn activates the task that sends out the individual invite messages. This can be automated by adding a schedule to the scheduler that hits the endpoint at predetermined times (typically it could hit the endpoint once every weekday)

Some environment variables to take note of (see settings.py): TOTAL_INVITES_TO_SEND: The number of messages that will be sent to invite users to rate their service. DAYS_BETWEEN_INVITES: The number of days to wait between sending invite messages to users. INVITE_TEXT: The invite message to be sent to the user.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

seed-service-rating-0.9.0.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

seed_service_rating-0.9.0-py2.py3-none-any.whl (21.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file seed-service-rating-0.9.0.tar.gz.

File metadata

File hashes

Hashes for seed-service-rating-0.9.0.tar.gz
Algorithm Hash digest
SHA256 fd6f7f5f21631726304559302e356a75f95cd5486e7ee21ffafe5d446bf32257
MD5 ca6395134e6669d6d36fd769da6769c8
BLAKE2b-256 d9742cadd6428f5b20d5a6bd2d4086377df3360d0fc21814955f7ada9a931cdd

See more details on using hashes here.

File details

Details for the file seed_service_rating-0.9.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for seed_service_rating-0.9.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 07d4745c254fa773718ea407a829bcfd6fe3abcb8bcc765ef9e9c9722004e397
MD5 680f6f45fffc1958f2428c9d758a1564
BLAKE2b-256 09750791c2177366d6c93aee11b9e3cf87e8e03334906a0386e8a49b7b2079b6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page