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

refactor: filters for export on prepared report #26106

Merged
merged 2 commits into from Apr 23, 2024

Conversation

rutwikhdev
Copy link
Contributor

@rutwikhdev rutwikhdev commented Apr 22, 2024

This is the url generated by frappe.router.set_route on, prepared report > "Show Report"

image

frappe.urllib.get_dict("prepared_report_name") fails to parse this and prepared_report_name is left empty leaving the export data process in below state

HbVHLlY

ref: https://support.frappe.io/helpdesk/tickets/11816

no-docs

@rutwikhdev rutwikhdev requested a review from a team as a code owner April 22, 2024 17:02
@rutwikhdev rutwikhdev requested review from akhilnarang and removed request for a team April 22, 2024 17:02
@rutwikhdev
Copy link
Contributor Author

I'm not sure if frappe.router.set_route is doing something wrong here and producing malformed urls. But the report view seems to work fine.

@ankush ankush added backport version-14-hotfix backport to version 14 backport version-15-hotfix Backport the PR to v15 labels Apr 23, 2024
@ankush
Copy link
Member

ankush commented Apr 23, 2024

image

URL still seems broken?

@ankush ankush self-assigned this Apr 23, 2024
@ankush
Copy link
Member

ankush commented Apr 23, 2024

This whole code is shit. The only reason why it's working is something else is buggy too

image

@ankush ankush force-pushed the fix-prepared-report-export branch from 418afcd to 3499e88 Compare April 23, 2024 07:33
@ankush ankush force-pushed the fix-prepared-report-export branch from 3499e88 to b5b6a52 Compare April 23, 2024 07:33
@ankush ankush merged commit fc98e90 into frappe:develop Apr 23, 2024
24 checks passed
ankush added a commit that referenced this pull request Apr 23, 2024
…-26106

refactor: filters for export on prepared report (backport #26106)
ankush added a commit that referenced this pull request Apr 24, 2024
…6116)

* fix: filters on prepared report export

(cherry picked from commit 71a9fa4)

# Conflicts:
#	frappe/public/js/frappe/views/reports/query_report.js

* refactor: Store prepared_report_name state on report obj

(cherry picked from commit b5b6a52)

# Conflicts:
#	frappe/core/doctype/prepared_report/prepared_report.js
#	frappe/public/js/frappe/views/reports/query_report.js

---------

Co-authored-by: Rutwik Hiwalkar <rutwikhdev@gmail.com>
Co-authored-by: Ankush Menat <ankush@frappe.io>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport version-14-hotfix backport to version 14 backport version-15-hotfix Backport the PR to v15
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants