Commit graph

33610 commits

Author SHA1 Message Date
Gavin D'souza
d63affc732 refactor(minor): Use ORM instead of raw delete queries
Modified query building for "IN" statements, as well as older condition
builders to use frappe.db.delete
2021-07-28 19:04:18 +05:30
Gavin D'souza
3ca7fa7796 refactor(minor): Make frappe.db.delete DRY-er 2021-07-28 19:01:07 +05:30
Gavin D'souza
7dac03cea0 fix: Re-introduce code erreneously taken out in previous commits
Due to bulk updations, some statements were missed out/got deleted. This
commit re-introduces them.
2021-07-28 18:59:18 +05:30
Gavin D'souza
a836b2de0c perf: Use truncate instead of drop
Changed DML DROP statements to use DDL TRUNCATE for better performance
wherever possible
2021-07-28 18:57:51 +05:30
Gavin D'souza
01d275f667 style: Format code for better readability
* Remove trailing whitespaces
* Format code to fit module conventions
* Add appropriate new lines between imports, classes, fn defs, etc
* Added comments, docstrings & module headers
2021-07-28 18:55:27 +05:30
Gavin D'souza
a02848849d Merge branch 'develop' of github.com:frappe/frappe into at-queries 2021-07-28 16:00:46 +05:30
Aradhya-Tripathi
84ff1d0af9 style: removed frappe.db.sql comments 2021-07-28 13:48:01 +05:30
mergify[bot]
943e37adf3
Merge pull request #13792 from surajshetty3416/fix-print-view
fix: Report print option
2021-07-28 06:48:16 +00:00
Suraj Shetty
9a28242868 fix: Report print option 2021-07-28 11:32:20 +05:30
mergify[bot]
4d883b063d
Merge pull request #13778 from pateljannat/web-form-child-table-issue
fix: web form child table issue
2021-07-27 08:23:37 +00:00
pateljannat
326bd463fc fix: web form child table issue 2021-07-26 17:09:57 +05:30
Aradhya-Tripathi
538ef2168b fix: removed wrong queries 2021-07-24 22:58:12 +05:30
gavin
887fe2bb8a
Merge pull request #13768 from gavindsouza/tests-breaking-after-lang-res
ci: Remove test suite TestFrappeHTTPRequest
2021-07-24 02:25:31 +05:30
Gavin D'souza
b8f2c979b5 ci: Remove test suite TestFrappeHTTPRequest
Remove tests for HTTPRequest under test_auth because Frappe
develop CI started breaking after PR merge
2021-07-24 01:56:29 +05:30
Aradhya-Tripathi
a86d717f17 fix: Convert indentation to tabs 2021-07-23 23:31:44 +05:30
Aradhya-Tripathi
2f3371d873 refactor: Moved raw queries to frappe orm 2021-07-23 23:14:24 +05:30
gavin
2e71f53b3d
Merge pull request #13703 from gavindsouza/lang-resolution
refactor: Request Language Resolution
2021-07-23 19:42:37 +05:30
Sagar Vora
e3ea5cd05a
fix: refresh dependencies on awesomplete-selectcomplete event (#13756) 2021-07-23 14:08:16 +05:30
Suraj Shetty
50fed0b1ed
Merge pull request #13573 from surajshetty3416/auto-generate-rtl-style 2021-07-23 11:55:43 +05:30
Gavin D'souza
36c4be9a8d feat: frappe.db.truncate
ORM wrapper for SQL DDL statement

* Alias frappe.db.clear_table to use truncate
* Support for __ tables is added here
2021-07-23 11:52:41 +05:30
Gavin D'souza
1c82b83be0 refactor: Simplify frappe.db.delete logic
* Rename conditions kwarg to filters. Handle conditions kwarg if passed
* Re-added exc raise for no filters...to risky. Thinking of having an
  extra kwarg like `force` or something...undecided
* Added Python type hints
* Accept and pass kwargs to frappe.db.sql...Now pass any kwarg db.sql
  accepts
* Pass debug from fn def if someone is still using it as a positional
  arg :thonk:
2021-07-23 11:30:02 +05:30
Aradhya-Tripathi
bc39fd869f fix: Fixed typos 2021-07-23 10:45:54 +05:30
Aradhya-Tripathi
1204ae8ce4 fix: fixed spacing and ui tests 2021-07-23 10:45:54 +05:30
Aradhya-Tripathi
4dc476da6a fix(update_feed): Malformed query in activity log 2021-07-23 10:44:52 +05:30
Suraj Shetty
a9cab2cf78
test: Remove remove_doc. to avoid flaky test 2021-07-22 13:07:31 +05:30
Suraj Shetty
f380a0e65e
Merge pull request #13730 from surajshetty3416/fix-routing
fix: Allow navigation to the document with # in the docname
2021-07-22 12:23:50 +05:30
Suraj Shetty
6f70dcf52d test: Add navingation test case 2021-07-22 12:02:47 +05:30
mergify[bot]
84b721e2b2
Merge pull request #13605 from nextchamp-saqib/form-tour-fixes
fix: multiple form tour issues
2021-07-22 04:33:20 +00:00
Leela vadlamudi
8c9f21d77c
Merge pull request #13751 from frappe/mergify/bp/develop/pr-13749
fix: `show Report` button in report view (backport #13749)
2021-07-22 08:09:56 +05:30
Aradhya-Tripathi
8feb430371 refactor: Moved raw queries to frappe orm 2021-07-21 23:32:18 +05:30
Aradhya-Tripathi
8887836820 refactor: Moved util queries to
frappe orm
2021-07-21 23:31:15 +05:30
Aradhya-Tripathi
79ccaa95f3 refactor: Moved raw queries to frappe orm 2021-07-21 23:29:50 +05:30
Aradhya-Tripathi
dd2648b141 refactor: Moving from core
raw queries to frappe orm
2021-07-21 23:28:17 +05:30
Aradhya-Tripathi
931549ee05 refactor: changed delete to accept no conditions 2021-07-21 19:20:35 +05:30
Aradhya-Tripathi
eb7e95ae26 refactor: using frappe orm 2021-07-21 19:19:06 +05:30
Aradhya-Tripathi
a256219dd2 refactor: moved from raw queries in frappe email to
frappe orm
2021-07-21 19:16:59 +05:30
Aradhya-Tripathi
9aa17db392 refactor: moved from raw queries
to frappe orm in desk
2021-07-21 19:16:17 +05:30
Aradhya-Tripathi
fa6cb14ee5 refactor: moved from raw queries to frappe orm in
core
2021-07-21 19:15:38 +05:30
Suraj Shetty
09ca4d5af3 fix: V1 support and external links 2021-07-21 14:21:44 +05:30
Leela vadlamudi
7d1df10a00
Merge pull request #13697 from leela/amended-doc-naming
refactor: set amended docname to original docname
2021-07-21 11:19:28 +05:30
Suraj Shetty
c5c79ea2fd Merge branch 'develop' of https://github.com/frappe/frappe into auto-generate-rtl-style 2021-07-21 10:52:31 +05:30
leela
d459847ae3 refactor: set amended docname to original docname
Currently, whenever a document is amended it's name is set
to name-X(X is a counter) when amended again and so on. In this PR,
we have changed all cancelled doc patterns to name-CAN-X,
so that amended docs can use the original name instead of name-X.
2021-07-21 10:51:32 +05:30
leela
e1ade10a54 fix: show Report button in report view
(cherry picked from commit 0917d59a40f77f4514b29599ae96cf10ff0573ac)
2021-07-21 05:01:21 +00:00
Suraj Shetty
e50059a86d
Merge pull request #13747 from surajshetty3416/fix-email-style 2021-07-20 16:07:47 +05:30
Suraj Shetty
e1c78bb9b3 test: Update test 2021-07-20 15:21:22 +05:30
Suraj Shetty
1e1f911540 fix: Use 1em margin for p outside container
Revert 397848f9f7 (diff-cad6d40df66d9378e252342fe4148d3f8114a3c361dffd048fc3b09d5d9024b3R39)
2021-07-20 15:00:07 +05:30
Suraj Shetty
ce7ca6897e
Merge pull request #13744 from surajshetty3416/fix-signature-control 2021-07-20 11:50:41 +05:30
Suraj Shetty
29c56b0452
Merge pull request #13742 from surajshetty3416/fix-website-form-style 2021-07-20 11:19:33 +05:30
Suraj Shetty
2a9b9875f9 fix: Make pad only after dom is ready
- Signature control used to break on first form load
2021-07-20 10:11:45 +05:30
Suraj Shetty
cd499af6b2 fix: Move layout colors to common css_variables.scss
-  Layout colors are used by website as well
2021-07-20 08:43:42 +05:30