Gavin D'souza
65864c027f
chore: Update module license header
...
These modules were imported from the ERPNext codebase into Frappe.
License header was overlooked at that point. These were contributed
initially by Frappe Technologies Pvt Ltd under GPLv3 (ERPNext's license) and now
we, as Frappe Technologies Pvt Ltd converting them to MIT to comply with
Frappe's license.
2021-09-03 11:51:01 +05:30
Gavin D'souza
30cf8fd58d
refactor: Use run instead of frappe.db.sql
2021-08-12 18:36:43 +05:30
Gavin D'souza
1015283731
fix(global_search): Typecast variable for comparision
...
Previously start was being type casted with int. That was reverted by refactoring query to use new Query Builder
This bug was introduced via ee3c84beef
2021-08-12 16:23:40 +05:30
saxenabhishek
7671e78487
style: minor fixes and improvements
2021-07-30 11:29:41 +05:30
saxenabhishek
ce10e36725
refactor: move all pypika functions to a module
2021-07-30 11:00:35 +05:30
saxenabhishek
ee3c84beef
style: typecast to string inside db.sql
2021-07-30 11:00:35 +05:30
saxenabhishek
c05a032811
refactor: qb in global_search.search
2021-07-30 11:00:34 +05:30
Aradhya-Tripathi
84ff1d0af9
style: removed frappe.db.sql comments
2021-07-28 13:48:01 +05:30
Aradhya-Tripathi
8887836820
refactor: Moved util queries to
...
frappe orm
2021-07-21 23:31:15 +05:30
Bhavesh Maheshwari
68930a022a
fix: Duplicate if condition remove
2021-07-13 15:55:24 +05:30
Suraj Shetty
2d8c6c1710
Merge branch 'develop' of https://github.com/frappe/frappe into refactor-website
2021-06-03 11:43:28 +05:30
Gavin D'souza
e407b78506
chore: Drop dead and deprecated code
...
* Remove six for PY2 compatability since our dependencies are not, PY2
is legacy.
* Removed usages of utils from future/past libraries since they are
deprecated. This includes 'from __future__ ...' and 'from past...'
statements.
* Removed compatibility imports for PY2, switched from six imports to
standard library imports.
* Removed utils code blocks that handle operations depending on PY2/3
versions.
* Removed 'from __future__ ...' lines from templates/code generators
* Used PY3 syntaxes in place of PY2 compatible blocks. eg: metaclass
2021-05-26 15:31:29 +05:30
Suraj Shetty
68aa1805aa
fix: Exception handling
2021-05-19 14:03:31 +05:30
Suraj Shetty
c5b9815248
fix: Add get_response_content to get page content
2021-05-14 23:43:36 +05:30
Suraj Shetty
18497989dc
refactor: Remove render_page from render.py
...
& replace all usages of render_page with get_response
2021-05-14 21:30:28 +05:30
Suraj Shetty
3c4306c87a
refactor: Fix regex to avoid deprecation warnings
2021-05-10 09:18:50 +05:30
Aditya Hase
637aa059b9
perf: Remove BeautifulSoup from import tree
2021-02-19 21:01:55 +05:30
Karthikeyan Singaravelan
3a146580a8
fix: Use html.unescape for Python 3.9 compatibility.
2020-11-26 13:30:58 +00:00
Faris Ansari
f7158ad5f6
fix: Obey config for global search of web routes
2020-06-05 15:39:25 +05:30
Faris Ansari
d918d13f40
fix: Print message when global search is updated
2020-05-30 18:03:53 +05:30
Himanshu Warekar
6ea8881b29
fix: remove exact phrase search
2020-05-06 12:48:15 +05:30
Chinmay D. Pai
10e939d012
chore: update global_search and add test
...
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-03-30 10:46:00 +05:30
Chinmay D. Pai
063def052e
chore: remove trailing closing bracket
...
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-03-27 18:54:18 +05:30
Chinmay D. Pai
708248baf9
fix: avoid sqli inside global web search
...
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-03-27 16:04:11 +05:30
mergify[bot]
710ac6b194
Merge pull request #9186 from benknowles/patch-3
...
fix: global search index breaking on long titles
2020-01-11 04:35:54 +00:00
Ben Knowles
ec53a57f4b
fix: skip single doctype when rebuilding search index ( #9187 )
2020-01-10 00:34:03 +05:30
Ben Knowles
ecfc0714bc
fix: global search index breaking on long titles
...
If you created a doc with a title longer than 140 characters, it's supposed to be truncated to 140.
However, the global search index would break for that doctype due to an error in the query.
The truncate was happening AFTER it was escaped, causing it to lose the closing quote mark which caused a SQL error and broke the index.
2020-01-02 14:33:57 -06:00
Suraj Shetty
10701738d8
fix: Convert list to tuple
2019-12-06 08:29:02 +05:30
Suraj Shetty
3b61a6cb28
fix: Code cleanup
...
- Pass values so that db cursor can handle escaping
2019-12-06 07:46:49 +05:30
Himanshu Warekar
65402bc2fa
tests: fix results being return
2019-12-03 15:27:10 +05:30
Himanshu Warekar
86e1d0367b
Merge branch 'develop' of https://github.com/frappe/frappe into pref_global_search
2019-12-03 14:25:04 +05:30
Himanshu Warekar
9c57d80769
fix: rename function to set
2019-12-02 13:05:06 +05:30
Himanshu Warekar
633e2b546c
fix: do not pop item from list
2019-11-27 12:59:50 +05:30
Gavin D'souza
5bd5eb8911
chore: moved set_request function to frappe.utils
2019-11-13 14:09:46 +05:30
Himanshu Warekar
93b9ca86f7
perf: optimise globals search
2019-10-29 15:02:10 +05:30
Himanshu Warekar
c01eadcac0
Merge branch 'develop' of https://github.com/frappe/frappe into global_tags
2019-09-30 13:59:28 +05:30
Himanshu Warekar
2bb05534f6
fix: do not add offset is start is zero
2019-09-26 17:58:13 +05:30
Himanshu Warekar
f6d1ce2194
feat: Global Tags
2019-09-24 01:03:11 +05:30
Himanshu Warekar
c4d120273b
fix: priority for doctypes inglobal search
2019-09-20 11:12:45 +05:30
Himanshu Warekar
c669167efb
fix: check if text exists
2019-09-18 18:43:43 +05:30
Himanshu Warekar
9d3b361da4
feat: Global Search with Priorities
2019-09-18 18:21:13 +05:30
Aditya Hase
f626541776
fix(search): Escape DocType name ( #7765 )
2019-06-25 12:20:03 +05:30
Faris Ansari
5e2c2d8337
fix: Index rendered page content ( #7405 )
...
* fix: Index rendered page content
- Order results based on words matched in title
* fix: Reset session user after indexing page
* chore: comments
2019-05-12 19:21:07 +05:30
Faris Ansari
766e26ac5f
feat: Index all web pages for search ( #7322 )
...
* feat: Index Web Pages for search
- Walks and indexes all webpages in global_search
* test: Web Page Indexing
2019-04-26 12:41:17 +05:30
Faris Ansari
5d1ecb2e47
fix: Global Search fixes
...
- Update title, route and published in sync_value
- Update search_template for BS4
2019-03-03 00:27:13 +05:30
Sagar Vora
89efa968d8
Merge branch 'master' into develop
2019-02-05 18:39:43 +05:30
Chinmay Pai
9873c04231
fix(sync_global_search): decode json object as str ( #6867 )
2019-01-31 15:16:47 +05:30
Saurabh
76bd4e4f19
Merge branch 'master' into develop
2019-01-30 12:36:43 +05:30
Rushabh Mehta
0704928fd8
fix(global search): fallback if redis is not yet started
2019-01-30 11:26:07 +05:30
Rushabh Mehta
d09792c606
fix: refactor global search to not insert after every commit ( #6845 )
...
* fix: refactor global search to not insert after every commit
* feat: configuration to disable_global_search
2019-01-30 11:13:51 +05:30