-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:island-is/island.is into j-s/advoca…
…te-notifications
- Loading branch information
Showing
173 changed files
with
3,267 additions
and
2,045 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,5 @@ | |
.yarn | ||
/infra/helm/ | ||
/.nx/cache | ||
/.nx/workspace-data | ||
/.nx/workspace-data | ||
apps/web/public/assets/pdf.worker.min.mjs |
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,17 @@ | ||
#!/bin/bash | ||
|
||
INSTANCE_ID=$( | ||
aws ec2 describe-instances \ | ||
--filters "Name=tag:Name,Values=Bastion Host" "Name=instance-state-name,Values=running" \ | ||
--query "Reservations[0].Instances[0].InstanceId" \ | ||
--region eu-west-1 \ | ||
--output text | ||
aws ec2 describe-instances \ | ||
--filters "Name=tag:Name,Values=Bastion Host" "Name=instance-state-name,Values=running" \ | ||
--query "Reservations[0].Instances[0].InstanceId" \ | ||
--region eu-west-1 \ | ||
--output text | ||
) | ||
|
||
echo "Starting port forwarding session with instance $INSTANCE_ID for profile $AWS_PROFILE" | ||
|
||
aws ssm start-session \ | ||
--target "$INSTANCE_ID" \ | ||
--document-name AWS-StartPortForwardingSession \ | ||
--parameters '{"portNumber":["8081"],"localPortNumber":["5050"]}' \ | ||
--region eu-west-1 | ||
--target "$INSTANCE_ID" \ | ||
--document-name AWS-StartPortForwardingSession \ | ||
--parameters '{"portNumber":["8081"],"localPortNumber":["5050"]}' \ | ||
--region eu-west-1 |
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
14 changes: 14 additions & 0 deletions
14
apps/judicial-system/api/src/app/modules/police/dto/subpoenaStatus.input.ts
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,14 @@ | ||
import { Allow } from 'class-validator' | ||
|
||
import { Field, ID, InputType } from '@nestjs/graphql' | ||
|
||
@InputType() | ||
export class SubpoenaStatusQueryInput { | ||
@Allow() | ||
@Field(() => ID) | ||
readonly caseId!: string | ||
|
||
@Allow() | ||
@Field(() => ID) | ||
readonly subpoenaId!: string | ||
} |
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,3 +1,4 @@ | ||
export { PoliceCaseInfo } from './models/policeCaseInfo.model' | ||
export { SubpoenaStatus } from './models/subpoenaStatus.model' | ||
export { PoliceCaseFile } from './models/policeCaseFile.model' | ||
export { UploadPoliceCaseFileResponse } from './models/uploadPoliceCaseFile.response' |
21 changes: 21 additions & 0 deletions
21
apps/judicial-system/api/src/app/modules/police/models/subpoenaStatus.model.ts
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,21 @@ | ||
import { Field, ObjectType } from '@nestjs/graphql' | ||
|
||
import { ServiceStatus } from '@island.is/judicial-system/types' | ||
|
||
@ObjectType() | ||
export class SubpoenaStatus { | ||
@Field(() => ServiceStatus) | ||
readonly serviceStatus!: ServiceStatus | ||
|
||
@Field(() => String, { nullable: true }) | ||
readonly servedBy?: string | ||
|
||
@Field(() => String, { nullable: true }) | ||
readonly comment?: string | ||
|
||
@Field(() => String, { nullable: true }) | ||
readonly serviceDate?: string | ||
|
||
@Field(() => String, { nullable: true }) | ||
readonly defenderNationalId?: string | ||
} |
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
87 changes: 87 additions & 0 deletions
87
apps/judicial-system/backend/migrations/20240925130059-update-subpoena.js
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,87 @@ | ||
'use strict' | ||
|
||
module.exports = { | ||
up: (queryInterface, Sequelize) => { | ||
return queryInterface.sequelize.transaction((transaction) => | ||
queryInterface | ||
.changeColumn( | ||
'subpoena', | ||
'acknowledged', | ||
{ type: Sequelize.STRING, allowNull: true }, | ||
{ transaction }, | ||
) | ||
.then( | ||
() => | ||
queryInterface.renameColumn( | ||
'subpoena', | ||
'acknowledged', | ||
'service_status', | ||
{ transaction }, | ||
), | ||
|
||
queryInterface.renameColumn( | ||
'subpoena', | ||
'acknowledged_date', | ||
'service_date', | ||
{ transaction }, | ||
), | ||
|
||
queryInterface.renameColumn( | ||
'subpoena', | ||
'registered_by', | ||
'served_by', | ||
{ transaction }, | ||
), | ||
|
||
queryInterface.addColumn( | ||
'subpoena', | ||
'defender_national_id', | ||
{ | ||
type: Sequelize.STRING, | ||
allowNull: true, | ||
}, | ||
{ transaction }, | ||
), | ||
), | ||
) | ||
}, | ||
|
||
down: (queryInterface) => { | ||
return queryInterface.sequelize.transaction((transaction) => | ||
queryInterface | ||
.renameColumn('subpoena', 'service_status', 'acknowledged', { | ||
transaction, | ||
}) | ||
.then( | ||
() => | ||
queryInterface.changeColumn( | ||
'subpoena', | ||
'acknowledged', | ||
{ | ||
type: 'BOOLEAN USING CAST("acknowledged" as BOOLEAN)', | ||
allowNull: true, | ||
}, | ||
{ transaction }, | ||
), | ||
|
||
queryInterface.renameColumn( | ||
'subpoena', | ||
'service_date', | ||
'acknowledged_date', | ||
{ transaction }, | ||
), | ||
|
||
queryInterface.renameColumn( | ||
'subpoena', | ||
'served_by', | ||
'registered_by', | ||
{ transaction }, | ||
), | ||
|
||
queryInterface.removeColumn('subpoena', 'defender_national_id', { | ||
transaction, | ||
}), | ||
), | ||
) | ||
}, | ||
} |
1 change: 0 additions & 1 deletion
1
apps/judicial-system/backend/src/app/modules/case/internalCase.service.ts
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
2 changes: 0 additions & 2 deletions
2
...al-system/backend/src/app/modules/case/test/caseController/getIndictmentPdfGuards.spec.ts
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
2 changes: 0 additions & 2 deletions
2
...ystem/backend/src/app/modules/file/test/fileController/getCaseFileSignedUrlGuards.spec.ts
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
Oops, something went wrong.