-
Notifications
You must be signed in to change notification settings - Fork 4
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
Statistics admin page #1567
base: develop
Are you sure you want to change the base?
Statistics admin page #1567
Conversation
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.
Awesome work with this Siovan. I've left a couple comments in the code itself.
Just a couple extra points:
- Is the CSV supposed to download the entire list or the filtered list? Currently it's doing everything, I just wanted to confirm this is intended.
- It looks like localization still needs to be done.
Placeholder=@Localizer["Search by workspace name or acronym"] | ||
Adornment="Adornment.Start" | ||
AdornmentIcon="@Icons.Material.Filled.Search" | ||
IconSize="Size.Medium" Class="mt-0" |
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.
await using var context = await _dbContextFactory.CreateDbContextAsync(); | ||
const int numberOfDays = 7; | ||
|
||
|
||
|
||
|
||
_statsRows = context.Projects |
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.
It looks like this block isn't retrieving the Workspace Lead properly, if I download the CSV it's left blank.
Department = p.Sector_Name, | ||
LastLogin = p.LastLoginDate | ||
|
||
// Leads = p.Users?.Where(u => u.RoleId == (int) Project_Role.RoleNames.WorkspaceLead).Select(u => u.User_Name).ToList(), |
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.
If the code is commented out, can we just delete it for clarity?
|
||
} | ||
await ReloadWorkspaceStatsTableAsync(); | ||
} |
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.
Need to delete this; unnecessary (just check for string values)
@@ -33,6 +41,7 @@ public class DatahubProjectStatsRow | |||
public ResourceStatus DatabricksStatus { get; set; } | |||
|
|||
public bool ShowUserDetails { get; set; } | |||
public bool ShowBudgetDetails { get; set; } |
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.
delete (check for others)
Pull Request
Description
Improved admin statistics page.

Changes
Testing
Checklist