Skip to content
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 22 commits into from
Aug 29, 2024
Merged

Conversation

metroid-samus
Copy link
Contributor

@metroid-samus metroid-samus commented Aug 28, 2024

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
Screenshot 2024-08-28 at 8 17 28 PM

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

@metroid-samus metroid-samus self-assigned this Aug 28, 2024
@metroid-samus metroid-samus added the enhancement New feature or request label Aug 28, 2024
@metroid-samus metroid-samus marked this pull request as ready for review August 29, 2024 03:28
Copy link
Contributor

@mvilanova mvilanova left a 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!

src/dispatch/case_cost/views.py Outdated Show resolved Hide resolved
src/dispatch/case_cost_type/views.py Outdated Show resolved Hide resolved
@metroid-samus metroid-samus merged commit 68418cd into master Aug 29, 2024
8 checks passed
@metroid-samus metroid-samus deleted the enhancement/case-cost-model-ui branch August 29, 2024 17:34
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
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants