Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Implement Outbook in the Existing BarterAccount API #119

Open
10 tasks
mikelane opened this issue Mar 3, 2019 · 0 comments
Open
10 tasks

Implement Outbook in the Existing BarterAccount API #119

mikelane opened this issue Mar 3, 2019 · 0 comments
Labels
Back End Primarily has work in python and django enhancement help wanted

Comments

@mikelane
Copy link
Collaborator

mikelane commented Mar 3, 2019

Sisters of the Road Outbook

Depends on #113, #117

Description

Sisters is a safe space and is dedicated to maintaning a violence-free, respectful, and dignified environment in the cafe. If a customer violates the house rules, they can be put on an "out", meaning they are not invited to the cafe for some period of time. This duration is determined through a conversation with the customer and sisters staff.

We'd eventually like to be able to support the outbook for Sisters of the Road. We'd like to be able to allow the POS app to know if a client is currently out and we'd like to make it easy for SotR to generate the various reports that they are required to make.

Requirements

BarterAccount API changes

  • add field is_out to the serializer
  • add field out_reason to the serializer
  • add nested field for outbook events

Tests

  • add outbook events factory if not accomplished in Implement an Outbook Django Model #117
  • modify BarterAccountFactory to add optional outbook events
  • test api returns outbook events
  • test api returns correct out status with no outbook events
  • test api returns correct out status with outbook events that have expired in the past
  • test api returns correct out status with outbook events that have not yet started
  • test api returns correct out status when today falls within the outbook start and outbook end dates (test that today is the start date, today is between the start and end, and today is the end date).
@mikelane mikelane added enhancement help wanted Back End Primarily has work in python and django labels Mar 3, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Back End Primarily has work in python and django enhancement help wanted
Projects
None yet
Development

No branches or pull requests

1 participant