diff --git a/CHANGELOG.md b/CHANGELOG.md index 75a94757..7571619f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,71 +1,74 @@ ============================== - Generated 2023-07-17 22:06:04 + Generated 2023-07-20 21:34:17 ============================== - d53b0a8 56 minutes ago (HEAD -> bodya, origin/bodya) fix script for changelog generation (m-o-d-e-r) - 66cf074 63 minutes ago applied a new format to CHANGELOG.md & created a script for generation changelog (m-o-d-e-r) - e2ac215 79 minutes ago update CHANGELOG.md (delete graph) (m-o-d-e-r) - 2bf8b1c 80 minutes ago update CHANGELOG.md (m-o-d-e-r) - ed0233d 2 hours ago updates scripts (rename some files) (m-o-d-e-r) - 1593c07 25 hours ago added handler for errors related to wrong token & update nginx.conf (m-o-d-e-r) - a73a1e8 26 hours ago read JWT_SECRET & JWT_TTL from configs (m-o-d-e-r) - a76bb99 27 hours ago new JWT processor (m-o-d-e-r) - c071e20 34 hours ago update scripts (m-o-d-e-r) - 51b02d2 2 days ago changed the version of cryptography to 41.0.2 (m-o-d-e-r) - 9def8a4 3 days ago updated scripts (m-o-d-e-r) - 47d461e 3 days ago deleted unhelpful function use_route_names_as_operation_ids (m-o-d-e-r) - e37db88 3 days ago updated __main__.py for each app & created nginx.conf (m-o-d-e-r) - b0d8489 4 days ago updated __main__.py for each app (m-o-d-e-r) - 3abfdd5 5 days ago updated Dockerfile's for all apps (m-o-d-e-r) - bf5ee10 6 days ago fix bug in anon app (m-o-d-e-r) - d11cff4 6 days ago [apps] added new endpoint /meta/get_bookmarks_type & added filter bookmarks_type to /tickets/bookmarked (m-o-d-e-r) - cbe8949 6 days ago start preparation to use microservice architecture (m-o-d-e-r) - 6c6591a 8 days ago added fields 'hidden' and 'anonymous' to detail the ticket view (m-o-d-e-r) - 0744382 9 days ago new endpoint '/comments' (m-o-d-e-r) - a1964eb 10 days ago created '/tickets/undelete' endpoint (m-o-d-e-r) - 276ad27 10 days ago fixed Queue Converter (allowed None values for queue) (m-o-d-e-r) - dc21edb 10 days ago added 'q_not_deleted' filter to /tickets/bookmarked and /tickets/bookmarked endpoints (m-o-d-e-r) - 46fac35 10 days ago renamed field tickets_count to items_count in BurritoPagination schema (m-o-d-e-r) - f563728 11 days ago created endpoint '/meta/get_admins' (m-o-d-e-r) - d3fdc6d 11 days ago added ability to delete several tickets (m-o-d-e-r) - 43bcd9f 12 days ago fixed filter 'q_is_valid_status' using StatusConverter (m-o-d-e-r) - 95556da 12 days ago remove 'become_assignee' ticket (m-o-d-e-r) - 9864f34 13 days ago [apps][admin] added function 'make_ticket-detail_info' to reduce the amount of code (m-o-d-e-r) - 1584e55 2 weeks ago update version label (m-o-d-e-r) - d989272 2 weeks ago added filters to /tickets/bookmarked and /tickets/liked endpoints (m-o-d-e-r) - 89b83d6 2 weeks ago change GET method to POST in (/liked, /bookmarked, /deleted) (m-o-d-e-r) - 890804a 2 weeks ago added BaseFilterSchema & mini fix (m-o-d-e-r) - 56d2f80 2 weeks ago removed old preprocessor (m-o-d-e-r) - 94e3dd0 2 weeks ago created new task for Init (PreProcessorTask) (m-o-d-e-r) - 0c15f17 2 weeks ago mini fix in prometheus.yml (m-o-d-e-r) + e3dfa71 2 days ago (HEAD -> bodya, origin/bodya) added function to get current app name (m-o-d-e-r) + 6684896 2 days ago update nginx config for SSU (m-o-d-e-r) + 1d43ffa 3 days ago update README.md & CHANGELOG.md (m-o-d-e-r) + d53b0a8 3 days ago fix script for changelog generation (m-o-d-e-r) + 66cf074 3 days ago applied a new format to CHANGELOG.md & created a script for generation changelog (m-o-d-e-r) + e2ac215 3 days ago update CHANGELOG.md (delete graph) (m-o-d-e-r) + 2bf8b1c 3 days ago update CHANGELOG.md (m-o-d-e-r) + ed0233d 3 days ago updates scripts (rename some files) (m-o-d-e-r) + 1593c07 4 days ago added handler for errors related to wrong token & update nginx.conf (m-o-d-e-r) + a73a1e8 4 days ago read JWT_SECRET & JWT_TTL from configs (m-o-d-e-r) + a76bb99 4 days ago new JWT processor (m-o-d-e-r) + c071e20 4 days ago update scripts (m-o-d-e-r) + 51b02d2 5 days ago changed the version of cryptography to 41.0.2 (m-o-d-e-r) + 9def8a4 6 days ago updated scripts (m-o-d-e-r) + 47d461e 6 days ago deleted unhelpful function use_route_names_as_operation_ids (m-o-d-e-r) + e37db88 6 days ago updated __main__.py for each app & created nginx.conf (m-o-d-e-r) + b0d8489 7 days ago updated __main__.py for each app (m-o-d-e-r) + 3abfdd5 8 days ago updated Dockerfile's for all apps (m-o-d-e-r) + bf5ee10 9 days ago fix bug in anon app (m-o-d-e-r) + d11cff4 9 days ago [apps] added new endpoint /meta/get_bookmarks_type & added filter bookmarks_type to /tickets/bookmarked (m-o-d-e-r) + cbe8949 9 days ago start preparation to use microservice architecture (m-o-d-e-r) + 6c6591a 11 days ago added fields 'hidden' and 'anonymous' to detail the ticket view (m-o-d-e-r) + 0744382 12 days ago new endpoint '/comments' (m-o-d-e-r) + a1964eb 13 days ago created '/tickets/undelete' endpoint (m-o-d-e-r) + 276ad27 13 days ago fixed Queue Converter (allowed None values for queue) (m-o-d-e-r) + dc21edb 13 days ago added 'q_not_deleted' filter to /tickets/bookmarked and /tickets/bookmarked endpoints (m-o-d-e-r) + 46fac35 13 days ago renamed field tickets_count to items_count in BurritoPagination schema (m-o-d-e-r) + f563728 2 weeks ago created endpoint '/meta/get_admins' (m-o-d-e-r) + d3fdc6d 2 weeks ago added ability to delete several tickets (m-o-d-e-r) + 43bcd9f 2 weeks ago fixed filter 'q_is_valid_status' using StatusConverter (m-o-d-e-r) + 95556da 2 weeks ago remove 'become_assignee' ticket (m-o-d-e-r) + 9864f34 2 weeks ago [apps][admin] added function 'make_ticket-detail_info' to reduce the amount of code (m-o-d-e-r) + 1584e55 3 weeks ago update version label (m-o-d-e-r) + d989272 3 weeks ago added filters to /tickets/bookmarked and /tickets/liked endpoints (m-o-d-e-r) + 89b83d6 3 weeks ago change GET method to POST in (/liked, /bookmarked, /deleted) (m-o-d-e-r) + 890804a 3 weeks ago added BaseFilterSchema & mini fix (m-o-d-e-r) + 56d2f80 3 weeks ago removed old preprocessor (m-o-d-e-r) + 94e3dd0 3 weeks ago created new task for Init (PreProcessorTask) (m-o-d-e-r) + 0c15f17 3 weeks ago mini fix in prometheus.yml (m-o-d-e-r) f8cf7c7 3 weeks ago created folder 'scripts' & updated Makafile (m-o-d-e-r) 0ae186a 3 weeks ago [apps] fix bug in anon app (m-o-d-e-r) - b3517ce 3 weeks ago update version label (m-o-d-e-r) - 13a9458 3 weeks ago renamed field 'author' to 'user' in 'Actions' model (m-o-d-e-r) - 7c631ff 3 weeks ago deleted cache tools (m-o-d-e-r) - ded91d7 3 weeks ago renamed converters (m-o-d-e-r) - 27741e4 3 weeks ago added function for pretty output when an error occurs in the tests (m-o-d-e-r) - 4ff319a 3 weeks ago replaced str values of groups, statuses, and faculties with int-based values (id) (m-o-d-e-r) - 48f3511 3 weeks ago (origin/patch-1, origin/main, patch-1) Merge pull request #78 from DNO-inc/bodya (m-o-d-e-r) - 1e419db 3 weeks ago update README.md & remove environment variables from docker-compose file (m-o-d-e-r) - 0c05bd2 3 weeks ago Update README.md (m-o-d-e-r) - cd7e74f 3 weeks ago Merge pull request #77 from DNO-inc/bodya (m-o-d-e-r) - 5e28865 3 weeks ago created endpoint '/tickets/deleted' (m-o-d-e-r) + b3517ce 4 weeks ago update version label (m-o-d-e-r) + 13a9458 4 weeks ago renamed field 'author' to 'user' in 'Actions' model (m-o-d-e-r) + 7c631ff 4 weeks ago deleted cache tools (m-o-d-e-r) + ded91d7 4 weeks ago renamed converters (m-o-d-e-r) + 27741e4 4 weeks ago added function for pretty output when an error occurs in the tests (m-o-d-e-r) + 4ff319a 4 weeks ago replaced str values of groups, statuses, and faculties with int-based values (id) (m-o-d-e-r) + 48f3511 4 weeks ago (origin/patch-1, origin/main, patch-1) Merge pull request #78 from DNO-inc/bodya (m-o-d-e-r) + 1e419db 4 weeks ago update README.md & remove environment variables from docker-compose file (m-o-d-e-r) + 0c05bd2 4 weeks ago Update README.md (m-o-d-e-r) + cd7e74f 4 weeks ago Merge pull request #77 from DNO-inc/bodya (m-o-d-e-r) + 5e28865 4 weeks ago created endpoint '/tickets/deleted' (m-o-d-e-r) 234fd0d 4 weeks ago change models structure (added BurritoBasicModel) (moder) 4707756 4 weeks ago added ticket history in detail views of tickets (moder) 5ee31ee 4 weeks ago delete 'upvotes' field from Comments model and schema (moder) - 20855cb 4 weeks ago update starlette (0.26.1 -> 0.27.0) (moder) - 9f72d24 4 weeks ago remove grafana_data content from cache (moder) - f6b8958 4 weeks ago updated .gitignore (moder) - ba60a4a 4 weeks ago Merge pull request #76 from DNO-inc/bodya (m-o-d-e-r) - 0ad30fb 4 weeks ago update 'comments' app (moder) - 2c608f6 4 weeks ago Merge pull request #75 from DNO-inc/bodya (m-o-d-e-r) - 2e204a0 4 weeks ago updated 'comments' app (moder) - f988730 4 weeks ago [apps] created 'comments' app (moder) - b891dfd 4 weeks ago created 'init' system & created docker-compose (moder) - 3b560b2 4 weeks ago change version label (moder) - 8388ccc 4 weeks ago try to run this fu**ing f**k in docker compose (moder) + 20855cb 5 weeks ago update starlette (0.26.1 -> 0.27.0) (moder) + 9f72d24 5 weeks ago remove grafana_data content from cache (moder) + f6b8958 5 weeks ago updated .gitignore (moder) + ba60a4a 5 weeks ago Merge pull request #76 from DNO-inc/bodya (m-o-d-e-r) + 0ad30fb 5 weeks ago update 'comments' app (moder) + 2c608f6 5 weeks ago Merge pull request #75 from DNO-inc/bodya (m-o-d-e-r) + 2e204a0 5 weeks ago updated 'comments' app (moder) + f988730 5 weeks ago [apps] created 'comments' app (moder) + b891dfd 5 weeks ago created 'init' system & created docker-compose (moder) + 3b560b2 5 weeks ago change version label (moder) + 8388ccc 5 weeks ago try to run this fu**ing f**k in docker compose (moder) 183a23e 5 weeks ago added config files for pylint and flake8 & some changes in code style (moder) 0c17755 5 weeks ago (tag: v0.5.5-indev) Merge pull request #74 from DNO-inc/create_ticket_queue_by_id (Dmytro) 76baead 5 weeks ago Makefile update (DimonBor) @@ -73,35 +76,35 @@ 0e21b0e 5 weeks ago Schemas update (DimonBor) 70e4e11 5 weeks ago Add queue to ticket detailed response (DimonBor) a7a3192 5 weeks ago Test config update (DimonBor) - daaeb8e 5 weeks ago Merge pull request #73 from DNO-inc/bodya (m-o-d-e-r) - de0d7ee 5 weeks ago added ability to apply few statuses as filter per request & modified filters (moder) - 49fd296 5 weeks ago Merge pull request #72 from DNO-inc/bodya (m-o-d-e-r) - 444227e 5 weeks ago set default pagination rules if body was not provided (moder) - 12d8aa3 5 weeks ago Merge pull request #71 from DNO-inc/bodya (m-o-d-e-r) - 6d3666e 5 weeks ago changed methods from GET to POST in 'liked' & 'bookmarkeed' endpoints (moder) - 5f65c7a 5 weeks ago Merge pull request #70 from DNO-inc/bodya (m-o-d-e-r) - 10244e4 5 weeks ago added pagination to 'liked' and 'bookmarked' endpoints in 'tickets' app (moder) - e385388 5 weeks ago Merge remote-tracking branch 'origin/main' (DimonBor) - 97f5f7a 5 weeks ago total_pages rounding fix (DimonBor) - 7960412 5 weeks ago Merge pull request #69 from DNO-inc/ticket_list_fix (Dmytro) - 0bfef03 5 weeks ago Ternary fix operator (DimonBor) - 34a5f4c 5 weeks ago Merge pull request #68 from DNO-inc/models_update (Dmytro) - 6ed2a3e 5 weeks ago (origin/models_update) Queue scopes implementation (DimonBor) - 7e14cc2 5 weeks ago Pagination hot(girl)fix (DimonBor) - 70d0ab7 5 weeks ago Merge pull request #67 from DNO-inc/pagination_update (Dmytro) - c520aa3 5 weeks ago Pagination update (DimonBor) - 224bcf8 5 weeks ago (tag: v0.5.4-indev, tag: v0.5.3.1-indev) Merge pull request #66 from DNO-inc/bodya (m-o-d-e-r) - 819dc43 5 weeks ago added ability to use pagination (moder) - cbfbf03 5 weeks ago applied new function for selecting tickets by filters (admin app) (moder) - 1cf17da 5 weeks ago return sorted tickets from new to older & remove ability to view tickets with statuses 'NEW' or 'REJECTED' (nott for admins)) (moder) - e7fcb1f 6 weeks ago Merge pull request #65 from DNO-inc/bodya (m-o-d-e-r) - 35e3703 6 weeks ago added new endpoints to 'tickets' app to show liked or bookmarked tickets (moder) - cab5dc8 6 weeks ago (tag: v0.5.3-indev) Merge pull request #64 from DNO-inc/bodya (m-o-d-e-r) - 9aac543 6 weeks ago added 'is_bookmarked' label for 'tickets' and 'admin' apps (moder) - a46ceeb 6 weeks ago Merge pull request #63 from DNO-inc/bodya (m-o-d-e-r) - ac3b1ef 6 weeks ago updated response schemas in 'meta' app (moder) - d71e7ec 6 weeks ago Merge pull request #62 from DNO-inc/bodya (m-o-d-e-r) - 41a0160 6 weeks ago update schemas in 'admin' app (moder) + daaeb8e 6 weeks ago Merge pull request #73 from DNO-inc/bodya (m-o-d-e-r) + de0d7ee 6 weeks ago added ability to apply few statuses as filter per request & modified filters (moder) + 49fd296 6 weeks ago Merge pull request #72 from DNO-inc/bodya (m-o-d-e-r) + 444227e 6 weeks ago set default pagination rules if body was not provided (moder) + 12d8aa3 6 weeks ago Merge pull request #71 from DNO-inc/bodya (m-o-d-e-r) + 6d3666e 6 weeks ago changed methods from GET to POST in 'liked' & 'bookmarkeed' endpoints (moder) + 5f65c7a 6 weeks ago Merge pull request #70 from DNO-inc/bodya (m-o-d-e-r) + 10244e4 6 weeks ago added pagination to 'liked' and 'bookmarked' endpoints in 'tickets' app (moder) + e385388 6 weeks ago Merge remote-tracking branch 'origin/main' (DimonBor) + 97f5f7a 6 weeks ago total_pages rounding fix (DimonBor) + 7960412 6 weeks ago Merge pull request #69 from DNO-inc/ticket_list_fix (Dmytro) + 0bfef03 6 weeks ago Ternary fix operator (DimonBor) + 34a5f4c 6 weeks ago Merge pull request #68 from DNO-inc/models_update (Dmytro) + 6ed2a3e 6 weeks ago (origin/models_update) Queue scopes implementation (DimonBor) + 7e14cc2 6 weeks ago Pagination hot(girl)fix (DimonBor) + 70d0ab7 6 weeks ago Merge pull request #67 from DNO-inc/pagination_update (Dmytro) + c520aa3 6 weeks ago Pagination update (DimonBor) + 224bcf8 6 weeks ago (tag: v0.5.4-indev, tag: v0.5.3.1-indev) Merge pull request #66 from DNO-inc/bodya (m-o-d-e-r) + 819dc43 6 weeks ago added ability to use pagination (moder) + cbfbf03 6 weeks ago applied new function for selecting tickets by filters (admin app) (moder) + 1cf17da 6 weeks ago return sorted tickets from new to older & remove ability to view tickets with statuses 'NEW' or 'REJECTED' (nott for admins)) (moder) + e7fcb1f 7 weeks ago Merge pull request #65 from DNO-inc/bodya (m-o-d-e-r) + 35e3703 7 weeks ago added new endpoints to 'tickets' app to show liked or bookmarked tickets (moder) + cab5dc8 7 weeks ago (tag: v0.5.3-indev) Merge pull request #64 from DNO-inc/bodya (m-o-d-e-r) + 9aac543 7 weeks ago added 'is_bookmarked' label for 'tickets' and 'admin' apps (moder) + a46ceeb 7 weeks ago Merge pull request #63 from DNO-inc/bodya (m-o-d-e-r) + ac3b1ef 7 weeks ago updated response schemas in 'meta' app (moder) + d71e7ec 7 weeks ago Merge pull request #62 from DNO-inc/bodya (m-o-d-e-r) + 41a0160 7 weeks ago update schemas in 'admin' app (moder) da36ef2 7 weeks ago Merge pull request #61 from DNO-inc/bodya (m-o-d-e-r) b217fe5 7 weeks ago fix error with noexistent queue names (moder) a070aaa 7 weeks ago Merge pull request #60 from DNO-inc/bodya (m-o-d-e-r) @@ -141,27 +144,27 @@ d7f100c 7 weeks ago update dependencies (moder) aa89418 7 weeks ago Merge pull request #46 from DNO-inc/mm (m-o-d-e-r) 72dbe6a 7 weeks ago version 0.5.2 & created ModelManager & [apps] update 'meta' app (do request to db via ModelManager) (moder) - da9f016 7 weeks ago (tag: v0.5.1-indev) Merge pull request #45 from DNO-inc/bodya (m-o-d-e-r) - ea78b18 7 weeks ago version 0.5.1 & created 'iofiles' app & updated file_manager (moder) - 4a92397 7 weeks ago try to test file_manager (moder) - 6a77fd3 7 weeks ago Merge pull request #44 from DNO-inc/bodya (m-o-d-e-r) - 3720ef8 7 weeks ago created file_manager & fix bug in registration (moder) - 72edf0e 7 weeks ago Merge pull request #43 from DNO-inc/bodya (m-o-d-e-r) - a7849a3 7 weeks ago update db_utils (added Exception to get_user_by_login function) (moder) - 9b8cc97 7 weeks ago Update docker-publish.yml (Dmytro) - b36ef57 7 weeks ago Merge pull request #42 from DNO-inc/bodya (m-o-d-e-r) - 4da0203 7 weeks ago [docs] update (moder) - f2f16b5 7 weeks ago Merge pull request #41 from DNO-inc/models_update (m-o-d-e-r) - 875f76a 7 weeks ago turn db_preprocessor to old version & afix db_utils (moder) - 573df77 7 weeks ago mini update in permission checker & update type hint in task_manager (moder) - e895641 7 weeks ago remove aioredis from the dependencies (moder) - 5b26ae4 7 weeks ago Update docker-publish.yml (Dmytro) - 75559aa 7 weeks ago Unlike method query fix (DimonBor) - 5ef38b1 7 weeks ago DB schemes update and upvotes implementation (DimonBor) - b5a4529 7 weeks ago CORS middleware (DimonBor) - 1fc55ab 7 weeks ago Merge pull request #40 from DNO-inc/bodya (m-o-d-e-r) - c6cc716 7 weeks ago added ReconnectMixin to database cursor (moder) - aa048d6 7 weeks ago Update bandit.yml (m-o-d-e-r) + da9f016 8 weeks ago (tag: v0.5.1-indev) Merge pull request #45 from DNO-inc/bodya (m-o-d-e-r) + ea78b18 8 weeks ago version 0.5.1 & created 'iofiles' app & updated file_manager (moder) + 4a92397 8 weeks ago try to test file_manager (moder) + 6a77fd3 8 weeks ago Merge pull request #44 from DNO-inc/bodya (m-o-d-e-r) + 3720ef8 8 weeks ago created file_manager & fix bug in registration (moder) + 72edf0e 8 weeks ago Merge pull request #43 from DNO-inc/bodya (m-o-d-e-r) + a7849a3 8 weeks ago update db_utils (added Exception to get_user_by_login function) (moder) + 9b8cc97 8 weeks ago Update docker-publish.yml (Dmytro) + b36ef57 8 weeks ago Merge pull request #42 from DNO-inc/bodya (m-o-d-e-r) + 4da0203 8 weeks ago [docs] update (moder) + f2f16b5 8 weeks ago Merge pull request #41 from DNO-inc/models_update (m-o-d-e-r) + 875f76a 8 weeks ago turn db_preprocessor to old version & afix db_utils (moder) + 573df77 8 weeks ago mini update in permission checker & update type hint in task_manager (moder) + e895641 8 weeks ago remove aioredis from the dependencies (moder) + 5b26ae4 8 weeks ago Update docker-publish.yml (Dmytro) + 75559aa 8 weeks ago Unlike method query fix (DimonBor) + 5ef38b1 8 weeks ago DB schemes update and upvotes implementation (DimonBor) + b5a4529 8 weeks ago CORS middleware (DimonBor) + 1fc55ab 8 weeks ago Merge pull request #40 from DNO-inc/bodya (m-o-d-e-r) + c6cc716 8 weeks ago added ReconnectMixin to database cursor (moder) + aa048d6 8 weeks ago Update bandit.yml (m-o-d-e-r) 7129864 8 weeks ago Merge pull request #39 from DNO-inc/m-o-d-e-r-patch-1 (m-o-d-e-r) 922861e 8 weeks ago Create bandit.yml (m-o-d-e-r) 7ad4c48 8 weeks ago changed hash algorithm (moder) @@ -184,39 +187,39 @@ 176b0ef 8 weeks ago Update docker-publish.yml (Dmytro) ec15b3c 8 weeks ago Merge pull request #32 from DNO-inc/dockerfile_update (Dmytro) d0df0d8 8 weeks ago Added CHANGELOG.md and CONTRIBUTORS.md to docker image (DimonBor) - 22234b3 8 weeks ago (tag: v0.4.0-indev) Merge pull request #31 from DNO-inc/bodya (m-o-d-e-r) - 335af98 8 weeks ago updated permission checker (moder) - 2905aa0 8 weeks ago fix models & added new info to preprocessor_config.json (moder) - ff599b2 8 weeks ago Merge pull request #30 from DNO-inc/bodya (m-o-d-e-r) - 7070f1b 8 weeks ago delete BaseView class (moder) - 0ba3724 8 weeks ago [apps] update views in auth app (moder) - 68d632b 8 weeks ago [apps] update views in registration app (moder) - 5e736f6 8 weeks ago [apps] change class-based views to function-bases in meta app (moder) - a51c02d 8 weeks ago [apps] change class-based views to function-bases in anon app (moder) - 5c18a21 8 weeks ago [apps] change class-based views to function-bases in admin app (moder) - 217f3c8 8 weeks ago [apps] change class-based views to function-bases in about app (moder) - dd1b9c4 8 weeks ago [apps] change class-based views to function-bases in tickets app (moder) - 017934a 8 weeks ago [apps] change class-based views to function-bases in profile app (moder) - 64ac414 8 weeks ago [apps] change class-based views to function-bases in registration app (moder) - c3fe214 8 weeks ago Merge pull request #29 from DNO-inc/bodya (m-o-d-e-r) - c8e2dda 8 weeks ago [apps] admin can become an assignee (moder) - 53e7c44 8 weeks ago deleted component that is responsible for backups (moder) - 62aff4e 8 weeks ago [apps] registration app returns token data & admin is able to change ticket status if he is assignee (moder) - cdf29b6 8 weeks ago Trusted hosts fix (DimonBor) - 620b946 8 weeks ago config_reader logging decrease (DimonBor) - c90318c 8 weeks ago Merge pull request #28 from DNO-inc/uvicorn_tunning (Dmytro) - 699962c 8 weeks ago Uvicorn proxy_headers add (DimonBor) - a5d54e0 8 weeks ago Merge pull request #27 from DNO-inc/docker_adjustment (Dmytro) - 2c115f1 8 weeks ago Disabling server_header for uvicorn (DimonBor) - 2b2c803 8 weeks ago Delete docker-image.yml (Dmytro) - 1bd4294 8 weeks ago Create docker-publish.yml (Dmytro) - 25107a6 8 weeks ago Merge pull request #26 from DNO-inc/CI-setup (Dmytro) - 30fcc7f 8 weeks ago Create docker-image.yml (Dmytro) - b2e069d 8 weeks ago Merge pull request #25 from DNO-inc/mysql_docker (Dmytro) - 5eef9a1 8 weeks ago Update Dockerfile for MySQL (DimonBor) - 3b95ab1 8 weeks ago Merge pull request #24 from DNO-inc/bodya (m-o-d-e-r) - f1e9093 8 weeks ago EnvConfigReader can stop Burrito if one of env variables is not exist (moder) - 82ee345 8 weeks ago Merge pull request #23 from DNO-inc/bodya (m-o-d-e-r) + 22234b3 9 weeks ago (tag: v0.4.0-indev) Merge pull request #31 from DNO-inc/bodya (m-o-d-e-r) + 335af98 9 weeks ago updated permission checker (moder) + 2905aa0 9 weeks ago fix models & added new info to preprocessor_config.json (moder) + ff599b2 9 weeks ago Merge pull request #30 from DNO-inc/bodya (m-o-d-e-r) + 7070f1b 9 weeks ago delete BaseView class (moder) + 0ba3724 9 weeks ago [apps] update views in auth app (moder) + 68d632b 9 weeks ago [apps] update views in registration app (moder) + 5e736f6 9 weeks ago [apps] change class-based views to function-bases in meta app (moder) + a51c02d 9 weeks ago [apps] change class-based views to function-bases in anon app (moder) + 5c18a21 9 weeks ago [apps] change class-based views to function-bases in admin app (moder) + 217f3c8 9 weeks ago [apps] change class-based views to function-bases in about app (moder) + dd1b9c4 9 weeks ago [apps] change class-based views to function-bases in tickets app (moder) + 017934a 9 weeks ago [apps] change class-based views to function-bases in profile app (moder) + 64ac414 9 weeks ago [apps] change class-based views to function-bases in registration app (moder) + c3fe214 9 weeks ago Merge pull request #29 from DNO-inc/bodya (m-o-d-e-r) + c8e2dda 9 weeks ago [apps] admin can become an assignee (moder) + 53e7c44 9 weeks ago deleted component that is responsible for backups (moder) + 62aff4e 9 weeks ago [apps] registration app returns token data & admin is able to change ticket status if he is assignee (moder) + cdf29b6 9 weeks ago Trusted hosts fix (DimonBor) + 620b946 9 weeks ago config_reader logging decrease (DimonBor) + c90318c 9 weeks ago Merge pull request #28 from DNO-inc/uvicorn_tunning (Dmytro) + 699962c 9 weeks ago Uvicorn proxy_headers add (DimonBor) + a5d54e0 9 weeks ago Merge pull request #27 from DNO-inc/docker_adjustment (Dmytro) + 2c115f1 9 weeks ago Disabling server_header for uvicorn (DimonBor) + 2b2c803 9 weeks ago Delete docker-image.yml (Dmytro) + 1bd4294 9 weeks ago Create docker-publish.yml (Dmytro) + 25107a6 9 weeks ago Merge pull request #26 from DNO-inc/CI-setup (Dmytro) + 30fcc7f 9 weeks ago Create docker-image.yml (Dmytro) + b2e069d 9 weeks ago Merge pull request #25 from DNO-inc/mysql_docker (Dmytro) + 5eef9a1 9 weeks ago Update Dockerfile for MySQL (DimonBor) + 3b95ab1 9 weeks ago Merge pull request #24 from DNO-inc/bodya (m-o-d-e-r) + f1e9093 9 weeks ago EnvConfigReader can stop Burrito if one of env variables is not exist (moder) + 82ee345 9 weeks ago Merge pull request #23 from DNO-inc/bodya (m-o-d-e-r) 6f7a5a8 9 weeks ago new function for checking ticket authority (moder) 5766760 9 weeks ago [apps] user can view profile by link & added ability to raise error in Burrito's core functions (moder) d7fa2b1 9 weeks ago update tests (moder) @@ -234,46 +237,46 @@ 8da2f08 9 weeks ago Merge pull request #20 from DNO-inc/bodya (m-o-d-e-r) 8742d24 9 weeks ago [docs] update Burrito docs (moder) 1d983df 9 weeks ago created registration schemas & some fix in tests & added TTL cache for 'about' app (moder) - c553f10 9 weeks ago Merge pull request #19 from DNO-inc/bodya (m-o-d-e-r) - 15f4504 9 weeks ago [apps] fix anon app (fix filters) (moder) - b480cb2 9 weeks ago [apps] created app anon (for unregistred users) & version 0.3.3 (moder) - 0d817e5 9 weeks ago [apps] update filter in tickets app (moder) - 7cd98a9 9 weeks ago update docs & replace some field types in model (peewee) (moder) - 98eebfc 9 weeks ago Merge pull request #18 from DNO-inc/bodya (m-o-d-e-r) - 25371f6 9 weeks ago start of using MySQL driver (moder) - b9cbc73 10 weeks ago Merge pull request #17 from DNO-inc/docker_update (Dmytro) - 2a52032 10 weeks ago Corrected wrong copy path (DimonBor) - 5cfac8e 10 weeks ago Merge pull request #16 from DNO-inc/docker_era (Dmytro) - 36dde3a 10 weeks ago Dcokerfile created (DimonBor) - e2f37de 10 weeks ago Merge pull request #15 from DNO-inc/bodya (m-o-d-e-r) - 6c63208 10 weeks ago [apps] update about, tickets, profile apps & new version 0.3.1 indev (moder) - 5532ddc 10 weeks ago [apps] create admin app (need many fixes) & Burrito version 0.2.0 indev (moder) - 7c39383 10 weeks ago update version in pyproject.toml (moder) - 2b21997 10 weeks ago [apps] created about app (moder) - 25a8e06 10 weeks ago [docs] update docs (moder) - 813ce98 10 weeks ago Merge pull request #14 from DNO-inc/bodya (m-o-d-e-r) - ada7651 10 weeks ago [apps] update tickets app & added aiblity to view tickets by filter (moder) + c553f10 10 weeks ago Merge pull request #19 from DNO-inc/bodya (m-o-d-e-r) + 15f4504 10 weeks ago [apps] fix anon app (fix filters) (moder) + b480cb2 10 weeks ago [apps] created app anon (for unregistred users) & version 0.3.3 (moder) + 0d817e5 10 weeks ago [apps] update filter in tickets app (moder) + 7cd98a9 10 weeks ago update docs & replace some field types in model (peewee) (moder) + 98eebfc 10 weeks ago Merge pull request #18 from DNO-inc/bodya (m-o-d-e-r) + 25371f6 10 weeks ago start of using MySQL driver (moder) + b9cbc73 2 months ago Merge pull request #17 from DNO-inc/docker_update (Dmytro) + 2a52032 2 months ago Corrected wrong copy path (DimonBor) + 5cfac8e 2 months ago Merge pull request #16 from DNO-inc/docker_era (Dmytro) + 36dde3a 2 months ago Dcokerfile created (DimonBor) + e2f37de 2 months ago Merge pull request #15 from DNO-inc/bodya (m-o-d-e-r) + 6c63208 2 months ago [apps] update about, tickets, profile apps & new version 0.3.1 indev (moder) + 5532ddc 2 months ago [apps] create admin app (need many fixes) & Burrito version 0.2.0 indev (moder) + 7c39383 2 months ago update version in pyproject.toml (moder) + 2b21997 2 months ago [apps] created about app (moder) + 25a8e06 2 months ago [docs] update docs (moder) + 813ce98 2 months ago Merge pull request #14 from DNO-inc/bodya (m-o-d-e-r) + ada7651 2 months ago [apps] update tickets app & added aiblity to view tickets by filter (moder) d0d41fe 2 months ago [apps] add ability to edit own tickets (moder) efb5b54 2 months ago [apps] update tickets app & check permissions to delete ticket (moder) b08f786 2 months ago [apps] add ability to detele own tickets (moder) 3542963 2 months ago [apps] update tickets app & added ability to create tickets (moder) 7b8f811 2 months ago update DB preprocessor (moder) - bccd603 2 months ago [models] fix bug in models (moder) - 3f52931 2 months ago [models] create new models && aply new schemas (moder) - d99a1c0 2 months ago [apps] update profile app (decode group/faculty ID to group/faculty name) (moder) - 73004c9 2 months ago update Makefile (moder) - 2bc3c2f 2 months ago create Makefile (moder) - e821303 2 months ago [apps] update tickets app (create new views) (moder) - ab9b3a1 2 months ago [models] create models for the tickets app (moder) - 161b6b9 2 months ago [docs] update docs (moder) - 80c3b39 2 months ago [apps] apply new concept to the registration app (moder) - a1f811e 2 months ago Merge pull request #13 from DNO-inc/bodya (m-o-d-e-r) - 7818f7f 2 months ago [apps] create decorator for checking user permissions (moder) - b15efa1 2 months ago [apps] update profile app (allow check profile for unauthorized users) (moder) - 5056f13 2 months ago delete unused components (moder) - f175721 2 months ago [apps] update token's subject data (moder) - 4589cd2 2 months ago [apps] test class-based-views in profile app (moder) - b8989ba 2 months ago Merge pull request #12 from DNO-inc/bodya (m-o-d-e-r) + bccd603 3 months ago [models] fix bug in models (moder) + 3f52931 3 months ago [models] create new models && aply new schemas (moder) + d99a1c0 3 months ago [apps] update profile app (decode group/faculty ID to group/faculty name) (moder) + 73004c9 3 months ago update Makefile (moder) + 2bc3c2f 3 months ago create Makefile (moder) + e821303 3 months ago [apps] update tickets app (create new views) (moder) + ab9b3a1 3 months ago [models] create models for the tickets app (moder) + 161b6b9 3 months ago [docs] update docs (moder) + 80c3b39 3 months ago [apps] apply new concept to the registration app (moder) + a1f811e 3 months ago Merge pull request #13 from DNO-inc/bodya (m-o-d-e-r) + 7818f7f 3 months ago [apps] create decorator for checking user permissions (moder) + b15efa1 3 months ago [apps] update profile app (allow check profile for unauthorized users) (moder) + 5056f13 3 months ago delete unused components (moder) + f175721 3 months ago [apps] update token's subject data (moder) + 4589cd2 3 months ago [apps] test class-based-views in profile app (moder) + b8989ba 3 months ago Merge pull request #12 from DNO-inc/bodya (m-o-d-e-r) 027e407 3 months ago [apps] add __init__.py to auth, profile, registration apps (moder) a7844a6 3 months ago [apps] update auth, profile, registration apps (moder) fc0a84a 3 months ago [apps] update profile app (moder) @@ -291,8 +294,8 @@ c190772 3 months ago update models (moder) 8b5eb17 3 months ago format some code to PEP8 (moder) 6c70862 3 months ago mini fix (moder) - b014b06 3 months ago update PubSub main cycle (moder) - 11209c8 3 months ago create pubsub manager & update registration app & create validators (moder) + b014b06 4 months ago update PubSub main cycle (moder) + 11209c8 4 months ago create pubsub manager & update registration app & create validators (moder) 399ab59 4 months ago Merge pull request #9 from DNO-inc/bodya (m-o-d-e-r) 336398e 4 months ago [docs] update in task_mamager.py (moder) f12c599 4 months ago Merge pull request #8 from DNO-inc/bodya (m-o-d-e-r) diff --git a/burrito/apps/about/__main__.py b/burrito/apps/about/__main__.py index dad45461..9920ab86 100644 --- a/burrito/apps/about/__main__.py +++ b/burrito/apps/about/__main__.py @@ -1,9 +1,7 @@ import uvicorn -from random import randint -from fastapi.routing import APIRoute from burrito.utils.config_reader import get_config -from burrito.containers import prepare_app +from burrito.containers import prepare_app, get_current_app_name from burrito.utils.app_util import get_current_app, connect_app @@ -12,14 +10,15 @@ else: print("App preparation failed") +_APP_NAME = get_current_app_name() -app = get_current_app(docs_url="/about/docs", openapi_url="/about/openapi.json") -connect_app(app, "/about", about_router) +app = get_current_app(docs_url=f"/{_APP_NAME}/docs", openapi_url=f"/{_APP_NAME}/openapi.json") +connect_app(app, f"/{_APP_NAME}", about_router) if __name__ == "__main__": uvicorn.run( - "burrito.apps.about.__main__:app", + f"burrito.apps.{_APP_NAME}.__main__:app", host="0.0.0.0", port=int(get_config().BURRITO_PORT_ABOUT), proxy_headers=bool(get_config().BURRITO_PROXY_HEADERS) diff --git a/burrito/apps/admin/__main__.py b/burrito/apps/admin/__main__.py index be60fdc5..9a0a1f01 100644 --- a/burrito/apps/admin/__main__.py +++ b/burrito/apps/admin/__main__.py @@ -1,9 +1,7 @@ import uvicorn -from random import randint -from fastapi.routing import APIRoute from burrito.utils.config_reader import get_config -from burrito.containers import prepare_app +from burrito.containers import prepare_app, get_current_app_name from burrito.utils.app_util import get_current_app, connect_app @@ -12,14 +10,15 @@ else: print("App preparation failed") +_APP_NAME = get_current_app_name() -app = get_current_app(docs_url="/admin/docs", openapi_url="/admin/openapi.json") -connect_app(app, "/admin", admin_router) +app = get_current_app(docs_url=f"/{_APP_NAME}/docs", openapi_url=f"/{_APP_NAME}/openapi.json") +connect_app(app, f"/{_APP_NAME}", admin_router) if __name__ == "__main__": uvicorn.run( - "burrito.apps.admin.__main__:app", + f"burrito.apps.{_APP_NAME}.__main__:app", host="0.0.0.0", port=int(get_config().BURRITO_PORT_ADMIN), proxy_headers=bool(get_config().BURRITO_PROXY_HEADERS) diff --git a/burrito/apps/anon/__main__.py b/burrito/apps/anon/__main__.py index c26f718a..9a1cbd2a 100644 --- a/burrito/apps/anon/__main__.py +++ b/burrito/apps/anon/__main__.py @@ -1,9 +1,7 @@ import uvicorn -from random import randint -from fastapi.routing import APIRoute from burrito.utils.config_reader import get_config -from burrito.containers import prepare_app +from burrito.containers import prepare_app, get_current_app_name from burrito.utils.app_util import get_current_app, connect_app @@ -12,14 +10,15 @@ else: print("App preparation failed") +_APP_NAME = get_current_app_name() -app = get_current_app(docs_url="/anon/docs", openapi_url="/anon/openapi.json") -connect_app(app, "/anon", anon_router) +app = get_current_app(docs_url=f"/{_APP_NAME}/docs", openapi_url=f"/{_APP_NAME}/openapi.json") +connect_app(app, f"/{_APP_NAME}", anon_router) if __name__ == "__main__": uvicorn.run( - "burrito.apps.anon.__main__:app", + f"burrito.apps.{_APP_NAME}.__main__:app", host="0.0.0.0", port=int(get_config().BURRITO_PORT_ANON), proxy_headers=bool(get_config().BURRITO_PROXY_HEADERS) diff --git a/burrito/apps/auth/__main__.py b/burrito/apps/auth/__main__.py index e42275af..d1384e4d 100644 --- a/burrito/apps/auth/__main__.py +++ b/burrito/apps/auth/__main__.py @@ -1,9 +1,7 @@ import uvicorn -from random import randint -from fastapi.routing import APIRoute from burrito.utils.config_reader import get_config -from burrito.containers import prepare_app +from burrito.containers import prepare_app, get_current_app_name from burrito.utils.app_util import get_current_app, connect_app @@ -12,14 +10,15 @@ else: print("App preparation failed") +_APP_NAME = get_current_app_name() -app = get_current_app(docs_url="/auth/docs", openapi_url="/auth/openapi.json") -connect_app(app, "/auth", auth_router) +app = get_current_app(docs_url=f"/{_APP_NAME}/docs", openapi_url=f"/{_APP_NAME}/openapi.json") +connect_app(app, f"/{_APP_NAME}", auth_router) if __name__ == "__main__": uvicorn.run( - "burrito.apps.auth.__main__:app", + f"burrito.apps.{_APP_NAME}.__main__:app", host="0.0.0.0", port=int(get_config().BURRITO_PORT_AUTH), proxy_headers=bool(get_config().BURRITO_PROXY_HEADERS) diff --git a/burrito/apps/comments/__main__.py b/burrito/apps/comments/__main__.py index 23fee49d..3a0c00cc 100644 --- a/burrito/apps/comments/__main__.py +++ b/burrito/apps/comments/__main__.py @@ -1,9 +1,7 @@ import uvicorn -from random import randint -from fastapi.routing import APIRoute from burrito.utils.config_reader import get_config -from burrito.containers import prepare_app +from burrito.containers import prepare_app, get_current_app_name from burrito.utils.app_util import get_current_app, connect_app @@ -12,14 +10,15 @@ else: print("App preparation failed") +_APP_NAME = get_current_app_name() -app = get_current_app(docs_url="/comments/docs", openapi_url="/comments/openapi.json") -connect_app(app, "/comments", comments_router) +app = get_current_app(docs_url=f"/{_APP_NAME}/docs", openapi_url=f"/{_APP_NAME}/openapi.json") +connect_app(app, f"/{_APP_NAME}", comments_router) if __name__ == "__main__": uvicorn.run( - "burrito.apps.comments.__main__:app", + f"burrito.apps.{_APP_NAME}.__main__:app", host="0.0.0.0", port=int(get_config().BURRITO_PORT_COMMENTS), proxy_headers=bool(get_config().BURRITO_PROXY_HEADERS) diff --git a/burrito/apps/iofiles/__main__.py b/burrito/apps/iofiles/__main__.py index 665758b1..94a3f1ea 100644 --- a/burrito/apps/iofiles/__main__.py +++ b/burrito/apps/iofiles/__main__.py @@ -1,9 +1,7 @@ import uvicorn -from random import randint -from fastapi.routing import APIRoute from burrito.utils.config_reader import get_config -from burrito.containers import prepare_app +from burrito.containers import prepare_app, get_current_app_name from burrito.utils.app_util import get_current_app, connect_app @@ -12,14 +10,15 @@ else: print("App preparation failed") +_APP_NAME = get_current_app_name() -app = get_current_app(docs_url="/iofiles/docs", openapi_url="/iofiles/openapi.json") -connect_app(app, "/iofiles", iofiles_router) +app = get_current_app(docs_url=f"/{_APP_NAME}/docs", openapi_url=f"/{_APP_NAME}/openapi.json") +connect_app(app, f"/{_APP_NAME}", iofiles_router) if __name__ == "__main__": uvicorn.run( - "burrito.apps.iofiles.__main__:app", + f"burrito.apps.{_APP_NAME}.__main__:app", host="0.0.0.0", port=int(get_config().BURRITO_PORT_IOFILES), proxy_headers=bool(get_config().BURRITO_PROXY_HEADERS) diff --git a/burrito/apps/meta/__main__.py b/burrito/apps/meta/__main__.py index d841f5b3..9721448d 100644 --- a/burrito/apps/meta/__main__.py +++ b/burrito/apps/meta/__main__.py @@ -1,9 +1,7 @@ import uvicorn -from random import randint -from fastapi.routing import APIRoute from burrito.utils.config_reader import get_config -from burrito.containers import prepare_app +from burrito.containers import prepare_app, get_current_app_name from burrito.utils.app_util import get_current_app, connect_app @@ -12,14 +10,15 @@ else: print("App preparation failed") +_APP_NAME = get_current_app_name() -app = get_current_app(docs_url="/meta/docs", openapi_url="/meta/openapi.json") -connect_app(app, "/meta", meta_router) +app = get_current_app(docs_url=f"/{_APP_NAME}/docs", openapi_url=f"/{_APP_NAME}/openapi.json") +connect_app(app, f"/{_APP_NAME}", meta_router) if __name__ == "__main__": uvicorn.run( - "burrito.apps.meta.__main__:app", + f"burrito.apps.{_APP_NAME}.__main__:app", host="0.0.0.0", port=int(get_config().BURRITO_PORT_META), proxy_headers=bool(get_config().BURRITO_PROXY_HEADERS) diff --git a/burrito/apps/profile/__main__.py b/burrito/apps/profile/__main__.py index d070fe41..7cc2b6bf 100644 --- a/burrito/apps/profile/__main__.py +++ b/burrito/apps/profile/__main__.py @@ -1,9 +1,7 @@ import uvicorn -from random import randint -from fastapi.routing import APIRoute from burrito.utils.config_reader import get_config -from burrito.containers import prepare_app +from burrito.containers import prepare_app, get_current_app_name from burrito.utils.app_util import get_current_app, connect_app @@ -12,14 +10,15 @@ else: print("App preparation failed") +_APP_NAME = get_current_app_name() -app = get_current_app(docs_url="/profile/docs", openapi_url="/profile/openapi.json") -connect_app(app, "/profile", profile_router) +app = get_current_app(docs_url=f"/{_APP_NAME}/docs", openapi_url=f"/{_APP_NAME}/openapi.json") +connect_app(app, f"/{_APP_NAME}", profile_router) if __name__ == "__main__": uvicorn.run( - "burrito.apps.profile.__main__:app", + f"burrito.apps.{_APP_NAME}.__main__:app", host="0.0.0.0", port=int(get_config().BURRITO_PORT_PROFILE), proxy_headers=bool(get_config().BURRITO_PROXY_HEADERS) diff --git a/burrito/apps/registration/__main__.py b/burrito/apps/registration/__main__.py index 5ab32242..25618292 100644 --- a/burrito/apps/registration/__main__.py +++ b/burrito/apps/registration/__main__.py @@ -1,9 +1,7 @@ import uvicorn -from random import randint -from fastapi.routing import APIRoute from burrito.utils.config_reader import get_config -from burrito.containers import prepare_app +from burrito.containers import prepare_app, get_current_app_name from burrito.utils.app_util import get_current_app, connect_app @@ -12,14 +10,15 @@ else: print("App preparation failed") +_APP_NAME = get_current_app_name() -app = get_current_app(docs_url="/registration/docs", openapi_url="/registration/openapi.json") -connect_app(app, "/registration", registration_router) +app = get_current_app(docs_url=f"/{_APP_NAME}/docs", openapi_url=f"/{_APP_NAME}/openapi.json") +connect_app(app, f"/{_APP_NAME}", registration_router) if __name__ == "__main__": uvicorn.run( - "burrito.apps.registration.__main__:app", + f"burrito.apps.{_APP_NAME}.__main__:app", host="0.0.0.0", port=int(get_config().BURRITO_PORT_REGISTRATION), proxy_headers=bool(get_config().BURRITO_PROXY_HEADERS) diff --git a/burrito/apps/tickets/__main__.py b/burrito/apps/tickets/__main__.py index 9c47a3c8..28f19104 100644 --- a/burrito/apps/tickets/__main__.py +++ b/burrito/apps/tickets/__main__.py @@ -1,9 +1,7 @@ import uvicorn -from random import randint -from fastapi.routing import APIRoute from burrito.utils.config_reader import get_config -from burrito.containers import prepare_app +from burrito.containers import prepare_app, get_current_app_name from burrito.utils.app_util import get_current_app, connect_app @@ -12,14 +10,15 @@ else: print("App preparation failed") +_APP_NAME = get_current_app_name() -app = get_current_app(docs_url="/tickets/docs", openapi_url="/tickets/openapi.json") -connect_app(app, "/tickets", tickets_router) +app = get_current_app(docs_url=f"/{_APP_NAME}/docs", openapi_url=f"/{_APP_NAME}/openapi.json") +connect_app(app, f"/{_APP_NAME}", tickets_router) if __name__ == "__main__": uvicorn.run( - "burrito.apps.tickets.__main__:app", + f"burrito.apps.{_APP_NAME}.__main__:app", host="0.0.0.0", port=int(get_config().BURRITO_PORT_TICKETS), proxy_headers=bool(get_config().BURRITO_PROXY_HEADERS) diff --git a/burrito/containers.py b/burrito/containers.py index 416dedc1..053cb9a8 100644 --- a/burrito/containers.py +++ b/burrito/containers.py @@ -1,4 +1,5 @@ -import uvicorn +from pathlib import Path +import inspect from burrito.utils.config_reader import get_config @@ -7,6 +8,10 @@ from burrito.init.tasks.preprocessor_task import PreProcessorTask +def get_current_app_name() -> str: + return Path(inspect.getouterframes(inspect.currentframe(), 2)[1][1]).parent.name + + def prepare_app(): get_config() # read configs diff --git a/burrito/utils/auth.py b/burrito/utils/auth.py index 6f03d41a..c34845a6 100644 --- a/burrito/utils/auth.py +++ b/burrito/utils/auth.py @@ -95,7 +95,7 @@ async def verify_access_token(self) -> AuthTokenPayload: return token_payload raise AuthTokenError( - detail="Authorization token is invalid or expired", + detail="Something went wrong", status_code=status.HTTP_401_UNAUTHORIZED ) @@ -113,7 +113,7 @@ async def verify_refresh_token(self) -> AuthTokenPayload: return token_payload raise AuthTokenError( - detail="Authorization token is invalid or expired", + detail="Something went wrong", status_code=status.HTTP_401_UNAUTHORIZED ) diff --git a/burrito/utils/redis_utils.py b/burrito/utils/redis_utils.py index cc2c0352..c5101ee8 100644 --- a/burrito/utils/redis_utils.py +++ b/burrito/utils/redis_utils.py @@ -1,7 +1,9 @@ import redis +from fastapi import HTTPException from burrito.utils.singleton_pattern import singleton from burrito.utils.config_reader import get_config +from burrito.utils.logger import get_logger @singleton @@ -11,7 +13,18 @@ def __init__(self, *, host: str, port: int, password: str | None = None, **kwarg def get_redis_connector() -> RedisConnector: - return RedisConnector( + _redis_object = RedisConnector( host=get_config().BURRITO_REDIS_HOST, port=int(get_config().BURRITO_REDIS_PORT) ) + + try: + _redis_object.ping() + except (redis.exceptions.ConnectionError, ConnectionRefusedError) as exc: + get_logger().critical("Redis server is unavailable") + raise HTTPException( + status_code=500, + detail="Some of the services is unavailable, please try late" + ) from exc + + return _redis_object diff --git a/nginx.conf b/nginx.conf index b8335731..d4877ccb 100644 --- a/nginx.conf +++ b/nginx.conf @@ -18,6 +18,15 @@ http { listen 8080; + # For SSU cabinet server + location / { + proxy_pass http://burrito_meta:10006/meta/; + + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } + location /about/ { proxy_pass http://burrito_about:10000/about/;