Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion strr-api/src/strr_api/services/application_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,18 @@
Application.Status.ADDITIONAL_INFO_REQUESTED,
]
APPLICATION_UNPAID_STATES = [Application.Status.DRAFT, Application.Status.PAYMENT_DUE]
APPLICATION_ASSIGN_STATES = [Application.Status.FULL_REVIEW, Application.Status.PROVISIONAL_REVIEW]
APPLICATION_ASSIGN_STATES = [
Application.Status.FULL_REVIEW,
Application.Status.PROVISIONAL_REVIEW,
Application.Status.PROVISIONAL,
Application.Status.NOC_PENDING,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For Payment Due, Paid applications the staff does not have any action and it should not be assigned to them when they cannot act on it

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As shared in the teams chat, I think current UXA and business understanding is that all applications in the examiner list view should be assignable.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Payment due and Paid statuses removed

Application.Status.NOC_EXPIRED,
Application.Status.ADDITIONAL_INFO_REQUESTED,
Application.Status.FULL_REVIEW_APPROVED,
Application.Status.PROVISIONALLY_APPROVED,
Application.Status.AUTO_APPROVED,
Application.Status.DECLINED,
]


class ApplicationService:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,9 @@ def test_assign_and_unassign_application(session, client, jwt):
rv = client.post("/applications", json=json_data, headers=headers)
assert HTTPStatus.OK == rv.status_code
application_number = rv.json.get("header").get("applicationNumber")
application = Application.find_by_application_number(application_number=application_number)
application.status = Application.Status.PAYMENT_DUE
application.save()

staff_headers = create_header(jwt, [STRR_EXAMINER], "Account-Id")
rv = client.put(f"/applications/{application_number}/assign", headers=staff_headers)
Expand Down