Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added SRE meeting types to db and graph #264

Merged
merged 3 commits into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ Alla märkbara ändringar ska dokumenteras i denna fil.
Baserat på [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
och följer [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.5.0] - 2023-08-31

### Tillagt
- SRE-möten grundnivå, avancerad nivå och intern tillagt som mötestyper i prisma schemat och `meeting.graphql`

### Ändrat
- Extrainsatt sektionsmöte tilldelas namnet "Extra YYYY" istället för "ExtraNN" i meeting reducer.
- Skrev om `prisma:reset` så att det fungerar på Windows också.
- Korrigerat språkfel i `election.api.ts`
- Omskrivit namntilldelningslogiken i `meeting.reducer.ts` så att fler mötestyper kan läggas till utan framtida ändring i reducern.

### Borttaget
- Testen `forget a user` och `reset password properly` i `user.api.ts`.

## [1.4.0] - 2023-07-27

### Tillagt
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ekorre-ts",
"version": "1.4.0",
"version": "1.5.0",
"description": "E-Sektionens backend",
"main": "src/index.ts",
"scripts": {
Expand All @@ -18,7 +18,7 @@
"test:regression": "jest test/regression --coverage=false",
"benchmark": "ts-node tools/benchmark/index.ts",
"prisma:ci": "prisma generate && prisma db push --accept-data-loss && prisma db seed",
"prisma:reset": "prisma migrate reset; prisma db push; prisma db seed",
"prisma:reset": "prisma migrate reset && prisma db push && prisma db seed",
"prisma:generate": "prisma generate",
"prisma:push": "prisma db push",
"prisma:migrate": "prisma migrate dev",
Expand All @@ -30,7 +30,8 @@
"Emil Eriksson <[email protected]>",
"Axel Froborg <[email protected]>",
"Marcus Lindell <[email protected]>",
"Eric Weidow <[email protected]>"
"Eric Weidow <[email protected]>",
"Axel Andersson <[email protected]>"
],
"bugs": {
"email": "[email protected]"
Expand Down
9 changes: 9 additions & 0 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,15 @@ enum PrismaMeetingType {
/// Styrelsemöte
SM

/// Studierådsmöten grundnivå
SRG

/// Studierådsmöten avancerad nivå
SRA

/// Studierådsmöten intern
SRI

/// Höstterminsmöte
HTM

Expand Down
2 changes: 1 addition & 1 deletion src/api/election.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ export class ElectionAPI {
const electablePostIds = openElectionRes.electables.map((e) => e.refPost);

if (electablePostIds.length === 0) {
throw new BadRequestError('Det öppna valet inga valbara poster');
throw new BadRequestError('Det öppna valet har inga valbara poster');
}

const filteredPostIds = postIds.filter((e) => electablePostIds.includes(e));
Expand Down
Loading