Commit graph

170 commits

Author SHA1 Message Date
phot0n
b31f3c24f6 refactor: remove parent, parenttype, parentfield, idx columns from non-child table doctypes
* feat: add parent, parenttype, idx, parentfield columns to doctypes when transitioning from normal -> child table

* fix: remove parent, parenttype, parentfield, idx from DocType DocType
2022-02-07 15:12:37 +05:30
mergify[bot]
028bb9eb06
Merge pull request #15722 from hrwX/virtual_dt
feat: get_count, get_stats for virtual doctype
2022-01-27 04:39:57 +00:00
Ankush Menat
8b30b61c3e fix: allow empty patches.txt 2022-01-27 09:34:41 +05:30
Ankush Menat
fd227d38f4
feat: post model-sync patches (#15351)
Ability to run a few patches after the doctype model schema is synced.

Read module-level docstring of patch_handler.py for more info.
2022-01-26 11:21:30 +05:30
hrwx
26a70e3cf1 feat: get_count, get_stats for virtual doctype 2022-01-25 10:16:28 +00:00
barredterra
c92e6ab85d fix: import doc / fixtures 2021-12-13 19:02:51 +01:00
barredterra
2ab030c4d8 fix: update modified of Singles 2021-12-10 12:26:32 +01:00
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
abhishek
ba78852c73 docs: add docstring for import_file_by_path 2021-10-12 17:15:12 +05:30
abhishek
86f29aeaa3 fix: missing logical cases
- handle first time imports
- update hash and timestamps
2021-10-12 03:21:08 +05:30
Gavin D'souza
2622f3398e style: Black-ish queries
* feat(minor): Added DocType to frappe.query_builder namespace
2021-10-11 19:00:52 +05:30
abhishek
547111841a refactor: sql in update_modified() to frappe.qb 2021-10-11 18:58:15 +05:30
abhishek
3ac65adb94 style: misc changes 2021-10-11 18:57:46 +05:30
abhishek
822fdce4d6 fix: doctype doc hash creation 2021-10-11 17:23:17 +05:30
abhishek
278883edb0 fix: missing migration hash column 2021-10-11 17:23:17 +05:30
abhishek
b2b391e90a style: misc 2021-10-11 17:23:17 +05:30
Gavin D'souza
db6fc6a5fb feat: Hash based comparison migration 2021-10-11 17:23:17 +05:30
Rushabh Mehta
5befc80cd4 fix(minor): linting 2021-09-05 22:30:09 +05:30
Rushabh Mehta
20dea90670 feat(minor): Packages! also cleanup of DocField and other minor fixes 2021-09-05 22:01:55 +05:30
Gavin D'souza
3446026555 chore: Update header: license.txt => LICENSE
The license.txt file has been replaced with LICENSE for quite a while
now. INAL but it didn't seem accurate to say "hey, checkout license.txt
although there's no such file". Apart from this, there were
inconsistencies in the headers altogether...this change brings
consistency.
2021-09-03 12:02:59 +05:30
Gavin D'souza
32c6cf1c44 refactor(misc): frappe.db.delete > frappe.db.sql
Use frappe.db.delete wherever possible. Get rid of all the frappe.db.sql ;)

This commit focuses on the pending modules that had relatively easier
DELETE statements.
2021-08-19 19:53:16 +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
barredterra
3632a32272 fix: print warning and add comments 2021-05-13 15:59:39 +02:00
Raffael Meyer
aa06b63eb6
refactor: getattr
Co-authored-by: gavin <gavin18d@gmail.com>
2021-05-12 20:54:06 +02:00
barredterra
cb21e9de84 fix: 'Meta' object has no attribute 'is_tree' 2021-05-10 12:39:00 +02:00
barredterra
4a5f8dd23d fix: ignore lft and rgt when migrating a tree doctype 2021-05-10 12:19:41 +02:00
Shridhar
bf0070f090 feat: added controller required for virtual doctype in boilerplate 2020-12-29 14:00:20 +05:30
Faris Ansari
398451103a fix(customization): Only read .json files from custom folder 2020-10-16 15:43:17 +05:30
Shivam Mishra
3de0c18ab2
Merge pull request #10723 from scmmishra/feat-search-api-changes
feat: Search API changes
2020-08-14 14:00:56 +00:00
Shivam Mishra
0e380510c5 feat: ignore add total when syncing fixtures 2020-08-13 13:57:07 +05:30
Shivam Mishra
602366e285 feat: separate FTS and website search inside frappe.search 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
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
f9b59a7b10 chore: add docstrings 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
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
prssanna
3aa3832bd3 feat: sync dashboards from json files 2020-07-06 12:11:57 +05:30
Faris Ansari
2cfe7d4457 fix: Sider issues 2020-06-05 15:52:11 +05:30
Faris Ansari
2056de1132 fix: Per site Full Text Search
- Create indexes in sites folder
- Ability to limit searches to a path using scope
2020-06-05 15:37:15 +05:30
Faris Ansari
6bba7595d7 fix: Doc search
- Fix styling
- Show only 5 results
- Search title and content
2020-05-31 23:30:13 +05:30
Faris Ansari
3a20187715 fix: Build search index for web pages after migrate 2020-05-30 18:03:38 +05:30
Faris Ansari
b17b0d9077 feat: Doc search 2020-05-27 18:02:16 +05:30