Commit graph

1099 commits

Author SHA1 Message Date
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
Aldo
08639c3b60 feat: Configure custom path when backing up to S3 2025-03-15 17:19:30 -04:00
Aldo
4d53cc531a feat: [31732] Configure custom path when backing up to S3 2025-03-15 04:16:20 -04:00
Aldo
f9866b59be feat: [31732] Configure custom path when backing up to S3 2025-03-15 04:14:34 -04:00
Aldo
0a5fa1e94c feat: [31732] Configure custom path when backing up to S3 2025-03-15 03:57:57 -04:00
Suhail
5886234b53
refactor: sign up flow changes (#31205)
* fix: logout to site login page if the site is on Frappe Cloud

* fix: check if the site user is logged in before rendering trial banner

* fix: show dropdown even if the site is not on trial plan

* refactor: don't expose communication secret in boot

* feat: show install app button for fc sites

* fix: remove auth from desk

we can simplify it and let user do auth in fc

* fix: install app button condition

* refactor: use `is_fc_site` method

* fix: return boolean value for `is_fc_site` function

* fix: add install app button in /apps page

* fix: don't generate otp for login to fc

* fix: remove install app option from desk

* fix: design changes for trial banner

* fix: add more details to the `current_site_info` endpoint

also don't render trial banner if trial end date is passed

* fix: don't route user to welcome page

always put them on the site's dashboard

* fix: override base_url when needed

also remove misleading class

* fix: show banner to normal user to contact system admin for plan upgrade

* refactor: redirect from /login instead of every /logout code

* fix: rename login to fc to manage billing

also move it above the divider

* refactor: separate out site-login url from login.py
2025-03-03 16:36:15 +00:00
Ejaaz Khan
85c22ec156
Merge pull request #30923 from bartoszpijet/develop
fix: event sync from Google Calendar not visible to user
2025-02-28 11:39:35 +05:30
Ankush Menat
c229f5a34a
fix: handle large URL on webhook logs (#31428)
Missed in https://github.com/frappe/frappe/pull/24761
2025-02-25 09:57:29 +00:00
Bartosz Pijet
4213ce69b1 refactor: Improve google_calendar insert_event_to_calendar readability 2025-02-24 11:08:19 +01:00
Bartosz Pijet
0130fb83d0 fix: Google calendar sync
Bugfix for events beeing synced as "Administrator" while beeing private. Now admin can select if events should be synced as public. Also This fix will sync events with their proper owners.
2025-02-21 17:53:33 +01:00
Alex Leach
cfbbaffd1d feat: OAuth 2.0. Allow including client_id in backend app auth request.
As per rfc6749 section-3.2.1, clients:

> MAY use the "client_id" request parameter to identify itself when
> sending requests to the token endpoint.

This patch allows to include client_id in BackendAppFlow, for servers
that require it.
2025-02-20 06:14:11 +00:00
Ankush Menat
0397b32771
perf: client-cache webhooks (#31095) 2025-02-04 06:17:35 +00:00
Bread Genie
ca1358689d fix: add is_fc_site endpoint back 2025-02-03 12:28:41 +05:30
Bread Genie
278e0e954b refactor: remove and change fc billing endpoints to accomodate new signup changes
- also make relevant changes in billing.bundle.js
2025-01-30 18:47:12 +05:30
Ankush Menat
4116a33560
perf: speed up oauth bearer token query (#29184)
* perf: index user and make not_nullable

* refactor: simpler expiry setting

* perf: don't fetch all tokens
2025-01-15 13:24:46 +00:00
Ankush Menat
e137e36180 test: don't sleep in webhook tests
Wasting 2 minutes doing nothing.
2025-01-04 12:07:04 +05:30
Ankush Menat
60bc472ab6
revert: restore JSON files (#28717)
* Revert: bring back JSON files

* chore: re-apply changes to new files

* chore: remove old TOML files

* chore: delete empty files
2024-12-09 08:41:56 +00:00
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