Commit graph

26893 commits

Author SHA1 Message Date
Shivam Mishra
bc8e23ca15 fix: update shortcut for search 2020-08-06 19:47:46 +05:30
Shivam Mishra
9b06881702 chore: remove log/print statements 2020-08-06 19:47:46 +05:30
Shivam Mishra
24a984a0ea feat: add test for FTS 2020-08-06 19:47:46 +05:30
Shivam Mishra
b2100279d6 feat: update code for new search 2020-08-06 19:47:46 +05:30
Shivam Mishra
602366e285 feat: separate FTS and website search inside frappe.search 2020-08-06 19:47:46 +05:30
Shivam Mishra
5145c58b81 feat: [breaking] remove global search from migrate
* Run search last as it changes the session user
2020-08-06 19:47:46 +05:30
Shivam Mishra
edf13c92e1 feat: separate search style rules from doc layout 2020-08-06 19:47:46 +05:30
Shivam Mishra
16a2ef78ff style: add missing semicolon 2020-08-06 19:47:46 +05:30
Shivam Mishra
19f42d1877 feat: added index all routes function 2020-08-06 19:47:46 +05:30
Shivam Mishra
a60a6fc04a feat: function to get routes from published docitems 2020-08-06 19:47:46 +05:30
Shivam Mishra
90456a979e feat: allow indexing only if route is present 2020-08-06 19:47:46 +05:30
Shivam Mishra
eb9435c012 refactor: rename enable_website_search_indexing to allow_website_search_indexing 2020-08-06 19:47:46 +05:30
Shivam Mishra
59ce616153 chore: added docstrings 2020-08-06 19:47:46 +05:30
Shivam Mishra
8bb473143b refactor: FullTextSearch class 2020-08-06 19:47:46 +05:30
Shivam Mishra
51b8e467ad feat: add flag to disable search index rebuild on migrate 2020-08-06 19:47:46 +05:30
Shivam Mishra
d2d37a1e04 feat: move whoosh full_text_search build to migrate from hooks 2020-08-06 19:47:46 +05:30
Shivam Mishra
f9b59a7b10 chore: add docstrings 2020-08-06 19:47:46 +05:30
Shivam Mishra
841914c110 feat: allow disabling indexing for certain routes 2020-08-06 19:47:46 +05:30
Shivam Mishra
f0547ce0d0 feat: added index hooks to website generator 2020-08-06 19:47:46 +05:30
Shivam Mishra
702a6f103a fix: commit after removing index 2020-08-06 19:47:46 +05:30
Shivam Mishra
9db450f815 feat: add remove index option 2020-08-06 19:47:46 +05:30
Shivam Mishra
32fbab7d18 feat: remove re_index by path
* get_document_to_index sets user to administrator, this is not desirable when running desk, keeping this API available is not wise
2020-08-06 19:47:46 +05:30
Shivam Mishra
ac88787593 fix: syntax 2020-08-06 19:47:46 +05:30
Shivam Mishra
f33c05d128 chore: better comments 2020-08-06 19:47:46 +05:30
Shivam Mishra
d5d3277013 feat: move search portable 2020-08-06 19:47:46 +05:30
Shivam Mishra
aa0cf2bad4 feat: added re-index method 2020-08-06 19:47:46 +05:30
Shivam Mishra
91d0e47f1d feat: optimize while storing index 2020-08-06 19:47:46 +05:30
Mangesh-Khairnar
ef4a28e10c
fix: add a distinct identifier for public files backup (#11201) 2020-08-06 09:32:04 +05:30
Shivam Mishra
34c3d57767
feat: validate json when saving desk page (#11095)
Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
2020-08-06 00:01:11 +05:30
Suraj Shetty
21a0cafe62
fix: Validate and sanitise whitelisted search methods using decorator (#11197)
* fix: Validate and sanitize whitelisted search methods using decorator

Co-authored-by: Prssanna Desai <prssud@gmail.com>
Co-authored-by: Shivam Mishra <scmmishra@users.noreply.github.com>

* refactor: Replace decorator name

Co-authored-by: Prssanna Desai <prssud@gmail.com>
Co-authored-by: Shivam Mishra <scmmishra@users.noreply.github.com>

Co-authored-by: Prssanna Desai <prssud@gmail.com>
Co-authored-by: Shivam Mishra <scmmishra@users.noreply.github.com>
2020-08-05 19:42:19 +05:30
Suraj Shetty
cd1ab8e23c
feat: Add validate_and_sanitize_search_inputs decorator (#11194)
* feat: Add validate_and_sanitize_search_inputs decorator

Co-authored-by: Nabin Hait <nabinhait@gmail.com>
Co-authored-by: Prssanna Desai <prssud@gmail.com>
Co-authored-by: Shivam Mishra <scmmishra@users.noreply.github.com>

* refactor: Move validate_and_sanitize_search_inputs to init

* refactor: Move validate_and_sanitize_search_inputs to search.py

* test: validate_and_sanitize_search_inputs decorator

* chore: Add wrapt module

* refactor: Use @wrapt to define validate_and_sanitize_search_inputs decorator

* test: Add a case to make sure frappe.call works as well

Co-authored-by: Nabin Hait <nabinhait@gmail.com>
Co-authored-by: Prssanna Desai <prssud@gmail.com>
Co-authored-by: Shivam Mishra <scmmishra@users.noreply.github.com>
2020-08-05 19:41:41 +05:30
Prssanna Desai
805e415502
fix: Dashboard fixes (#11186)
Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
2020-08-05 14:57:48 +05:30
gavin
5d4feb5dbb
feat: Convenience APIs for tags (#11088)
Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
2020-08-04 17:45:14 +05:30
Rucha Mahabal
cc22350b04
fix: remove Video DocType from Core module (#11151)
Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
2020-08-04 17:42:47 +05:30
Aditya Hase
0748312e39
fix(werkzeug): Avoid duplicate lines from werkzeug in bench start logs (#11171)
Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
2020-08-04 17:41:34 +05:30
Faris Ansari
f5c61d04da
fix: Patch to generate theme files in public folder (#11148)
Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
2020-08-04 17:40:18 +05:30
Glen Whitney
34fdf63b90
fix(Link Card): refresh incomplete_dependencies as needed (#11169)
When _prepare_item in Workspace.get_cards notices that the dependencies
  for an item have been completed, it should clear the incomplete_dependencies
  field in case a value has been saved in that attribute.

  Fixes #11168.
2020-08-04 17:40:06 +05:30
gavin
dd157ba822
fix: dont show git errors in terminal (#11064)
Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
2020-08-04 17:39:35 +05:30
Prssanna Desai
d5622f5410
fix: Permission query in Dashboard Chart (#10981)
Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
2020-08-04 17:38:48 +05:30
Shivam Mishra
9b267027b5
feat: don't load user translation in make_dict_from_messages (#11120) 2020-08-04 13:25:49 +05:30
Prssanna Desai
645331799a
fix: whitelist functions called through search widget (#11153) 2020-08-04 12:17:33 +05:30
gavin
e3765986dc
Merge pull request #11182 from gavindsouza/logger-ip-fix
fix: Log site only if exists
2020-08-03 18:01:59 +05:30
Gavin D'souza
4b93f75eba fix: Log site only if exists 2020-08-03 17:23:32 +05:30
Shivam Mishra
9445c115ec
fix: check if is_standard is "Yes" (#11180) 2020-08-03 15:51:30 +05:30
mergify[bot]
849804ca10
Merge pull request #11026 from gavindsouza/site-web-logger-fix
fix: frappe.logger site validation
2020-08-03 05:58:13 +00:00
mergify[bot]
e4928e5bf6
Merge pull request #11159 from netchampfaris/dib-fixes-2020-07-30
fix: Dont validate skipped columns
2020-08-01 11:12:13 +00:00
Shivam Mishra
35d529f398
Merge pull request #11170 from frappe/revert-10982-image-with-blur-width-height
Revert "fix(image-with-blur): Set width, height in CSS"
2020-08-01 13:43:24 +05:30
Shivam Mishra
eab96ab904
Revert "fix(image-with-blur): Set width, height in CSS" 2020-08-01 13:42:33 +05:30
Suraj Shetty
8e917b3444
Merge branch 'develop' into dib-fixes-2020-07-30 2020-08-01 08:45:11 +05:30
mergify[bot]
b08a32838e
Merge pull request #11166 from prssanna/multiselect-list-text
fix: text in MultiSelectList doesn't get truncated
2020-08-01 03:07:56 +00:00