Commit graph

33 commits

Author SHA1 Message Date
Sagar Vora
a084f5a2f3 refactor: separate only computed CTs, with new include_computed flag 2025-10-14 12:31:47 +05:30
Sagar Vora
2c9c6c0fd5 fix: correct table_fields references 2025-10-01 12:25:00 +05:30
Hicham Dachir
381ee5682c
fix: add newline to JSON exports
Add empty line in the end of auto generate/update doctype files, in order to follow the python code style
2025-03-10 06:44:25 +00:00
Akhil Narang
1e7e83124d
fix(export_file): check paths before writing
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-01-09 14:56:10 +05:30
Shariq Ansari
d274b56817 chore: code cleanup 2022-08-19 15:56:44 +05:30
Shariq Ansari
521102b589 fix: update public workspace name with json file 2022-08-16 18:23:23 +05:30
Gavin D'souza
624c308659 Merge branch 'develop' of github.com:frappe/frappe into modules-refactor 2022-08-08 12:27:11 +05:30
Ankush Menat
81b37cb7d2
refactor: clean up code to py310 supported features (#17367)
refactor: clean up code to py39+ supported syntax

- f-strings instead of format
- latest typing support instead of pre 3.9 TitleCase
- remove UTF-8 declarations.
- many more changes

Powered by https://github.com/asottile/pyupgrade/ + manual cleanups
2022-07-01 11:51:05 +05:30
Gavin D'souza
6538419e5d fix: Add return values to enable better testing ;) 2022-04-14 13:29:20 +05:30
Suraj Shetty
c0c5b2ebdd
style: format all python files using black (#16453)
Co-authored-by: Frappe Bot <developers@frappe.io>
2022-04-12 10:59:25 +05:30
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
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
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
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
prssanna
3aa3832bd3 feat: sync dashboards from json files 2020-07-06 12:11:57 +05:30
Saif Ur Rehman
6b427705be fix: codacy 2019-04-24 17:06:24 +05:00
Saif Ur Rehman
fc410ee950 fix: Move field_order sync logic to DocType controller and introduce hooks
before_export, before_import and prepare_docdict_for_import
2019-04-24 17:05:21 +05:00
Saif Ur Rehman
d30ec73d43 feat: Use field_order attr in DocType JSON file for cleaner git diffs 2019-04-24 17:05:01 +05:00
Aditya Hase
6b72faf44f style: Linting fixes (#6809)
* style: Remove unused imports

* style: Remove unused local variables
2019-01-23 16:39:55 +05:30
Faris Ansari
d20f9e2895 Data Migration Tool (for hub) (#4144)
* migration tool

* custom field for primary key added

* foreign key and multiple linking F_key issue resolved

* refined code

* many-to-one mapping temp fix

* added support for pre-process + cleaned up code

* [various] fixes to setup wizard for developer mode, frappe.enqueue_doc, share with assign

* Refactor data migration module

* added migration for hub

* Add "Skip errors" in data import tool

* move db_set to document.py

* Add Data Migration Run

* Dynamic Migration ID

* move run() from Mapping to Run

* Push Deleted Documents

* fixes

* [migration] doc operation counts

* insert and update instead of push in connection

* fix count and total_pages, skip sync if total_pages is 0

* [migration] child tables

* fix complete()

* [page] remove required libs

* Add sidebar.js, rename old sidebar.js to form_sidebar.js

* [minor] get_empty_state fixes

* svg in icon

* remove image check

* fix codacy

* fix is_child_table check

* [connector] add get_list()

* Add test for Data Migration Run

* fix test

* truncate tabNote

* fix test

* sync todo with event to fix test

* fix db count

* [mapping] export Mapping to json

* Add docs for Data Migration Tool

* [migration] pull data as list, test case

* [hub] remove mapping export to files

* Pull refactor

* [test]

* Add comments

* [mapping] exec in mapping formula

* fix codacy

* fix codacy

* Remove exec for pre-process and post-process

* Add pre and post process for Push

* Remove formula

* fixes

* [refactor] add failed_log to pull, handle error in pull

* [test] Push, pull, update

* Fix codacy, fix insert_doc for pull

* Set migration id on successful insert

* fix update_doc

* fix update_doc

* method is a function

* child table mapping

* Refactor logging

* fix update_doc again

* fix hostname, password

* update docs, minors

* Remove assign_if_none

* Remove error handling from connection methods

* [refactor] Data migration run

* Break push stages into methods

* Migration run refactor

- fix test
- add separate fields for logging

* fix codacy

* fix hostname password

* fix test
2017-10-05 11:15:35 +05:30
Rushabh Mehta
3fea731e62 Revert "minifiying doctype json's" 2016-08-10 14:30:29 +05:30
RobertSchouten
2c9df678a0 minifiying doctype json's
sick and tired of a change to the doctype meaning one small change to a doctype adds all the fields to the json 
strips out the values that doesnt contain value's
2016-08-08 14:54:24 +08:00
Anand Doshi
c10e3ec75e frappe.as_json 2015-03-18 16:21:41 +05:30
Anand Doshi
2995f02f3b Web Notes to Frappe, better alerts, css fixes, fixed splash 2015-03-03 15:09:34 +05:30
Pratik Vyas
7993f8c1e8 new cli 2015-03-02 17:13:42 +05:30
Rushabh Mehta
e888d86d9d added header to website and language fixes 2014-04-18 15:59:54 +05:30
Rushabh Mehta
ec010462b6 removed control panel 2014-04-04 12:00:37 +05:30
Rushabh Mehta
4f304cfc6a frappe/frappe#478, frappe tests pass, .txt renamed to .json 2014-03-31 17:27:12 +05:30
Anand Doshi
ddff84d216 Fixed import, export, delete doc #478 2014-03-28 12:22:19 +05:30
Rushabh Mehta
caed23686c minor fixes 2014-03-18 19:21:18 +05:30
Anand Doshi
edbadc18b2 Changed frappe.conn to frappe.db 2014-02-26 12:35:02 +05:30
Rushabh Mehta
024ddfcc5b -webnotes +frappe 💥 2014-02-14 14:55:11 +05:30
Renamed from webnotes/modules/export_file.py (Browse further)