Commit graph

35034 commits

Author SHA1 Message Date
mergify[bot]
2ffab778c4
Merge pull request #14573 from vrslev/develop
fix(ui): Make user-wise grid customization translatable
2021-10-26 05:17:36 +00:00
Lev
b8470ba7f4 fix(grid): Make user-wise grid customization translatable 2021-10-25 20:33:22 +03:00
gavin
b2c973929a
Merge pull request #14564 from gavindsouza/misc-fixes-3
fix: Misc fixes
2021-10-25 22:35:01 +05:30
mergify[bot]
82852fdc37
Merge pull request #14566 from ankush/xmlrunner_fix
fix: only import xmlrunner if coverage is required
2021-10-25 16:11:23 +00:00
Ankush Menat
1bf4359f9c fix: only import xmlrunner if coverage is required 2021-10-25 16:59:43 +05:30
Gavin D'souza
78ba785cbd fix: Use all properly ugh 2021-10-25 15:59:24 +05:30
Gavin D'souza
46a8e20ac2 fix: Don't export migration_hash column in std json
Fixes https://github.com/frappe/frappe/issues/14563
2021-10-25 14:45:03 +05:30
Gavin D'souza
1b9961e508 fix(doctype): Update controller file on has_web_view change 2021-10-25 13:23:35 +05:30
Gavin D'souza
4ffc8e7660 chore(dev): Remove duplicate set owner & modifiedby 2021-10-25 13:18:52 +05:30
mergify[bot]
ebc29efae5
Merge pull request #14499 from ankush/configurable_max_writes
refactor: move max_writes constant to a class var
2021-10-25 07:01:13 +00:00
mergify[bot]
92c60983cc
Merge pull request #14463 from ankush/fuzzy_website_search
feat: allow fuzzy search in website search
2021-10-25 06:57:33 +00:00
Faris Ansari
179960d67f
Merge pull request #14134 from netchampfaris/print-format-builder-beta
feat: New Print Format Builder
2021-10-25 12:12:08 +05:30
gavin
76924b27dd
Merge pull request #14550 from ankush/move_semgrep
ci: move semgrep rules out of repo
2021-10-25 11:36:23 +05:30
mergify[bot]
4e3547fd08
Merge pull request #14552 from Aradhya-Tripathi/at/query/fix
fix: set_value takes for_update for pypika objects
2021-10-25 06:04:48 +00:00
Ankush Menat
99a6874aff feat: apply boosts on search queries
This gives higher priority to title and match over content.
2021-10-25 09:14:53 +05:30
Ankush Menat
4ef4ecdf01 fix: dont hardcode search fields
FullTextSearch uses name and content
WebsiteSearch uses title and content

Tests were failing because of hardcoded fieldnames which can't be
overridden by inheriting class without rewriting search function.

Made a separate function for defining search fields.
2021-10-25 09:14:48 +05:30
Ankush Menat
56f5b3d1f3 test: make global search tests less flaky 2021-10-24 14:46:02 +05:30
Ankush Menat
cbe673255b fix(ux): allow fuzzy search in website search
FuzzyTerm allows edit distance based fuzzy searching. This means "webho" or
"wabhool" will match "webhook".
2021-10-24 14:46:02 +05:30
Sagar Vora
28fce91673
fix: consistent description for Live Reload (#14554) 2021-10-24 13:50:07 +05:30
mergify[bot]
ceb7ec35e0
Merge pull request #14556 from resilient-tech/fix-bulk-update
fix: do not pop `doctype` and `docname`
2021-10-23 13:11:17 +00:00
Aradhya-Tripathi
ca1d9b4514 fix: fixed sider issues 2021-10-23 16:03:29 +05:30
Sagar Vora
b60f0772db fix: do not pop doctype and docname 2021-10-23 15:51:16 +05:30
Aradhya-Tripathi
672ae5cd87 fix: replaced return_query with run 2021-10-23 15:36:32 +05:30
Aradhya-Tripathi
33775b5373 style: reverting erroneous formatting 2021-10-23 15:17:40 +05:30
Aradhya-Tripathi
d6b9781163 feat: Added test to assert lock for pypika objects 2021-10-23 15:08:28 +05:30
Aradhya-Tripathi
94f2a6e275 feat: Added run kwarg to get_all, get_values 2021-10-23 15:08:02 +05:30
Aradhya-Tripathi
23c3079433 fix: set_value now takes for_update for pypika objects 2021-10-22 23:43:47 +05:30
Ankush Menat
614423e41c
chore: change repo name 2021-10-22 22:37:06 +05:30
Ankush Menat
488cb31265 ci: move semgrep rules out of repo 2021-10-22 21:46:50 +05:30
gavin
a930e98ca3
Merge pull request #14548 from gavindsouza/fix-flaky-printview
test(website): Clear db.value_cache on tearDown
2021-10-22 20:13:08 +05:30
Faris Ansari
c1053bea93 fix: Field rendering of every field 2021-10-22 19:20:42 +05:30
Faris Ansari
04e10c4c9e fix: Barcode rendering
- CSS variables in svg don't work in PDF
- styling is done via external css now to make it work in form as well as PDF
2021-10-22 19:14:59 +05:30
mergify[bot]
41b550d81d
Merge pull request #14546 from ankush/awesomebar_flaky_test
test: fix flaky awesome_bar test
2021-10-22 12:55:32 +00:00
Gavin D'souza
f08faf151c test(website): Clear db.value_cache on tearDown 2021-10-22 18:18:14 +05:30
Ankush Menat
5996d6829d test: fix flaky awesome_bar test 2021-10-22 15:47:17 +05:30
mergify[bot]
8cbbda7ab7
Merge pull request #14441 from Aradhya-Tripathi/query-conversion
refactor: replacing raw SQL queries with frappe ORM
2021-10-22 09:00:42 +00:00
Gavin D'souza
cb66e6508d refactor(minor): Use pluck & better var naming 2021-10-22 14:17:52 +05:30
Aradhya-Tripathi
0410a88aea refactor: replaced sql_list 2021-10-22 13:31:36 +05:30
gavin
1b8c826ae1
Merge pull request #14531 from ankush/remove_debug
fix: remove debug statements
2021-10-22 12:52:07 +05:30
Umair Sayed
616d97ce78
Changed default for Email Log from 90 to 30 days (#14543) 2021-10-22 07:17:30 +00:00
Aradhya-Tripathi
e46b1d1116 feat: Added pluck in sql to mirror sql_list 2021-10-22 12:44:33 +05:30
Faris Ansari
c679c08675 fix: lru_cache decorator usage 2021-10-22 12:04:27 +05:30
mergify[bot]
bc2ffd5184
Merge branch 'develop' into print-format-builder-beta 2021-10-22 06:19:22 +00:00
mergify[bot]
ff27f80280
Merge pull request #14445 from resilient-tech/refactor-fetch-from
refactor: improved design for fetching values using `add_fetch`
2021-10-22 04:47:10 +00:00
mergify[bot]
868d545ba5
Merge branch 'develop' into print-format-builder-beta 2021-10-22 04:38:08 +00:00
Suraj Shetty
d88bd035d0
refactor: Use LRU cache instead of redis cache 2021-10-22 09:29:15 +05:30
Suraj Shetty
04374de9eb
fix: Update licence text
Co-authored-by: gavin <gavin18d@gmail.com>
2021-10-22 09:22:52 +05:30
mergify[bot]
725013751b
Merge pull request #14538 from frappe/slow_search
fix(ux): debounce awesome_bar search
2021-10-22 03:33:53 +00:00
Aradhya-Tripathi
012edfe090 refactor: made style changes & fixed query conversions 2021-10-22 01:15:46 +05:30
Ankush Menat
128728a0c2 fix: debounce awesome_bar search
When system language is not english each call to search translates all
doctypes, reports etc to match them. This is computationally intensive
and freezes DOM while typing.

Debouncing to make it usable for now.

Ideal solution: cache translations of standard objects somehow / debounce + async.

refer: https://github.com/frappe/frappe/issues/13914

- replaced manual implementation of debouncing with frappe.utils.debounce
- increased timeout to 500ms.
- assuming ~30 wpm and 5 letter / word ~= 0.4 second / letter.
2021-10-21 23:44:47 +05:30