Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bonniernews/gf-developer-assessment
https://github.com/bonniernews/gf-developer-assessment
Last synced: about 7 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/bonniernews/gf-developer-assessment
- Owner: BonnierNews
- License: mit
- Created: 2023-03-20T15:54:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-15T22:42:05.000Z (over 1 year ago)
- Last Synced: 2024-04-23T03:38:26.123Z (7 months ago)
- Language: JavaScript
- Size: 516 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Greenfield developer assessment
## Background
Jane's car broke down on her way to work, and she won't come in until tomorrow.
Stakeholders are expecting this this code to be up and running in production later today.
Fortunately for us Jane was working test-driven, however the test doesn't seem to pass and there seems to be some missing code.Can you help us??
## The task
In the **worker** folder there's a test [sequence-feature](./worker/test/feature/order/sequence-feature.js) that doesn't work.
We are pretty sure that Jane knew what she was doing while writing the test, you can add logs as you see fit though!The lambdas that needs some love is:
- [get-or-create-account](./worker/lib/lambdas/order/get-or-create-account.js)
- [get-or-create-subscription](./worker/lib/lambdas/order/get-or-create-subscription.js)### Logs
After a test run the logs can be found in `./worker/logs/test.log`
### Idempotency
Please remember that these lambdas need to be idempontent, meaning that the state of the entity the lambda modifies should not be changed if it runs a second time with the same input.
### More info
This monorepo contains 3 different applications.
- **crm-api**, an application that handles customer data such as an account
- **subscription-api**, an application that handles subscriptions and payment methods
- **worker**, an application handling messages being pushed by google pubsub