Implemented closing a Solicitation at `call_period_end + grace_period`
NB: Does not complete STT-862 since the Submitted -> InReview transition isn't implmented yet.
Along the way:
- Overhauled how we initialize the ORM
- Removed
clear_mappers()
frominitialize_persistence()
- Made a singlton
mapped_metadata
to use overmap_orm
so that we only map the ORM once to keep SQLA happy
- Removed
- Added
APScheduler
andtime-machine
to our list of dependencies-
APScheduler
handles triggering Solicitation close at the appropriate time -
time-machine
lets us manipulate time in our tests so that we don't have to worry about our Solicitations' close times when testing whether they close correctly- Beware: Using this with our API will break authentication unless you make a new JWT between moving time around and making a request
-
- Added the first application-layer service to the
solicit
package
Edited by Sam Kagan