-
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.
* fix: Add submissions limits (#140) * fix(submissions): Rate limit students submissions * refactor: Remove files deletion error logs table * fix(submissions): Validate if the laboratory is open * test(submissions): Add test to ensure students can receive real time updates about their submissions * refactor: Create static files repository implementation (#141) * fix: Update SSE controller (#144) * feat: Delete rubric (#147) * fix(db): Add missing on delete cascade statement * feat(rubrics): Delete rubric by UUID * test: Add test to ensure teachers can delete rubrics * fix(tests): Close SSE connections early in testing environment * feat: Get progress of students in laboratory (#149) * fix(submissions): Add missing `where` on `update` clause * feat(db): Create new view to obtain students progress in laboratory * feat(labs): Get students progress * test(labs): Ensure teachers can obtain the progress of the students in their labs * docs: Update documentation (#150) * docs: Update README and md files * docs(openapi): Update spec Fix typos and update response of `/progress` endpoint
- Loading branch information
1 parent
5f7806e
commit 9dc0f8d
Showing
34 changed files
with
643 additions
and
78 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
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 |
---|---|---|
@@ -1,45 +1,45 @@ | ||
## [0.42.1](https://github.com/upb-code-labs/main-api/compare/v0.42.0...v0.42.1) (2024-01-07) | ||
# [0.44.0](https://github.com/upb-code-labs/main-api/compare/v0.43.0...v0.44.0) (2024-01-11) | ||
|
||
|
||
### Bug Fixes | ||
### Features | ||
|
||
* Add submissions limits ([#140](https://github.com/upb-code-labs/main-api/issues/140)) ([b2255a1](https://github.com/upb-code-labs/main-api/commit/b2255a1e68212a788356e57f78504f2e441239f1)) | ||
* Get progress of students in laboratory ([#149](https://github.com/upb-code-labs/main-api/issues/149)) ([893017f](https://github.com/upb-code-labs/main-api/commit/893017f0461f978a33d49469b0a2ead25ceb1409)) | ||
|
||
|
||
|
||
# [0.42.0](https://github.com/upb-code-labs/main-api/compare/v0.41.0...v0.42.0) (2024-01-06) | ||
# [0.43.0](https://github.com/upb-code-labs/main-api/compare/v0.42.2...v0.43.0) (2024-01-10) | ||
|
||
|
||
### Features | ||
|
||
* Real time submission status ([#138](https://github.com/upb-code-labs/main-api/issues/138)) ([4e879f3](https://github.com/upb-code-labs/main-api/commit/4e879f36655914e51ff835e3266b112c5291c24e)) | ||
* Delete rubric ([#147](https://github.com/upb-code-labs/main-api/issues/147)) ([6394ee9](https://github.com/upb-code-labs/main-api/commit/6394ee9deeb2b7e072a65fc2afcabd7dfa000566)) | ||
|
||
|
||
|
||
# [0.41.0](https://github.com/upb-code-labs/main-api/compare/v0.40.1...v0.41.0) (2024-01-03) | ||
## [0.42.2](https://github.com/upb-code-labs/main-api/compare/v0.42.1...v0.42.2) (2024-01-09) | ||
|
||
|
||
### Features | ||
### Bug Fixes | ||
|
||
* Submit archive to test block ([#137](https://github.com/upb-code-labs/main-api/issues/137)) ([b000f9b](https://github.com/upb-code-labs/main-api/commit/b000f9b2ab4d1f4863859525e39366de6d8e33e4)) | ||
* Update SSE controller ([#144](https://github.com/upb-code-labs/main-api/issues/144)) ([cd6091d](https://github.com/upb-code-labs/main-api/commit/cd6091d3b2d78c369f82bd9ad100b74b1b089421)) | ||
|
||
|
||
|
||
## [0.40.1](https://github.com/upb-code-labs/main-api/compare/v0.40.0...v0.40.1) (2024-01-02) | ||
## [0.42.1](https://github.com/upb-code-labs/main-api/compare/v0.42.0...v0.42.1) (2024-01-07) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* Update test block without sending a new test archive ([#135](https://github.com/upb-code-labs/main-api/issues/135)) ([63266f0](https://github.com/upb-code-labs/main-api/commit/63266f07a667844eb0ba7f3263c1bb84678c9ce4)) | ||
* Add submissions limits ([#140](https://github.com/upb-code-labs/main-api/issues/140)) ([b2255a1](https://github.com/upb-code-labs/main-api/commit/b2255a1e68212a788356e57f78504f2e441239f1)) | ||
|
||
|
||
|
||
# [0.40.0](https://github.com/upb-code-labs/main-api/compare/v0.39.0...v0.40.0) (2023-12-30) | ||
# [0.42.0](https://github.com/upb-code-labs/main-api/compare/v0.41.0...v0.42.0) (2024-01-06) | ||
|
||
|
||
### Features | ||
|
||
* Delete test block ([#132](https://github.com/upb-code-labs/main-api/issues/132)) ([3ddaa80](https://github.com/upb-code-labs/main-api/commit/3ddaa80089b3e88404bfa0f92070d5f1e21722de)) | ||
* Real time submission status ([#138](https://github.com/upb-code-labs/main-api/issues/138)) ([4e879f3](https://github.com/upb-code-labs/main-api/commit/4e879f36655914e51ff835e3266b112c5291c24e)) | ||
|
||
|
||
|
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,25 +1,26 @@ | ||
# Main API | ||
# Gateway | ||
|
||
[![Integration](https://github.com/upb-code-labs/main-api/actions/workflows/integration.yaml/badge.svg?branch=dev)](https://github.com/upb-code-labs/main-api/actions/workflows/integration.yaml) | ||
[![Coverage](https://github.com/upb-code-labs/main-api/actions/workflows/coverage.yaml/badge.svg)](https://github.com/upb-code-labs/main-api/actions/workflows/coverage.yaml) | ||
[![Release](https://github.com/upb-code-labs/main-api/actions/workflows/release.yaml/badge.svg)](https://github.com/upb-code-labs/main-api/actions/workflows/release.yaml) | ||
Welcome to the gateway repository. This service is responsible for the following tasks: | ||
|
||
## Development 🧑🏻💻 | ||
- Authentication | ||
- Authorization | ||
- Serve the REST API | ||
- Send SSE updates to the web client | ||
- Proxy requests to the static files micro-service | ||
- Publish messages to the RabbitMQ submissions queue | ||
|
||
### Environment variables | ||
Bellow is a diagram of the overall architecture of the system with the gateway / main api highlighted in green. | ||
|
||
| Name | Description | | ||
| ---------------------- | ------------------------------------------ | | ||
| `DB_CONNECTION_STRING` | Connection string to the postgres database | | ||
| `DB_MIGRATIONS_PATH` | Absolute path to the migrations folder | | ||
![Gateway service highlighted with a green rectangle in the overall architecture diagram](./docs/images/gateway-highlighted.jpg) | ||
|
||
Environment variables have default values, but you can override them by exporting them in your shell. | ||
## Documentation | ||
|
||
```bash | ||
set NAME=VALUE | ||
``` | ||
Please, refer to the following documents for more information about the gateway service: | ||
|
||
## Coverage 🧪 | ||
|
||
| [![Sunburst](https://codecov.io/gh/upb-code-labs/main-api/graphs/sunburst.svg?token=Q9QHF616RS)](https://app.codecov.io/gh/upb-code-labs/main-api) | [![square](https://codecov.io/gh/upb-code-labs/main-api/graphs/tree.svg?token=Q9QHF616RS)](https://app.codecov.io/gh/upb-code-labs/main-api) | | ||
| -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| Document | Description | | ||
| --------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | | ||
| [Contributing](./docs/contributing.md) | Contributing guidelines. | | ||
| [Environment](./docs/environment.md) | A description of the environment variables used by the gateway service. | | ||
| [Bruno Collection](./docs/bruno) | A collection of REST API requests to be used with [Bruno](https://github.com/usebruno/bruno). | | ||
| [Insomnia Collection](./docs/insomnia) | A collection of REST API requests to be used with [Insomnia](https://insomnia.rest/). | | ||
| [OpenAPI Specification](./docs/openapi/spec.openapi.yaml) | A description of the REST API using the [OpenAPI Specification](https://swagger.io/specification/). | |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
meta { | ||
name: get-students-progress | ||
type: http | ||
seq: 5 | ||
} | ||
|
||
get { | ||
url: {{BASE_URL}/laboratoryes/}2e6be1e3-389d-4f37-b9d4-711d8de86fb8/progress | ||
body: none | ||
auth: none | ||
} |
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,11 @@ | ||
meta { | ||
name: delete-rubric | ||
type: http | ||
seq: 11 | ||
} | ||
|
||
delete { | ||
url: {{BASE_URL}}/rubrics/e1d8fefa-e6ce-44de-ab23-66f9bde2ccbb | ||
body: none | ||
auth: none | ||
} |
Oops, something went wrong.