-
Notifications
You must be signed in to change notification settings - Fork 14
ft-close-incident-reports: update incident report transitional state #322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
efb7753
to
2df730e
Compare
).objects.get_or_create(asset_incident_report_id=self.incident_report.id) | ||
self.transition_state = self.transition_state[0] | ||
|
||
def test_update_asset_status_from_lost_to_available(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is outside the context of the story. (fyi)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please elaborate on this
bdb4334
to
c1cb5d9
Compare
- Add model signals to listen for changes - Add unit tests for the signals [Delivers ##167427843]
- update model signals - Add unit tests for the updated signals [Delivers #164101493]
- Update model signals - Add unit tests for the updated signals - Fix failing linting checks - fix failing unit tests [Delivers #164101493]
c1cb5d9
to
978a7d2
Compare
978a7d2
to
50fc63d
Compare
- Add notifications model - add signals to create notifications - add unit tests - configure django_q and django_cache - resolve merge conflicts - update README.md - apply PR feedback - remove curly braces from notification body template - update functionality to close transition report on asset status change to `lost` or `damaged` [Delivers #161678177]
50fc63d
to
e4fec7c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also add test to show that this could be accomplished via endpoint. You know, it serves as a documentation on how to use the api level interface.
7ef99e7
to
0c2331b
Compare
- Add notifications model - add signals to create notifications - add model level unit tests - configure django_q and django_cache - resolve merge conflicts - update README.md - apply PR feedback - remove curly braces from notification body template - update functionality to close transition report on asset status change to `lost` or `damaged` - add api level api tests [Delivers #161678177]
0c2331b
to
3c8b6f6
Compare
What does this PR do?
Add functionality for closing an incident report if an asset status moves from damaged/lost to
allocated/available
Description of Task to be completed?
Update an assets's
transition state
toCLOSED
when an Asset status is changed from(DAMAGED, LOST)
to either(AVAILABLE, ALLOCATED)
How should this be manually tested?
{base_url}/api/v1/incidence-reports/
Any background context you want to provide?
What are the relevant pivotal tracker stories?
164101493
Postman Documentation
Screenshots (If applicable)