Skip to content

Commit a24b33d

Browse files
maximeroucherarmanddidierjeanNakoGH
authored
Raid: removing google drive support (#850)
### Description Remove completely the Google Drive support Add an endpoint to serve a zip with the security files of all the participants ### Checklist - [ ] Created tests which fail without the change (if possible) - [ ] All tests passing - [ ] Extended the documentation, if necessary --------- Co-authored-by: armanddidierjean <[email protected]> Co-authored-by: NakoGH <[email protected]>
1 parent ef6aeb5 commit a24b33d

File tree

8 files changed

+333
-1093
lines changed

8 files changed

+333
-1093
lines changed

app/dependencies.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ async def get_users(db: AsyncSession = Depends(get_db)):
2828
from app.core.users import cruds_users, models_users
2929
from app.core.utils import security
3030
from app.core.utils.config import Settings, construct_prod_settings
31-
from app.modules.raid.utils.drive.drive_file_manager import DriveFileManager
3231
from app.types.exceptions import (
3332
InvalidAppStateTypeError,
3433
PaymentToolCredentialsNotSetException,
@@ -106,8 +105,6 @@ async def init_state(
106105

107106
notification_manager = NotificationManager(settings=settings)
108107

109-
drive_file_manager = DriveFileManager()
110-
111108
payment_tools = init_payment_tools(
112109
settings=settings,
113110
hyperion_error_logger=hyperion_error_logger,
@@ -122,7 +119,6 @@ async def init_state(
122119
scheduler=scheduler,
123120
ws_manager=ws_manager,
124121
notification_manager=notification_manager,
125-
drive_file_manager=drive_file_manager,
126122
payment_tools=payment_tools,
127123
mail_templates=mail_templates,
128124
)
@@ -274,14 +270,6 @@ def get_notification_tool(
274270
)
275271

276272

277-
def get_drive_file_manager() -> DriveFileManager:
278-
"""
279-
Dependency that returns the drive file manager.
280-
"""
281-
282-
return GLOBAL_STATE["drive_file_manager"]
283-
284-
285273
@lru_cache
286274
def get_payment_tool(
287275
name: HelloAssoConfigName,

0 commit comments

Comments
 (0)