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

HOSTSD-237 Export to Excel #119

Merged
merged 1 commit into from
Mar 19, 2024
Merged

HOSTSD-237 Export to Excel #119

merged 1 commit into from
Mar 19, 2024

Conversation

Fosol
Copy link
Contributor

@Fosol Fosol commented Mar 19, 2024

Added endpoints to download the server data as an Excel document. We can include more information about each server if we want, but presently I am only including the basic information.

Storage Trends downloads the data for each month.

image

Excel Spreadsheet

image

@Fosol Fosol added the enhancement New feature or request label Mar 19, 2024
@Fosol Fosol self-assigned this Mar 19, 2024
React.useEffect(() => {
const values = [
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cleaned up implementation to reduce additional requests.

filter={
<div className={styles.date}>
<DateRangePicker
values={dateRange}
onChange={async (values, e) => {
setDateRange(values);
await findServerHistoryItems({
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need since changing the date range will make this request with the useEffect

@@ -5,11 +5,11 @@ namespace HSB.DAL.Services;

public interface IServerHistoryItemService : IBaseService<ServerHistoryItem>
{
IEnumerable<ServerHistoryItem> Find(ServerHistoryItemFilter filter);
IEnumerable<ServerHistoryItem> Find(ServerHistoryItemFilter filter, bool includeRelated = false);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed new property so that downloads will have the additional information.

@Fosol Fosol merged commit b2d44fb into bcgov:main Mar 19, 2024
4 checks passed
@Fosol Fosol deleted the 237 branch March 19, 2024 14:08
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.

1 participant