Closed lache-melvin closed 3 months ago
We had issue with Pagination in graphql in reports config, should spend some time thinking about how to make report more resilient to paginations in the future
Carry over in #4668
Basic Reports were tested in V2.3.0 Release testing, so moving to Done since there is a new issue linked above for carryover issues ✅
Basic Reports
Spec Document
Tasks
Summary
An area in omSupply for reports:
Additional context 💌
How we use report already ?
Export to excel ?
How do we keep report working (backwards compatibility) ?
Extra tools to speed up report display (like seeing to arguments etc..)
Meeting 25-06
> Should still have custom 'branding' on reports, which means the 'data' part of the report should be identified, so it can be displayed as a table in omSupply. > > Filter detail view is designs is a swipe detail view on the right, this for v1 could just be normal details view (like shipments etc) > > There needs to be a button on filters to apply filter (generate report). Starting point for a report could be blank page with just the filter detail view. > > Need to also export to excel, though we could just export data to csv, but would require a mapping between html result and something, it's probably good to make this something a starting point for future extensions (thus to use some excel library rather then csv), although would also be good to check how excel xml is structure and if there is more direct mapping between html and xml > > Preference button from report view would show the configurations from this issue: https://github.com/msupply-foundation/open-msupply/issues/3882 > > Program reports to be consolidated into the same report page > > Should display the table of data before printing, for now just render output html (the data bit of it), no pagenation > > Reports page should have some filter at some stage (cause could have a lot of reports) > > Can get styles from FigmaPermissions ?
Tests
We will try to write full set of tests and setup instructions in this epic. As we submit PRs the test will be updated here and referenced in the PR. This will allow QA team to build test templates by referencing one set of test instructions
When omSupply is migrated from version < 2.2, store preference should be updated to include values configured in mSupply (configure in mSupply before upgrade, sync store preference changes before upgrade, these preferences should be shows after upgrade to omSupply)
Download reports from report repository, upload them to OG with subcontext: StockAndItems or Expiring. Sync. The reports should now show up on the report page.
Click on one of the reports on the report page and ensure that it shows the correct report
Try using the filters (Note: There is a bug if you type to fast when filtering, will be looked at)
For item usage, generate report base analysis on whatever months you have your lookback_months set to
Check the print button is working
Check the export button downloads and opens in excel
Moneyworks Jobcode 🧰
OMS:REPT
Material
Report Menu