Closed timalces closed 1 year ago
Hi @ColonelPanicks, I've got a couple of questions about this issue - Firstly, re. the descriptions for upcoming events - if no description is set for the event, I'm currently just displaying a dash '-' for that event. To generate a description of the event automatically, it would require knowing the state of previous events to know what is being turned on/off. I'm happy to look into doing that but wanted to run it by you first before I spent time working it out. Also, re. the 'settings' buttons for each of the compute groups - there's not currently an obvious place for them to link to. In your mock up, you did mention that this may be a future addition. I've currently got them linking to the Policies tab as a placeholder, but I wanted to check whether you had something else in mind for now?
To generate a description of the event automatically, it would require knowing the state of previous events to know what is being turned on/off.
Just to add to this, if I recall correctly @ColonelPanicks we had a meeting a while back where Steve mentioned (in the context of the manage events page) that we should not be explicitly committing to actions - e.g. don't say turn off 3 nodes on this date. As the actual state of nodes when the request is carried out is uncertain, with users potentially making changes before then/ monitor might have switched things off, etc.
Perhaps instead we could generate simplified descriptions here of 'Match exact counts' or 'Match minimum counts'?
Resolved by #50
Add a new project dashboard page, containing 3 sections:
Overview
BudgetPolicy
)All of this data is currently shown on the Billing Management page, so the same data (see
@policy
,@billing_date
and@latest_cycle_details
, in thebilling_management
ProjectsController
method) can be used here.Groups
Core
Core
infrastructure. For now we will assume this is always "UP" (not something we currently check or record)chart_cumulative_costs
fromCostsPlotter
. Note: this will be the forecast costs for yesterdayCostsPlotter
specifically for this groups section. The raw costs are returned by thecost_breakdown
methoddatasets[]=core
to the costs breakdown linkCompute Groups
project.latest_instances
, or a new method added toInstanceTracker
that queries theInstanceLogs
directly (e.g.determine_counts
calculates how many are on, but does not record the total of on + off)groups[]=compute_group_name
to the page linkdatasets[]=compute_group_name
to the costs breakdown linkUpcoming Events
project.events
. I'm not sure these are sorted by date. There is also the methodevents_by_date(events)
that may or may not helpOneOffChangeRequest
orBudgetSwitchOffDecorator
so any view logic will need to accommodate both of theseeditable?
, and the user has correct permissions, include a cog icon link that goes to that event's edit pageGeneral Things to Consider/add
app/policlies/project_policy.rb
. This will be the same as forshow?
Dashboard
option. This can be found inviews/partials/_nav.erb