Skip to content
This repository has been archived by the owner on Dec 19, 2021. It is now read-only.

Initial refactoring of the dashboard logic #393

Merged
merged 12 commits into from
Oct 25, 2021
Merged

Conversation

NickSchimek
Copy link
Member

Description

Refactored the dashboard widget. Moved the responsibility for serializing the objects into a model.
I did find one bug while doing this.
The "This Week" for displaying the manager date was never executing, because it had the same logic as the one for "Yesterday".

Created new scopes:

TicketModel.new() -> Returns all tickets with the status new

  • TicketModel.in_progress() and TicketModel.closed() exist as well.

What issue is this solving?

Closes codeforpdx/dwellingly-app/issues/681

Right now this is duplicated, because the frontend needs to be updated
to use the endpoint dashboard instead of widget.
@NickSchimek NickSchimek enabled auto-merge (squash) October 25, 2021 11:56
@NickSchimek NickSchimek merged commit 409a146 into development Oct 25, 2021
@NickSchimek NickSchimek deleted the rfctr_dash_model branch October 25, 2021 12:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move serializing a widget to a model class
1 participant