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

feat: project page metrics display last 7D #2896

Merged
merged 1 commit into from
Apr 16, 2024
Merged

Conversation

mikeldking
Copy link
Contributor

@mikeldking mikeldking commented Apr 15, 2024

resolves #2882

Screenshot 2024-04-15 at 5 13 56 PM

@dosubot dosubot bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label Apr 15, 2024
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@mikeldking mikeldking changed the base branch from main to sql April 15, 2024 23:16
@mikeldking mikeldking merged commit 066bc16 into sql Apr 16, 2024
5 checks passed
@mikeldking mikeldking deleted the 2882-project-restrict-7d branch April 16, 2024 00:45
Comment on lines -66 to +102
refetch({}, { fetchPolicy: "store-and-network" });
// refetch({}, { fetchPolicy: "store-and-network" });
Copy link
Contributor

Choose a reason for hiding this comment

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

@mikeldking Was this deliberate?

Comment on lines +39 to +45
// Create a time range for the past 7 days
// Artificially set the end time to far in the future so that it is ostensibly is "current"
const now = Date.now();
return {
start: subDays(now, LOOKBACK_DAYS).toISOString(),
end: addDays(now, 365).toISOString(),
};
Copy link
Contributor

Choose a reason for hiding this comment

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

@mikeldking Curious, is there benefit to making our time ranges optionally open?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XL This PR changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[persistence] restrict the project page metrics to 7D
3 participants