-
Notifications
You must be signed in to change notification settings - Fork 40
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
[Bug]Support for date range in report generation #524
base: main
Are you sure you want to change the base?
Conversation
…ation Signed-off-by: sumukhswamy <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #524 +/- ##
=======================================
Coverage 71.19% 71.20%
=======================================
Files 31 31
Lines 2052 2066 +14
Branches 454 460 +6
=======================================
+ Hits 1461 1471 +10
- Misses 585 589 +4
Partials 6 6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: sumukhswamy <[email protected]>
Signed-off-by: sumukhswamy <[email protected]>
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.
what's the behavior for reports created before this PR?
public/components/report_definitions/create/create_report_definition.tsx
Outdated
Show resolved
Hide resolved
timeFrom: Date; | ||
timeTo: Date; | ||
} | ||
|
||
export function CreateReport(props: { [x: string]: any; setBreadcrumbs?: any; httpClient?: any; chrome: any }) { | ||
export function CreateReport(props: { |
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.
nit, i know this naming is not from this PR. but use createReport
? And is it possible to start adding types for these any?
setShowTimeRangeError(true); | ||
error = true; | ||
} | ||
else{ |
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.
formatting?
…nition.tsx Co-authored-by: Joshua Li <[email protected]> Signed-off-by: Sumukh Swamy <[email protected]>
the reports being created always took the time diff as the current time minus the duration so the backend parameters just have now-duration for beginTime and endTime |
But i see the other PR removed |
yes that is correct I removed the logic for duration, I can add it back for older reports support |
Signed-off-by: sumukhswamy <[email protected]>
Have updated the backend PR to work for the older params and new ones as well |
Description
While generating reports the time picker which shows the time from and time to is not working
![image](https://private-user-images.githubusercontent.com/107440906/410222390-d21a21e4-5732-44b5-8768-ceae050fb4e4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMTE3MTYsIm5iZiI6MTczOTMxMTQxNiwicGF0aCI6Ii8xMDc0NDA5MDYvNDEwMjIyMzkwLWQyMWEyMWU0LTU3MzItNDRiNS04NzY4LWNlYWUwNTBmYjRlNC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQyMjAzMzZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iYjM1NTczMjY0NjM5ZmU5NjFlNDBlNDczYzE4YTBjMDY1MGY2ZTk0ZjExYmY0ZDQwZjJmYWI4Nzg3YmI5ZjYyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.HF6dZjjdY3GtMHz_winOklePo0Y64zlvR5VBvTxs4kw)
![image](https://private-user-images.githubusercontent.com/107440906/410222680-93032e11-20c9-4ea2-8f12-2b33db0d7fd6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMTE3MTYsIm5iZiI6MTczOTMxMTQxNiwicGF0aCI6Ii8xMDc0NDA5MDYvNDEwMjIyNjgwLTkzMDMyZTExLTIwYzktNGVhMi04ZjEyLTJiMzNkYjBkN2ZkNi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQyMjAzMzZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yNjliOWFjYjE4NDhkMzlkNGYxNmFmZmE2MDM1OGE3YWQ3MjViMjBkODc0OGY4ZjY0ZDI3OTY5MTc3NTU3MmZjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.tzlBytH-8kv54gU9xlfdIbsBOS6Y_jxj6GTQ-gID-Q8)
it auto selects the range as 'Now' and the duration specified, This happens to the edit functionality of the reports as well.
Fix after
https://github.com/user-attachments/assets/401ec030-7b92-4647-89e9-d77f240377e3
Issues Resolved
#414
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.