Skip to content

Commit

Permalink
chore(nit): Fix overlap in state machine diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Dec 2, 2024
1 parent 41bff30 commit de47d21
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
5 changes: 3 additions & 2 deletions app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,9 @@ class ApplicationStatus(StrEnum):
#:
#: (``/applications/email-sme/{id}``)
INFORMATION_REQUESTED = i("INFORMATION_REQUESTED")
#: Borrower doesn't accept or decline the invitation, doesn't submit the application or information requested, or
#: doesn't start external onboarding while the lender hasn't started application review.
#: Borrower doesn't accept or decline the invitation, doesn't submit the application or information requested,
#: doesn't start external onboarding while the lender hasn't started application review, or doesn't respond to
#: the lender externally.
#:
#: (:typer:`python-m-app-update-applications-to-lapsed`)
LAPSED = i("LAPSED")
Expand Down
3 changes: 1 addition & 2 deletions app/routers/applications.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,8 +543,7 @@ async def lapse_application(
models.Application,
Depends(
dependencies.get_scoped_application_as_user(
roles=(models.UserType.FI,),
statuses=(models.ApplicationStatus.STARTED,),
roles=(models.UserType.FI,), statuses=(models.ApplicationStatus.STARTED,)
)
),
],
Expand Down
Binary file modified docs/_static/state-machine.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions docs/contributing/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -268,18 +268,18 @@ Application status transitions
https://play.d2lang.com
https://pincel.app/tools/svg-to-png
α -> PENDING: Credere sends an invitation to the borrower
PENDING -> LAPSED: borrower doesn't accept or decline the invitation
PENDING -> LAPSED: borrower doesn't\naccept or decline the invitation
PENDING -> DECLINED: borrower declines the invitation
PENDING -> ACCEPTED: borrower accepts the invitation
ACCEPTED -> LAPSED: borrower doesn't submit the application
ACCEPTED -> LAPSED: borrower doesn't\nsubmit the application
ACCEPTED -> SUBMITTED: borrower submits the application
SUBMITTED -> LAPSED: borrower doesn't start external onboarding {class: external}
SUBMITTED -> LAPSED: borrower doesn't\nstart external onboarding {class: external}
SUBMITTED -> STARTED: lender starts application review
STARTED -> INFORMATION_REQUESTED: lender requests\nthe borrower to update a document {class: native}
STARTED -> REJECTED: lender rejects the application
STARTED -> APPROVED: lender approves the application
STARTED -> LAPSED: lender lapses the application if the supplier is unresponsive during the review process
INFORMATION_REQUESTED -> LAPSED: borrower doesn't submit the information requested {class: native}
STARTED -> LAPSED: lender lapses the application if the borrower\nis unresponsive to external messages
INFORMATION_REQUESTED -> LAPSED: borrower doesn't\nsubmit the information requested {class: native}
INFORMATION_REQUESTED -> STARTED: borrower updates the document {class: native}
classes: {
native.style.stroke: maroon
Expand Down

0 comments on commit de47d21

Please sign in to comment.