* feat: utility methods for docstatus
* refactor: use utility method for doctsatus
* refactor: enum for docstatus
* refactor: docstatus as property
* fix: set docstatus
* feat: docstatus extends int class
* test: docstatus of BaseDocument
* refactor: occurrences of docstatus
* fix: typo
* refactor: move docstatus to a separate file
* test: docstatus
* fix: sider
This means you don't have to write a custom controller or change backend
code to use Virtual DocFields! Write it in the options column for the
virtual field in Customize Form
Added doc and safe globals (from safe_exec) into the evaluation
namespace
* fix: Use Link type instead of Data for parent
This makes sure frappe.rename_doc updates linked doctype records
* Revert "fix: Use Link type instead of Data for parent"
This reverts commit 93b37351069df9a79f04bfa326378f09bf97700f.
* fix(rename_doc): Handle re-linking Custom DocPerm records
If you have a @property in the controller class, this data used to not
be accessible anywhere other than directly through the object via
`frappe.get_doc`. This fix changes that.
Due to collation differences in MariaDB and Postgres, tests gave
inconsistent results. This was to be handled in tests alone instead of
the application. It was unnecessary. Collation changes should be made at DBMS config
level only. Accomodating for those in the application will unnecessarily
degrade performance for everyone.
Other changes:
* use pluck in user_type
* revert ordering in nestedset
* revert parsing in order_field
* use preferred APIs & styling
Co-authored-by: gavin <gavin18d@gmail.com>
* Handle inconsistencies in type handling in DatabaseQuery & Database
APIs
* Update incompatible queries with frappe.qb notation
* Fixed use cases discovered by failing ERPNext CI tests
fix: db independent syntax for user_type
fix: handle postgres datetime values
feat: add ability to auto commit on db inserts
feat: add ability to escape underscore in postgres
fix: handle missing data in test runner bootstrapping
fix: db independent syntax for queries
fix: refactor to use qb
fix: update cache for language
fix: use pluck in email_queue
Co-authored-by: gavin <gavin18d@gmail.com>
fix: don't auto insert on tests for make_property_setter
fix: remove auto_commit in custom_field insertion
fix: remove auto_commit functionality
fix: review comments
fix: revert link validation
fix: style suggestion for readability
Co-authored-by: gavin <gavin18d@gmail.com>
fix: revert .lower() in link validation
fix: add rollback for setup_wizard
Revert "fix: add rollback for setup_wizard"
This reverts commit 83b3b0913db17718ccd5edae01858cff15603829.
Revert "feat: add ability to escape underscore in postgres"
This reverts commit 8ed9c2aa3306438e94bb813f60e65b416d0b947b.
fix: more concise representation of order fields
Co-authored-by: gavin <gavin18d@gmail.com>
Core/User DocType: Add 'group_by' for PostgreSQL
Signed-off-by: Verequies <hamishclaxton@gmail.com>
fix: Postgres Compatibility for Standard Views
Desk/Dashboard DocType: Fix lowercase table name
Signed-off-by: Verequies <hamishclaxton@gmail.com>
Desk/Page/Setup Wizard: Fix data not being commited to database
Signed-off-by: Verequies <hamishclaxton@gmail.com>
Model/db_query: Fix queries with order_by and group_by for PostgreSQL
Signed-off-by: Verequies <hamishclaxton@gmail.com>
Model/db_query: Fix order_by without table name for PostgreSQL
Signed-off-by: Verequies <hamishclaxton@gmail.com>