-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into robin/update-role-model
- Loading branch information
Showing
30 changed files
with
1,190 additions
and
175 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
78 changes: 78 additions & 0 deletions
78
backend/samfundet/migrations/0004_campus_total_students_and_more.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
# Generated by Django 5.1.1 on 2024-09-24 17:14 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("samfundet", "0003_remove_gang_event_admin_group_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="campus", | ||
name="total_students", | ||
field=models.PositiveIntegerField( | ||
default=1, verbose_name="Total students enrolled" | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="recruitmentcampusstat", | ||
name="applicant_percentage", | ||
field=models.PositiveIntegerField( | ||
blank=True, | ||
default=0, | ||
null=True, | ||
verbose_name="Percentages of enrolled students applied for campus", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="recruitmentgangstat", | ||
name="average_priority", | ||
field=models.FloatField( | ||
blank=True, null=True, verbose_name="Average priority" | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="recruitmentgangstat", | ||
name="total_accepted", | ||
field=models.PositiveIntegerField( | ||
blank=True, null=True, verbose_name="Total accepted" | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="recruitmentgangstat", | ||
name="total_rejected", | ||
field=models.PositiveIntegerField( | ||
blank=True, null=True, verbose_name="Total called and rejected" | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="recruitmentstatistics", | ||
name="average_applications_per_applicant", | ||
field=models.FloatField( | ||
blank=True, null=True, verbose_name="Gang diversity" | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="recruitmentstatistics", | ||
name="average_gangs_applied_to_per_applicant", | ||
field=models.FloatField( | ||
blank=True, null=True, verbose_name="Gang diversity" | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="recruitmentstatistics", | ||
name="total_accepted", | ||
field=models.PositiveIntegerField( | ||
blank=True, null=True, verbose_name="Total accepted applicants" | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="recruitmentstatistics", | ||
name="total_withdrawn", | ||
field=models.PositiveIntegerField( | ||
blank=True, null=True, verbose_name="Total Withdrawn applications" | ||
), | ||
), | ||
] |
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 |
---|---|---|
@@ -1,17 +1,89 @@ | ||
# Pipelines | ||
|
||
Is your PR not passing the pipeline checks? Look no further. | ||
Below you will find a collection of commands thats run by the pipeline and will allow you to check and fix issues locally. | ||
At the bottom of each section is a link to a comprehensive collection of all commands, should you discover a missing command you find it there. (In that case please add the command to this doc) | ||
|
||
## Frontend | ||
|
||
_No docs yet_ | ||
_Install yarn_ | ||
|
||
``` | ||
yarn install | ||
``` | ||
|
||
_Run Biome_ | ||
|
||
``` | ||
yarn run biome:ci | ||
``` | ||
|
||
_fix biome_ | ||
|
||
``` | ||
yarn run biome:fix | ||
``` | ||
|
||
_Run Stylelint_ | ||
|
||
``` | ||
yarn run stylelint:check | ||
``` | ||
|
||
_Run typescript compiler check_ | ||
|
||
``` | ||
yarn run tsc:check | ||
``` | ||
|
||
Didnt find what you were looking for? See all backend commands [here](../../frontend/package.json) | ||
|
||
## Backend | ||
|
||
_No docs yet_ | ||
``` | ||
poetry install | ||
``` | ||
|
||
_Run Ruff_ | ||
|
||
``` | ||
poetry run ruff check | ||
``` | ||
|
||
_Run Ruff fix_ | ||
|
||
``` | ||
poetry run ruff check --fix | ||
``` | ||
|
||
_Verify migrations_ | ||
|
||
``` | ||
poetry run python manage.py makemigrations --check --dry-run --noinput --verbosity 2 | ||
``` | ||
|
||
_Apply migrations_ | ||
|
||
``` | ||
poetry run python manage.py migrate | ||
``` | ||
|
||
_Run (Py)tests_ | ||
|
||
``` | ||
poetry run pytest | ||
``` | ||
|
||
_Run mypy_ | ||
|
||
### Yapf | ||
``` | ||
poetry run mypy --config-file mypy.ini . | ||
``` | ||
|
||
Python formatter | ||
_Run seed_ | ||
|
||
### mypy | ||
``` | ||
poetry run python manage.py seed | ||
``` | ||
|
||
Static typing | ||
Didnt find what you were looking for? See all frontend commands [here](../../backend/aliases.sh) |
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
Oops, something went wrong.