* fix: increase label field length to 255 chars
Some doc field labels were getting truncated when exceeding 140 characters.
This caused issues during customization of complex forms where descriptive labels were required.
* fix: increase label field length to 255 chars
Some customize form field labels were getting truncated when exceeding 140 characters.
This caused issues during customization of complex forms where descriptive labels were required.
* fix: clear cache and prevent data access after DocType deletion
* fix: Handle potential DB failures during migrate
---------
Co-authored-by: Ankush Menat <ankush@frappe.io>
This first call was sometimes done when `_content` wasn't set, resulting in:
```
File "apps/frappe/frappe/core/doctype/file/file.py", line 138, in validate
self.check_content()
File "apps/frappe/frappe/core/doctype/file/file.py", line 381, in check_content
if self.file_type == "PDF" and self._content and pdf_contains_js(self._content):
^^^^^^^^^^^^^
AttributeError: 'File' object has no attribute '_content'
```
Just calling it in `write_file()` seems good enough
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
* feat: allow users to email prepared report
* fix: add export in background checkbox in export dialog
* chore: use a common function to send report email
* feat: delete generated files from system after user defined duration
* feat: add exported reports in a folder and periodically clean it
* test: add test for export via report
* fix: add exported folder path as constant
* chore: un-edit report.json
* refactor: for readability
* chore: type hint
* refactor: let the BG job fail if email fails
* refactor: consistent `report_name`
* it reads better now, e.g. attached_to_name=report_name instead of attached_to_name=title
* refactor: `return_file` to its inverse `populate_response`
* chore: more specific error message
---------
Co-authored-by: Rahul Agrawal <deathstarconsole@Rahuls-MacBook-Air.local>
Co-authored-by: Hussain Nagaria <hussainbhaitech@gmail.com>
Don't create a new one, especially one that doesn't have all parameters (main issue here: console=False)
Signed-off-by: Akhil Narang <me@akhilnarang.dev>