From 2f12af12799dadf0046659af9ffb2af7c46b921b Mon Sep 17 00:00:00 2001 From: Ashish Sam T George <77051732+getwithashish@users.noreply.github.com> Date: Fri, 19 Apr 2024 14:10:41 +0530 Subject: [PATCH] build: Create CI/CD pipeline (#238) * build: Build CI/CD pipeline using github actions (#228) * fix: Only show assets which are not deleted * fix: Fix Pagination bug * build: Dockerize backend and frontend services * build: Add production deployment script * chore: Remove environment files from git tracking * Feat charts (#230) * feat:charts * feat: Add new chart to view individual asset type count * fix: changed namings * feat: Add test to backend assetype and assetview * feat: added new chart * feat: Add new chart cards for improved dashboard user experience * Add bar chart component which feature individual asset count and card components that show various data for enhanced ux experience * fix: fixes to some code lines * fix: Fix dashboard ui padding and margin * fixes * fix: AssetView fix * fix: ui * fix: code structure * feat: new ui design for charts * feat:making chart responsive * fix charts * feat-charts * feat-charts * Feat charts (#231) * feat:charts * feat: Add new chart to view individual asset type count * fix: changed namings * feat: Add test to backend assetype and assetview * feat: added new chart * feat: Add new chart cards for improved dashboard user experience * Add bar chart component which feature individual asset count and card components that show various data for enhanced ux experience * fix: fixes to some code lines * fix: Fix dashboard ui padding and margin * fixes * fix: AssetView fix * fix: ui * fix: code structure * feat: new ui design for charts * feat:making chart responsive * fix charts * feat-charts * feat-charts * revert: reverted back to old files due to crashing * fix * Feat charts (#233) * feat:charts * feat: Add new chart to view individual asset type count * fix: changed namings * feat: Add test to backend assetype and assetview * feat: added new chart * feat: Add new chart cards for improved dashboard user experience * Add bar chart component which feature individual asset count and card components that show various data for enhanced ux experience * fix: fixes to some code lines * fix: Fix dashboard ui padding and margin * fixes * fix: AssetView fix * fix: ui * fix: code structure * feat: new ui design for charts * feat:making chart responsive * fix charts * feat-charts * feat-charts * revert: reverted back to old files due to crashing * fix * fix: responsiveness of dashboard * feat:Add new UI display to charts when no data is found * feat: Create API for getting unique values of different fields in the asset table (#234) * fix: Only show assets which are not deleted * fix: Fix Pagination bug * build: Dockerize backend and frontend services * feat: Create API for getting unique values of different fields in asset table * fix: Change sidebar tooltip message (#235) * fix: Only show assets which are not deleted * fix: Fix Pagination bug * build: Dockerize backend and frontend services * fix: Change tooltip message in download menu item in sidebar * build: Create CI/CD pipeline (#237) * fix: Only show assets which are not deleted * fix: Fix Pagination bug * build: Dockerize backend and frontend services * build: Add production deployment script * chore: Remove environment files from git tracking * build: Add CORS settings to .env files --------- Co-authored-by: Aidrin Varghese --- exam_django/exam_django/settings.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/exam_django/exam_django/settings.py b/exam_django/exam_django/settings.py index 553f2b5a5..1bd4f2ff1 100644 --- a/exam_django/exam_django/settings.py +++ b/exam_django/exam_django/settings.py @@ -59,11 +59,15 @@ def get_env_config() -> decouple.Config: ) -CORS_ORIGIN_WHITELIST = ["http://localhost:5173"] +CORS_ORIGIN_WHITELIST = config( + "CORS_ORIGIN_WHITELIST", cast=lambda v: [item.strip() for item in v.split(",")] +) CORS_ALLOW_CREDENTIALS = True -CORS_ALLOWED_ORIGINS = ["http://localhost:5173"] +CORS_ALLOWED_ORIGINS = config( + "CORS_ALLOWED_ORIGINS", cast=lambda v: [item.strip() for item in v.split(",")] +) # CORS_ALLOW_HEADERS: List[str] = ( # list(default_headers) + ["Content-Type"] + get_all_cors_headers()