This repository has been archived by the owner on May 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #593 from SELab-2/develop
Release 3.0.0
- Loading branch information
Showing
416 changed files
with
18,490 additions
and
7,866 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: pip | ||
directory: "/backend" | ||
open-pull-requests-limit: 100 | ||
schedule: | ||
interval: weekly | ||
- package-ecosystem: npm | ||
directory: "/frontend" | ||
open-pull-requests-limit: 100 | ||
schedule: | ||
interval: weekly |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -160,3 +160,4 @@ cython_debug/ | |
|
||
# Testing SQLite database | ||
*test.db | ||
/fill_my_database.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
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,36 @@ | ||
import asyncio | ||
import traceback | ||
from argparse import ArgumentParser | ||
|
||
import sqlalchemy.exc | ||
from sqlalchemy.ext.asyncio import AsyncSession | ||
|
||
import src.app # Important import - avoids circular import | ||
from src.database.crud import editions | ||
from src.database.crud.webhooks import create_webhook | ||
from src.database.engine import DBSession | ||
from src.database.models import Edition, WebhookURL | ||
from settings import FRONTEND_URL | ||
|
||
|
||
async def do(args): | ||
session: AsyncSession | ||
async with DBSession() as session: | ||
try: | ||
edition: Edition = await editions.get_edition_by_name(session, args.edition) | ||
webhook_url: WebhookURL = await create_webhook(session, edition) | ||
print(f'WebhookURL created: {FRONTEND_URL}/editions/{edition.name}/webhooks/{webhook_url.uuid}') | ||
except sqlalchemy.exc.SQLAlchemyError: | ||
await session.rollback() | ||
print(traceback.format_exc()) | ||
exit(3) | ||
|
||
|
||
if __name__ == '__main__': | ||
parser = ArgumentParser(description="Add new webhook to edition.") | ||
parser.add_argument("-E", "--edition", type=str, required=True) | ||
args = parser.parse_args() | ||
|
||
loop = asyncio.new_event_loop() | ||
loop.run_until_complete(do(args)) | ||
loop.close() |
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
104 changes: 0 additions & 104 deletions
104
backend/migrations/versions/145816a4b2df_add_form_tables.py
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
backend/migrations/versions/43e6e98fe039_create_enum_for_email_statuses.py
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.