Ankush Menat
3e2d2a703a
test: Use FrappeTestCase everywhere
2022-08-17 16:39:42 +05:30
Ankush Menat
40f27f908a
style: format JS files with prettier
2022-08-04 14:51:01 +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
Rucha Mahabal
a5c04561d0
fix: use the correct dt name while populating data in mapping table
2022-06-14 14:12:50 +05:30
Rucha Mahabal
4c965d54df
fix(Event Streaming): set remote docname and site name before inserting mapped doc
...
- needed to differentiate a remote doc at the time of insertion
2022-06-14 14:12:43 +05:30
Gavin D'souza
b189672307
test: Skip test_multiple_doctypes_sync for Postgres tests
2022-06-08 12:42:34 +05:30
Rushabh Mehta
6e6fe9521e
fix(linting): no single quotes :'|
2022-04-18 17:29:03 +05:30
Rushabh Mehta
57a55e4225
feat(minor): Add document reference to Error Log and doc.log_error
2022-04-18 17:29:03 +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
bebc8058b6
feat: integer primary keys
2022-03-11 23:46:00 +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
Rucha Mahabal
3bdca71924
fix: delete Event Producer Last Update on trash event of Event Producer
2021-12-03 10:37:30 +05:30
Mai Ismail
1534e5398a
fix(Event Streaming): Doctype dependencies sync ( #14299 )
...
File "/home/mai/Workspace/V13/v13_online/apps/frappe/frappe/event_streaming/doctype/event_producer/event_producer.py", line 414, in sync_child_table_dependencies
child_doc = frappe._dict(child_doc)
TypeError: 'NoneType' object is not iterable
2021-09-28 11:30:09 +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
Abhishek Balam
f4e4fc98f9
fix: remove unnecessary schemes and minor changes
2021-05-02 00:32:01 +05:30
Hussain Nagaria
024e759a70
refactor: Add optional URL scheme validation
2021-05-01 00:34:19 +05:30
Hussain Nagaria
9d4ee238d7
fix: Remove duplicate validation function
2021-04-30 14:52:16 +05:30
Rohan Bansal
dade7ed216
refactor: fix py3 datatypes and remove references to six in oauth
2021-04-28 14:02:23 +05:30
Revant Nandgaonkar
96d6971ee4
refactor: improve oauthlib implementation
...
implement openid provider
implement PKCE
improve errors
2021-04-26 22:56:14 +05:30
Rucha Mahabal
bf97382002
fix: row removed in child table not syncing when it has a dependency field
2020-12-23 13:09:53 +05:30
Fahim Ali Zain TP
0cb29a81ae
feat(Event Streaming): Conditional Events ( #10868 )
2020-11-13 15:15:29 +05:30
Rushabh Mehta
8bd98e6272
fix(minor): set name for Event Producer Last Update
2020-10-26 13:22:38 +05:30
Rushabh Mehta
625ab74883
fix(tests): added a new table to avoid conflicts
2020-10-26 13:01:46 +05:30
Rucha Mahabal
f24d87726a
fix: added patch for deleting old keys
2020-09-09 11:10:47 +05:30
Aditya Hase
386b4847b4
chore: Attempt at fixing event-streaming tests
2020-09-09 09:38:20 +05:30
Rucha Mahabal
8cffea5c8e
fix: test
2020-09-09 01:13:06 +05:30
Rucha Mahabal
efdeab6dad
fix: test
2020-09-09 00:43:50 +05:30
Rucha Mahabal
21a299752b
fix: test
2020-09-09 00:02:25 +05:30
Rucha Mahabal
220c4b734e
fix: event subscriber validation
2020-09-08 22:56:18 +05:30
Rucha Mahabal
3b5c404378
fix: tests
2020-09-08 20:55:53 +05:30
Rucha Mahabal
ed5f332bb9
fix: sider issue
2020-09-08 19:29:46 +05:30
Rucha Mahabal
d7ea913605
fix: event streaming fixes
2020-09-08 19:01:08 +05:30
Rucha Mahabal
e48ed816c3
fix(Event Streaming): remove in_test flag from Event Consumer
2020-09-06 16:35:28 +05:30
Rushabh Mehta
8c8f7313f4
fix(minor): make utils explicit in safe_globals ( #11408 )
...
* fix(minor): make utils explicit in safe_globals
* fix(minor): import subprocess
* fix(minor): fix globals in safe_eval;
* fix(minor): import subprocess
* fix(minor): add test
* fix(minor): webhook.py
* fix(minor): document_type_mapping.py
2020-09-03 14:26:01 +05:30
Rucha Mahabal
bb0e8af0fb
fix(test): unsubscribe doctypes in tearDown
2020-08-17 09:41:54 +05:30
Rucha Mahabal
8d09b37308
feat(Event Streaming): allow consumers to unsubscribe
2020-08-17 09:41:54 +05:30
Rushabh Mehta
6336756c8a
fix(tests): test_event_producer
2020-08-17 09:41:54 +05:30
Rushabh Mehta
dad59ce8cf
fix(tests): select for update in reset_event_producer
2020-08-17 09:41:54 +05:30
Rushabh Mehta
df8075bd1d
debug(minor): print trace for failed events in tests
2020-08-17 09:41:54 +05:30
Rushabh Mehta
81a02794b8
fix(event_consumer): choose the right doctype
2020-08-17 09:41:54 +05:30
Rushabh Mehta
b92b97fd9a
fix(minor): clear cache for maps
2020-08-17 09:41:54 +05:30
Rushabh Mehta
5ead49c212
fix(tests): fix caching for event_consumer.py
2020-08-17 09:41:54 +05:30
Rushabh Mehta
b09beb9147
fix(tests): cleanup
2020-08-17 09:41:54 +05:30
Rushabh Mehta
b4b620e738
fix(refactor): event_update_log - move code from document.py and cleanup hooks
2020-08-17 09:41:54 +05:30
Rushabh Mehta
26a9230fdd
fix(tests): more debugging
2020-08-17 09:41:54 +05:30
Rushabh Mehta
73c98d7082
fix(minor): stop printing
2020-08-17 09:41:54 +05:30
Rushabh Mehta
b1971d1f65
fix(minor): add for_update parameter in get_doc
2020-08-17 09:41:54 +05:30
Rushabh Mehta
e421bc19f6
fix(major): frappe.db.set_value will lock the row
2020-08-17 09:41:54 +05:30
Rushabh Mehta
4d97635ab4
fix(major): frappe.db.set_value will lock the row
2020-08-17 09:41:54 +05:30