Commit graph

1130 commits

Author SHA1 Message Date
Akhil Narang
c94b4c0e8b
fix(ldap): escape filter characters
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-10-08 12:07:26 +05:30
Akhil Narang
6ca4d4d167
refactor(treewide): ruff format
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-09-26 13:16:43 +05:30
Anoop
ef34a7ce7d
fix: check participant email exists before adding to guest list (#33944) 2025-09-08 18:25:25 +05:30
Anoop
804e211b2d
fix: owner getting added to google event participant list (#33939) 2025-09-08 14:23:37 +05:30
Raizaaa
aa3bb0e4d7 fix: remove trailing spaces in translatable strings 2025-08-27 13:23:17 +03:00
Raizaaa
481c439dc2 docs(google_settings): update documentation link 2025-08-18 17:18:02 +03:00
Akhil Narang
debd500cf3
fix: validate social login key JSON fields (#33622)
Any misconfiguration would break login page otherwise

Resolves #33579

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-08-14 12:56:12 +05:30
Hussain Nagaria
89da9934bc
refactor: fetch openID config in backend (#33586) 2025-08-11 12:48:23 +05:30
Ayush Chaudhari
761751f269
feat: App-Defined Workflow Tasks and Server Scripts on Transition (#33255)
* feat: add workflow task doctypes

* chore: add Workflow Task to Script Type of Server Scripts

* chore: add description for Workflow Tasks

* feat: fetch dotted paths and corresponding names from hooks

* fix: use Select field instead of Autocomplete

* feat: execute tasks in the background on state transition

* fix: throw error when task not found

* fix: naming for transition task set by user

* fix: child table views

* feat: support for server scripts

* chore: comments and description

* fix: change the casing of docevent options

* fix: change test casing

* feat: Add Workflow Transition field to webhooks

* fix: temporarily remove filter

* feat: add webhooks as workflow actions

* test: test execution of synchronous app-defined methods and server scripts

* chore: shorten the description and change the fieldname of the field 'execute_asynchronously' to 'asynchronous'

* test: server script executipn

* fix: add field to UI

* test: change customer to domain

* test: change Customer to Domain

* fix: patch for change in webhook fields

* chore: fetch only used fields in get_all

* fix: don't run test logic in application code 🙂

* test: separate tests for workflow tasks

* Revert "fix: patch for change in webhook fields"

This reverts commit 2e9c51c43ca2b3698991fbe75cc4032368ab174c.

* chore: break into smaller functions

* test: webhooks with workflow tasks

isolate mock responses to test_sync_tasks

* Revert "fix: change test casing"

This reverts commit e2bad96ed01dea0a26d002ea44a1e0175525ed31.

* Revert "fix: change the casing of docevent options"

This reverts commit ddfc81bf775fad74225f25815b8e3e7b255dc9eb.

* fix: webhook casing

* fix: type hint for doc
2025-07-29 11:01:44 +05:30
Soham Kulkarni
64db88228f
refactor: seperate blogs into a seperate app (#32737)
* fix: remove doctypes,workspace blocks, files

* fix: minor python tests and UI tests

* fix: remove blog post from tests

* fix: remove blogger as role for tests

* fix: add check for if doctype exists

* fix: ui test

* fix: more cleanup

* fix: cleanup comments and fix test_query

* fix: resolve conflicts

* fix: add warning and handle comments
2025-07-28 14:35:02 +05:30
Nihantra C. Patel
03109a7b67
fix: Remove specific links from Integrations workspace and reindex (#33285)
* fix: update the Integrations workspace

* fix: Remove specific links from Integrations workspace and reindex

* fix: again update the Integrations workspace

* fix: remove patch as per comment

* fix: remove custom button Newsletter from email group doctype
2025-07-16 12:14:15 +05:30
18alantom
3eab2b73b7
chore: update readme 2025-07-04 15:24:44 +05:30
18alantom
c4f2335f11
fix: support public client 2025-07-04 15:05:50 +05:30
18alantom
db4a7504e5
fix: add hooks to handle cors 2025-07-04 13:18:43 +05:30
18alantom
e76c1830e1
chore: add global flag for Social Login Key 2025-07-04 11:25:06 +05:30
18alantom
933ec04074
chore: fix typo 2025-07-03 15:12:25 +05:30
Alan
c174e9cbdc
fix: apply fixes on accepted Copilot suggestions
Update frappe/integrations/oauth2.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

Update frappe/integrations/README.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

Update frappe/integrations/utils.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

Update frappe/integrations/utils.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-07-03 15:01:47 +05:30
18alantom
befca37299
chore: README for integrations with OAuth2 docs
- Update descriptionsi in OAuth Settings
2025-07-03 14:42:28 +05:30
18alantom
5ca8ad9d84
refactor: deprecate OAuth Provider Settings
OAuth Settings has its fields now (only one)
2025-07-03 14:07:38 +05:30
18alantom
1215afdf96
feat(OAuth2): support RFC 9728
adds OAuth Settings to configure settings pertaining to Frappe used as
an OAuth auth server and resource server
2025-07-03 13:20:52 +05:30
18alantom
4cd8115c4c
refactor: unify how .well-known routes are handled 2025-07-02 15:17:42 +05:30
18alantom
3a47801598
feat(OAuth2): support RFC 7591
This allows a client to be registered without manual intervention.
2025-07-02 13:01:37 +05:30
18alantom
f8425b6520
feat(OAuth2): support RFC 8414
This allows an OAuth client to get metadata about the auth server, i.e.
the frappe bench being used as an OAuth2 auth server.

Metadata includes values for auth server urls and endpoints and
supported types and modes.
2025-07-01 13:40:18 +05:30
Soham Kulkarni
77eda41443
Merge pull request #32351 from sokumon/offsite-backups-removal
refactor: separating backup integrations into an app
2025-06-17 23:30:51 +05:30
Sagar Vora
b3e1eda4c8
feat: global frappe.in_test flag (#32960)
* feat: global `frappe.in_test` flag

* feat: helper utility to toggle `frappe.in_test`

* fix: use `toggle_test_mode` util

* fix: use `frappe.in_test`

* chore: add comment explaining global `in_test`

* chore: ignore commit replacing flag usage

* test: temporarily disable `frappe.in_test`

this worked earlier because flag was set in werkzeug.local which was separate for API test client

* test: add comment explaining change
2025-06-17 19:19:31 +05:30
sokumon
63cf3676a0 fix: remove utils file and typo 2025-06-17 18:39:21 +05:30
sokumon
80aaf1f31e fix: add a better config dict to GoogleOAuth instead of args 2025-06-14 23:59:22 +05:30
sokumon
a639828bd4 fix: add abiltiy to extend the Domain callback methods via google oauth constructor 2025-06-14 23:59:22 +05:30
sokumon
422995cd45 fix: seperate backup options into app 2025-06-14 23:59:22 +05:30
Karuppasamy
22d16ba1ca
fix: update Keycloak redirect_url to correct login method endpoint (#32908) 2025-06-12 13:38:42 +05:30
Ankush Menat
8088bd3891
chore: Drop empty UnitTestCases (#32867)
Next to zero adoption after introduction, just noise in codebase.

I don't see any point in arguing about purity of test cases when
existence and quality of test cases is usually the bigger problem.

Dropped using semgrep
2025-06-10 05:28:53 +00:00
Ankush Menat
2dfb96f91c
fix: handle snapshot isolation errors better (#32318)
* fix: Avoid Snapshot violation

- Main thread created and "read" user
- Other thread modified something
- Main thread wants to delete or "write" to same row.

This violates snapshot isolation.

* fix: treat snapshot violation as deadlock for now

* test: handle snapshot violations
2025-04-28 06:18:38 +00:00
Ankush Menat
33e28e0b28
Merge pull request #31989 from revant/clear-expired-tokens
fix: add clear_old_logs OAuth Bearer Token
2025-04-17 18:25:38 +05:30
Ankush Menat
acea1aedbf perf: handle clearing large oauth token table 2025-04-17 18:05:37 +05:30
gavin
792f1c237f
Merge pull request #32167 from gavindsouza/bp-pr-32074
perf(events): get_events performance & Google Calendar Integration fixes
2025-04-16 13:33:33 +02:00
Suhail
dafc73836f
feat: initialise and preload system settings and user for setup wizard (#32108)
used in press to smoothen the signup experience
2025-04-15 18:30:39 +05:30
Gavin D'souza
f2e5c2ab26
chore: Remove redundant casting
(cherry picked from commit 3cd431df800cc448268200823bee59820407f096)
2025-04-14 17:55:30 +02:00
Gavin D'souza
97942dba3c
refactor(Event): get_events
* Don't show repeatable events starting in the future for the past dates
  [fix]
* Simplify logic & variables naming for better maintainability, reduce
  unnecessary looping, data structures [perf]
* Use standard library when possible [refactor]

(cherry picked from commit 4570758b5fd02e724b8b044abdd1a3817bcef35b)
2025-04-14 17:55:29 +02:00
Gavin D'souza
3894d4093a
fix(google-calendar): Use byday variable type properly
Introduced via https://github.com/frappe/frappe/pull/31772

(cherry picked from commit 3829c2a1c2cedf55c036254c57b211959619468b)
2025-04-14 17:55:22 +02:00
Revant Nandgaonkar
14d475f2c2 chore: fix pre-commit errors 2025-04-03 11:53:32 +05:30
Revant Nandgaonkar
7854622495 fix: add clear_old_logs OAuth Bearer Token 2025-04-03 11:45:44 +05:30
Ejaaz Khan
bf58d507fa
Merge pull request #31735 from aldo-o/s3-cutom-backup-path
feat: Configure custom path when backing up to S3
2025-03-31 12:39:25 +05:30
Gavin D'souza
a73ecf5456
feat(Event): Sync Participants if they are in-system users 2025-03-17 20:09:45 +01:00
Gavin D'souza
6ead12eb1a
fix(Google Calendar): lazy translate common label properly 2025-03-17 19:29:36 +01:00
Gavin D'souza
addf682acb
fix: Sync events based on calendar user not who created it 2025-03-17 19:29:02 +01:00
Gavin D'souza
fe59e3914b
fix: Events on Google Calendar dont have mandatory titles like Frappe 2025-03-17 19:28:08 +01:00
Gavin D'souza
08657d58a3
fix: Sync all calendars and not only the first one!
I don't get how this worked for others until now
2025-03-17 19:25:53 +01:00
Gavin D'souza
ead0cb5870
refactor: Google Calendar
* Simplify logical flows based on flow of data & transactions
 * Reduce indents
 * Remove redundant blocks
 * Make code less brittle in redirect_uri generation
 * Add typing wherever valuable
2025-03-17 19:22:54 +01:00
Gavin D'souza
e9691a1b08
perf: Google Calendar
* Check if sync is enabled before refreshing token & shit - reduce
   deletion of event times like a 1000x
 * Use cached settings to avoid reading the same thing while operating
   on Events or Google Calendar syncs
2025-03-17 19:11:06 +01:00
Gavin D'souza
67ed91021b
fix(Google Calendar): Parse recurrence params correctly
Closes https://github.com/frappe/frappe/issues/15718
2025-03-17 18:54:28 +01:00