-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial WIP of caldav in FTUE + as an external connection * Additional changes for caldav on FTUE: * Renamed ftueStep.GooglePermissions to ftueStep.CalendarProvider * Add a switch button during the FTUE calendar provider step * Add modal text * Refactor LoginView::handleFormError to be generic and now lives in utils * Allow force fetching of external connections * Add CalDAV as an external connection option * Refactor GoogleOauthProvider to be more in-line with how CalDAVProvider works * Add shortcuts for decrypt/encrypt in Python utils * Cache dns lookup for the remainder of the ttl * Add missing i18n * Adjust how caldav connections are tested, and only pull in supported calendars * Split the various methods we check caldav urls into separate functions * Check if service is explicitly not supported * Add some tests * 🌐 Update German translation * Fix handleFormErrors * Rebase migration down id * Fix unused imports, add some optional props, and fix secure calendars * Fix a string lookup issue --------- Co-authored-by: Andreas Müller <[email protected]>
- Loading branch information
1 parent
635b4fe
commit 8cdbfb9
Showing
30 changed files
with
894 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,3 +34,4 @@ redis==5.0.7 | |
hiredis==2.3.2 | ||
posthog==3.5.0 | ||
slowapi==0.1.9 | ||
dnspython==2.7.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
...ointment/migrations/versions/2024_10_09_2006-71cf5d3ee14b_update_external_connections_.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
"""update external connections type enum with caldav | ||
Revision ID: 71cf5d3ee14b | ||
Revises: 01d80f00243f | ||
Create Date: 2024-10-09 20:06:47.631534 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '71cf5d3ee14b' | ||
down_revision = '502d0217a555' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
old_external_connections = ','.join(['"zoom"', '"google"', '"fxa"']) | ||
new_external_connections = ','.join(['"zoom"', '"google"', '"fxa"', '"caldav"']) | ||
|
||
|
||
def upgrade() -> None: | ||
op.execute( | ||
f'ALTER TABLE `external_connections` MODIFY COLUMN `type` enum({new_external_connections}) NOT NULL AFTER `name`;' # noqa: E501 | ||
) | ||
|
||
|
||
def downgrade() -> None: | ||
op.execute( | ||
f'ALTER TABLE `external_connections` MODIFY COLUMN `type` enum({old_external_connections}) NOT NULL AFTER `name`;' # noqa: E501 | ||
) |
Oops, something went wrong.