Commit graph

1064 commits

Author SHA1 Message Date
Gavin D'souza
d521ac124d
style: Sort imports & move whitespaces to please ruff 2024-12-06 15:43:33 +05:30
Gavin D'souza
7e2e5f80b9
fix: Usage of tzinfo replace when no tz is specified 2024-12-06 15:43:33 +05:30
Gavin D'souza
c6580b5880
refactor: Replace pytz to std lib zoneinfo & datetime
Signed-off-by: Gavin D'souza <gavin.dsouza@switchup.de>
2024-12-06 15:43:33 +05:30
Akhil Narang
84ef6ec677
refactor: fixup with ruff 0.8.1
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-12-04 13:18:04 +05:30
Shariq Ansari
50e19617c0 fix: added api to send verification code and verify and login to fc 2024-11-22 21:40:40 +05:30
Shariq Ansari
5bfc2e7f58 refactor: trial banner class naming 2024-11-15 16:46:44 +05:30
Shariq Ansari
681b2b0186 fix: do not show billing page if setup not completed or not system manager 2024-11-15 16:27:08 +05:30
Shariq Ansari
fb0a19bd03 chore: linter fix 2024-11-14 21:50:00 +05:30
Shariq Ansari
37a5e0eddb fix: show PageNotFound page if not fc site 2024-11-14 17:49:01 +05:30
Shariq Ansari
afa817d40c fix: removed saas_billing_base_url used for testing 2024-11-11 13:45:12 +05:30
Shariq Ansari
cd8320b24c fix: frappecloud billing api helper 2024-11-11 07:57:11 +00:00
Rushabh Mehta
6da9d2a808
Merge pull request #28271 from rmehta/fix-oauth-page
fix(style): fix oauth authorisation page and standardise error responses
2024-11-03 10:42:04 +05:30
Raffael Meyer
881d8c8597
fix(Webhook): highlighting for JSON Request Body (#28313)
The JSON request body is  supposed to hold a jinja template which produces valid JSON. The JSON highlightng shows errors when applied to a jinja template.
2024-10-28 23:02:16 +01:00
Rushabh Mehta
cef8c12ee4 fix(style): fix oauth authorisation page and standardise error responses 2024-10-24 15:21:34 +05:30
Corentin Forler
7360e3aa3d
fix: Use frappe._ 2024-10-16 21:07:57 +02:00
Corentin Forler
78fbd39b2a
fix: Translate OAuth confirmation details 2024-10-16 12:32:49 +02:00
David Arnold
443c38daa9
refactor: toml test records for readability (#28065)
* refactor: toml test records for readability

* fix: maintain backwards compatibility

* refactor: transform in-tree records

* chore: don't use deprecated functions (treewide)

* chore: revert migration of tests which depend on old test records list

* feat: add cls.globalTestRecords on IntegrationTestCase
2024-10-10 13:24:02 +02:00
David Arnold
83bc1f09e9
refactor: clarify test record dep management in test modules (#28060) 2024-10-09 13:44:27 +00:00
David Arnold
c114e5fae8
refactor: unit vs integration treewide (#27992)
* refactor: constitute unit test case

* fix: docs and type hints

* refactor: mark presumed integration test cases explicitly

At time of writing, we now have at least two base test classes:

- frappe.tests.UnitTestCase
- frappe.tests.IntegrationTestCase

They load in their perspective priority queue during execution.

Probably more to come for more efficient queing and scheduling.

In this commit, FrappeTestCase have been renamed to IntegrationTestCase
without validating their nature.

* feat: Move test-related functions from test_runner.py to tests/utils.py

* refactor: add bare UnitTestCase to all doctype tests

This should teach LLMs in their next pass that the distinction matters
and that this is widely used framework practice
2024-10-06 09:43:36 +00:00
David Arnold
92ee2ce291
Merge pull request #27931 from blaggacao/feat/sidebad-with-log-links
Feat: sidebar with log links
2024-09-30 13:41:25 +02:00
David
22498f26a7
feat: add link to (various) logs in sidebar 2024-09-30 13:24:55 +02:00
barredterra
8d52eeafe0 fix: don't catch S3 upload error prematurely 2024-09-23 14:59:24 +02:00
Akhil Narang
b127948317
Merge pull request #27829 from Mutantpenguin/patch-1
LDAP: escape special characters in `entry_dn` to prevent `LDAPInvalidFilterError`
2024-09-23 12:57:10 +05:30
Akhil Narang
71b869a975
refactor(keycloak): set API endpoint while getting list of oauth providers
urljoin() just adds the base URL to the relative path, here our base URL has an extra route in the path which isn't added in.

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-09-19 15:31:32 +05:30
Markus Lobedann
691bef09aa
fix: 🐛 escape special characters in entry_dn
entry_dn can contain special characters like parenthesis (e.g. to surround nicknames), but these will be interpreted as part of the filter syntax when not escaped and lead to an LDAPInvalidFilterError
2024-09-19 09:44:10 +02:00
pa1narendra
42b01570ae feat(auth): added keycloak as a social login provider 2024-09-06 10:13:18 +00:00
Akhil Narang
4eac35081c
Merge pull request #26395 from barredterra/address-autocomplete
feat: address autocomplete dialog
2024-09-06 15:04:01 +05:30
Akhil Narang
8c099ced74 chore: update message
(cherry picked from commit 4e6581b0fc9006bdf3e869565ec59727556972c1)
2024-09-05 10:02:47 +00:00
Türker Tunalı
733edd2ffd fix: Enhance the error message of the connected app authorization.
Error were "Invalid state". The reason was user who created the token. So we've added a little bit more context here.

(cherry picked from commit 4ad55b98c28d4c342808d166e7c124b89729607e)
2024-09-05 10:02:46 +00:00
Raffael Meyer
594b0a2536
Merge branch 'develop' into address-autocomplete 2024-08-28 11:14:43 +02:00
Gursheen Kaur Anand
beef1fa224
fix: use authentication url when password not found (#27451) 2024-08-20 10:40:38 +02:00
Akhil Narang
fc12e46171
Merge pull request #27188 from blaggacao/chore/adapt-webhook-preview
chore: adapt webhook preview
2024-08-12 13:34:03 +05:30
David
ac0e46669d
fix: spec preview fields statically on the frontend 2024-08-09 13:50:41 +02:00
Arun
ae3f8f455b fix: http to https for url 2024-07-29 13:53:25 +05:30
David
9ed2271d12
chore: adapt webhook preview 2024-07-22 16:26:21 +02:00
ALB.Leach
dde466be3d
feat: Implement OAuth Backend App Flow for Email Accounts (#27167)
* feat: Implement OAuth Backend App Flow for Email Accounts

* chore: Reformat to satisfy linter

* chore: format

Signed-off-by: Akhil Narang <me@akhilnarang.dev>

---------

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
Co-authored-by: Akhil Narang <me@akhilnarang.dev>
2024-07-22 16:47:18 +05:30
Arun Mathai S.K.
02c680e68d
fix: migrate-to now works (#27115)
* chore : migrat-to pre check url

* feat: migrate-to now works

* fix: unecessary context

* chore: remove commented code
2024-07-18 10:27:20 +05:30
Suraj Shetty
acd41b2d8c
Merge pull request #26797 from s-aga-r/fm-connector
feat: Frappe Mail Connector
2024-07-11 16:22:43 +05:30
s-aga-r
2488642746 chore: connected app - show title in link field 2024-07-05 08:28:20 +05:30
barredterra
c5d6030654 feat: disable "Create Address" button if mandatory fields are missing 2024-06-22 16:05:16 +02:00
barredterra
f6c4c94f70 feat: add HERE as geolocation provider 2024-06-22 15:40:11 +02:00
mergify[bot]
521c6c1bad
Merge branch 'develop' into address-autocomplete 2024-06-12 16:01:30 +00:00
Akhil Narang
152c4d4b91
fix(make_request): don't blindly try to check the content-type
Ensure that the response has one first

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-06-03 18:28:22 +05:30
barredterra
3933725c6e feat: add Nomatim as geolocation provider 2024-05-19 22:02:59 +02:00
barredterra
97db7aa64b refactor: return generator 2024-05-19 21:37:43 +02:00
barredterra
531b177c91 refactor: rename to Geolocation Settings 2024-05-19 20:51:58 +02:00
barredterra
5293195179 refactor: provider naming 2024-05-09 22:57:32 +02:00
barredterra
1520888f79 fix: API Key label 2024-05-09 22:32:02 +02:00
barredterra
a1aa86589f fix: limit to five results, remove outdated comment 2024-05-09 22:31:49 +02:00
barredterra
388046491e fix: return structured result from provider 2024-05-09 22:08:12 +02:00