Commit graph

43 commits

Author SHA1 Message Date
Nihalroshan55
c21935ba9e
fix: added prefix none as default in export_fixtures (#24816)
* added prefix none as default in export_fixtures

* refactor: declare prefix default later later

---------

Co-authored-by: Ankush Menat <ankush@frappe.io>
2024-02-10 08:21:56 +00:00
Ankush Menat
de9ac89748 style: re-format with ruff 2024-02-05 18:53:33 +05:30
Ankush Menat
4a8fb6c43c style: format 2023-12-28 19:16:11 +05:30
mergify[bot]
a9bb994f15
fix!: deterministic fixture import order (#22210)
* feat: #20753 fixture export prefix and fixture import order

(cherry picked from commit 6a9c56a568e4ccf181fe9cb4153d0b9e4f02ac3d)

* refactor: clarify prefix logic, see c4866921df (r1196249038)

(cherry picked from commit cd2519e71e5545bd4c706369df3ea05843a0bfd9)

* style: format

* refactor: conditionally sort documents when importing

* refactor: simplify code

* feat: Unittest as requested in https://github.com/frappe/frappe/pull/22210#discussion_r1331587501

---------

Co-authored-by: To Finke <tom.finke@webterra.de>
Co-authored-by: Ankush Menat <ankush@frappe.io>
2023-12-28 14:24:45 +05:30
Ankush Menat
cfdbad6653 refactor!: Remove custom script import 2023-06-13 13:13:23 +05:30
Ankush Menat
74cbdbf07f refactor: Deprecate importing of fixturs/custom_scripts 2023-06-13 13:13:23 +05:30
Rucha Mahabal
1bab900e6f fix: skip custom script syncing for missing doctypes 2023-06-12 22:09:08 +05:30
Rucha Mahabal
f7abf3b1cf fix: handle fixture syncing for missing doctypes 2023-06-12 22:07:00 +05:30
phot0n
3539dacdf0 fix: commit after app install
Since we destroy the connection after app installation,
mariadb implicitly rollsback the transaction hence committing upon successfull
app installation to prevent data sync loss
2022-09-12 12:23:14 +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
barredterra
8f53a039a6 refactor: Sync fixtures 2022-04-26 23:43:07 +02:00
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
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
2aa2586a0c fix: Drop deprecated validate_csv_import_file def 2021-07-13 12:04:18 +05:30
Rohan Bansal
7b4e75e15d fix: error while using data import and importing docs 2021-02-22 17:15:49 +05:30
Gavin D'souza
79cb3f0596 feat: Rename "Custom Script" to "Client Script"
* Remove postfix "-Client" from ClientScript.autoname
2021-02-04 14:06:09 +05:30
NahuelOperto
30ef12e9ca fix: fixtures order by 2019-07-04 08:23:50 -03:00
Faris Ansari
f724cd84a1 fix: Remove usage of script_type 2019-03-22 00:32:50 +05:30
Shridhar Patil
8aadcdf73e export fixtures of a specific app 2019-02-27 12:18:46 +05:30
Manas Solanki
520bfc2ae4 New data import (#4601)
* created/moved the files

* added the model for the downloading the data

* add the file with the error data

* changes added other changes and fix codacy

* changes in the config and utils files

* fixed the test cases

* minor changes in the data keys dict

* changed the test file location

* fixed the tests

* set the route in the list view and show only erors

* minor fixes in the childtable import and log tables rendering

* Refactor Download dialog to use MultiCheck
2017-12-15 12:17:24 +05:30
tundebabzy
7b41d7e5eb Python 3 compatible print statements (#3199)
* changes print statements in file to python 3 compatible style using `__future__`

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* changes deprecated md5 module to hashlib

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements
2017-05-01 12:34:29 +05:30
schilgod
f228d462d2 Add or_filters filter for export_fixtures, to filter by doctype or fieldnames (#2616)
Eg:
fixtures = [
        {
        "doctype": "Custom Field",
        "or_filters": {
            "dt": ["in", [
                "Process Payroll",
                "Journal Entry Account"
            ]],
            "name": ["in", [
                "Print Settings-compact_item_print",
                "Account-account_id",
                "Account-some_bank_name"
            ]]
        }
    }
]
2017-01-24 11:01:41 +05:30
Rushabh Mehta
a9e3df6e82 [minor] fixes for custom field and website route length 2016-07-26 08:23:04 +05:30
Anand Doshi
027e1d2131 [fix] don't validate standard webform if in sync fixtures 2016-03-01 17:13:12 +05:30
akshay83
24aa3be1bb Update fixtures.py
Fixes Processing "property_setter.json" before "custom_field.json"
2016-02-13 15:39:40 +05:30
Luis Fernandes
74be273450 Export Fixtures with filters. 2015-10-07 12:53:51 +01:00
Luis Fernandes
99c07d39ae Export Fixtures with filters. 2015-10-07 12:49:14 +01:00
Luis Fernandes
09c5a78149 Export Fixtures with filters. 2015-10-07 12:47:28 +01:00
Rushabh Mehta
b3e20f63b2 [enhancement] custom script fixtures via fixtures/custom_script 2015-04-20 12:46:44 +05:30
Rushabh Mehta
1b59d640ee strip unwanted fields from json fixture export 2015-03-11 18:52:31 +05:30
Pratik Vyas
d681caa479 fix export fixture 2015-03-05 15:17:20 +05:30
Anand Doshi
2995f02f3b Web Notes to Frappe, better alerts, css fixes, fixed splash 2015-03-03 15:09:34 +05:30
Luís Fernandes
5b8af5c64e Extends exports fixtures 2014-10-06 11:31:44 +01:00
Rushabh Mehta
fbd4277158 [fixes] [website] for translator 2014-08-28 12:45:16 +05:30
Anand Doshi
65be3f65a5 Fixed sidebar, fixtures and delete doc 2014-07-09 18:48:29 +05:30
Rushabh Mehta
6c3b5dded4 cleaned up verbosity 2014-06-19 18:00:14 +05:30
Rushabh Mehta
c9055ad62f website updates 2014-05-04 17:46:11 +05:30
Rushabh Mehta
f686c769b4 #478, fix sync and other minor fixes 2014-04-08 13:10:35 +05:30
Rushabh Mehta
ba8bfbe37a frappe/frappe#478 fixed data import tool: 2014-04-02 15:59:58 +05:30
Rushabh Mehta
735b1d76ef fixtures: fix - overwrite 2014-02-28 12:32:31 +05:30
Rushabh Mehta
3b23187e86 added export fixture and sync_statics on latest 2014-02-28 11:10:03 +05:30
Rushabh Mehta
1c42cf90fe import csv fixtures too 2014-02-26 19:30:04 +05:30
Rushabh Mehta
a8d8e1c3b3 added fixture sync 2014-02-26 12:28:26 +05:30