-
Notifications
You must be signed in to change notification settings - Fork 527
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
Case cost model - frontend #5140
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wssheldon
reviewed
Aug 29, 2024
wssheldon
approved these changes
Aug 29, 2024
mvilanova
approved these changes
Aug 29, 2024
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.
Thanks for building this out!
Co-authored-by: Will Sheldon <[email protected]>
Co-authored-by: Marc Vilanova <[email protected]>
wssheldon
added a commit
that referenced
this pull request
Sep 6, 2024
* Add cost models to case types * Fixes lint errors * Adds case cost type service * Enable case participant activity updates. * Renames function to be inclusive of cases * Gets all open cases by case type. * Calculates case costs. * Adds case cost scheduler * Adds UI for case cost type and adds case cost types api calls. * Merged * Adds case cost pages. * Enable users to set case cost models based on case type. * Reduce diff. * Fixes javascript lint errors. * Reduce the frequency of aggregating case costs. * Remove extra cost model combobox * Update src/dispatch/case_cost/views.py Co-authored-by: Will Sheldon <[email protected]> * Update src/dispatch/case_cost/views.py Co-authored-by: Marc Vilanova <[email protected]> * Fixes grammar. --------- Co-authored-by: Will Sheldon <[email protected]> Co-authored-by: Marc Vilanova <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds the ability to create case costs by assigning a cost model to case types. All cases of the same type use the same cost model to calculate ongoing response costs.
The final cost of a case is an accumulation of one or multiple cost types.
![Screenshot 2024-08-28 at 8 07 30 PM](https://private-user-images.githubusercontent.com/7540549/362520476-cb138534-2a5b-4b14-8280-b818a92622e3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMDA0MjQsIm5iZiI6MTczOTMwMDEyNCwicGF0aCI6Ii83NTQwNTQ5LzM2MjUyMDQ3Ni1jYjEzODUzNC0yYTViLTRiMTQtODI4MC1iODE4YTkyNjIyZTMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTFUMTg1NTI0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ODgxYjc2NzUyYWE2OWNlZjAxMzc0ZmI5OTFkM2YxY2Q3MWY0MWMzYTQyYWMwMzQ5ZWQ4YTgxMjgwYTEzY2UxYSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.QNA_GRFIDEk7ZM3SedfbarnC9MyIyE8LaSbwSVsB4MA)
![Screenshot 2024-08-28 at 8 17 28 PM](https://private-user-images.githubusercontent.com/7540549/362520470-acc48d73-ec00-48be-a44e-d438ec03dee6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMDA0MjQsIm5iZiI6MTczOTMwMDEyNCwicGF0aCI6Ii83NTQwNTQ5LzM2MjUyMDQ3MC1hY2M0OGQ3My1lYzAwLTQ4YmUtYTQ0ZS1kNDM4ZWMwM2RlZTYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTFUMTg1NTI0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YzFlMjFjNGFiMzY2NjcyOTFiYmY1ODViMGY4NDI4NmU1YTkxNDJiMjQwM2U1MmJjZWQ3YTQ5ZTg4OTQxMTc2YyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.iuNMIrnxd7dYUb1oeZRsxWSL3UXVhDtXDsaT-TNvaFI)
Each case type can be assigned a cost model, which are used to calculate ongoing response costs. If no cost model is assigned to a case type, all cases of that same type do not update their response costs.
![Screenshot 2024-08-28 at 8 10 44 PM](https://private-user-images.githubusercontent.com/7540549/362520475-e7505e90-10be-4197-9283-68d717e21901.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMDA0MjQsIm5iZiI6MTczOTMwMDEyNCwicGF0aCI6Ii83NTQwNTQ5LzM2MjUyMDQ3NS1lNzUwNWU5MC0xMGJlLTQxOTctOTI4My02OGQ3MTdlMjE5MDEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTFUMTg1NTI0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9M2NmMGEwNDZlOTI2Njc3NmJhN2FjMTFlNzY3NmQ4MWExNmUyYmVlNWI1NjMyYmI5YjdjMDAxZGRhYTQ2Y2ZkMyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.MkoVjaPc1WTRGWZk34w_ZjoKfxlAtN_z1iS9yAm255g)