Skip to content

Commit

Permalink
Rename "opg-data-lpa-deed" to "opg-data-lpa-store" (#37)
Browse files Browse the repository at this point in the history
Update go modules, AWS tagging and Renovate config.

Also update the name in the README, structurizr docs and OpenAPI spec

#major
  • Loading branch information
gregtyler authored Nov 1, 2023
1 parent 26c6854 commit 8e1d9dc
Show file tree
Hide file tree
Showing 17 changed files with 39 additions and 39 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# opg-data-lpa-deed
# opg-data-lpa-store

LPA deed service: Managed by opg-org-infra & Terraform
LPA Store: Managed by opg-org-infra & Terraform
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
lpaDeedService = softwareSystem "LPA Deed Service" "Stores deeds and manages changes to them" {
database = container "Database" "Stores deeds and events" "DynamoDB" "Database"
lambda = container "Lambda" "Executes code for storing, updating and retrieving deeds" "AWS Lambda, Go" "Component" {
lpaStore = softwareSystem "LPA Store" "Stores LPAs and manages changes to them" {
database = container "Database" "Stores LPAs and events" "DynamoDB" "Database"
lambda = container "Lambda" "Executes code for storing, updating and retrieving LPAs" "AWS Lambda, Go" "Component" {
-> database "Queries and writes to"
}
iam = container "IAM" "Manages permissions to API Gateway" "AWS IAM" "Component"
Expand Down
12 changes: 6 additions & 6 deletions docs/architecture/dsl/local/workspace.dsl
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@ workspace {
model {
!include https://raw.githubusercontent.com/ministryofjustice/opg-technical-guidance/main/dsl/poas/persons.dsl
!include https://raw.githubusercontent.com/ministryofjustice/opg-modernising-lpa/main/docs/architecture/dsl/local/makeRegisterSoftwareSystem.dsl
!include lpaDeedService.dsl
!include lpaStore.dsl
lpaCaseManagement = softwareSystem "LPA Case Management" "PKA Sirius." "Existing System" {
-> apiGateway "Gets deeds from and sends updates to"
-> apiGateway "Gets LPAs from and sends updates to"
}

ualpa_SoftwareSystem = softwareSystem "Use A Lasting Power of Attorney" "Allows LPA Actors to retrieve and share LPAs with People and Organisations interested in LPAs" "Existing System" {
-> apiGateway "Gets deeds from"
-> apiGateway "Gets LPAs from"
}

makeRegisterSoftwareSystem -> apiGateway "Sends deeds to"
makeRegisterSoftwareSystem -> apiGateway "Sends LPAs to"
}

views {
systemContext lpaDeedService "SystemContext" {
systemContext lpaStore "SystemContext" {
include *
autoLayout
}

container lpaDeedService {
container lpaStore {
include *
autoLayout
}
Expand Down
8 changes: 4 additions & 4 deletions docs/openapi/openapi.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
openapi: "3.0.2"
info:
title: LPA Deed Service
title: LPA Store
version: "1.0"
license:
name: MIT
url: https://opensource.org/licenses/MIT
servers:
- url: https://lpa-deed.api.opg.service.justice.gov.uk
- url: https://lpa-store.api.opg.service.justice.gov.uk
description: Production
- url: https://preproduction.lpa-deed.api.opg.service.justice.gov.uk
- url: https://preproduction.lpa-store.api.opg.service.justice.gov.uk
description: Preproduction
- url: https://development.lpa-deed.api.opg.service.justice.gov.uk
- url: https://development.lpa-store.api.opg.service.justice.gov.uk
description: Development
security:
- {}
Expand Down
6 changes: 3 additions & 3 deletions lambda/create/go.mod
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
module github.com/ministryofjustice/opg-data-lpa-deed/lambda/create
module github.com/ministryofjustice/opg-data-lpa-store/lambda/create

go 1.20

replace github.com/ministryofjustice/opg-data-lpa-deed/lambda/shared => ../shared
replace github.com/ministryofjustice/opg-data-lpa-store/lambda/shared => ../shared

require (
github.com/aws/aws-lambda-go v1.41.0
github.com/ministryofjustice/opg-data-lpa-deed/lambda/shared v0.0.0-00010101000000-000000000000
github.com/ministryofjustice/opg-data-lpa-store/lambda/shared v0.0.0-00010101000000-000000000000
github.com/ministryofjustice/opg-go-common v0.0.0-20231009133357-1f236d604316
)

Expand Down
4 changes: 2 additions & 2 deletions lambda/create/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/aws/aws-lambda-go/events"
"github.com/aws/aws-lambda-go/lambda"
"github.com/ministryofjustice/opg-data-lpa-deed/lambda/shared"
"github.com/ministryofjustice/opg-data-lpa-store/lambda/shared"
"github.com/ministryofjustice/opg-go-common/logging"
)

Expand Down Expand Up @@ -75,7 +75,7 @@ func (l *Lambda) HandleEvent(ctx context.Context, event events.APIGatewayProxyRe
func main() {
l := &Lambda{
store: shared.NewDynamoDB(os.Getenv("DDB_TABLE_NAME_DEEDS")),
logger: logging.New(os.Stdout, "opg-data-lpa-deed"),
logger: logging.New(os.Stdout, "opg-data-lpa-store"),
}

lambda.Start(l.HandleEvent)
Expand Down
6 changes: 3 additions & 3 deletions lambda/get/go.mod
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
module github.com/ministryofjustice/opg-data-lpa-deed/lambda/get
module github.com/ministryofjustice/opg-data-lpa-store/lambda/get

go 1.20

replace github.com/ministryofjustice/opg-data-lpa-deed/lambda/shared => ../shared
replace github.com/ministryofjustice/opg-data-lpa-store/lambda/shared => ../shared

require (
github.com/aws/aws-lambda-go v1.41.0
github.com/ministryofjustice/opg-data-lpa-deed/lambda/shared v0.0.0-00010101000000-000000000000
github.com/ministryofjustice/opg-data-lpa-store/lambda/shared v0.0.0-00010101000000-000000000000
github.com/ministryofjustice/opg-go-common v0.0.0-20231009133357-1f236d604316
)

Expand Down
4 changes: 2 additions & 2 deletions lambda/get/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/aws/aws-lambda-go/events"
"github.com/aws/aws-lambda-go/lambda"
"github.com/ministryofjustice/opg-data-lpa-deed/lambda/shared"
"github.com/ministryofjustice/opg-data-lpa-store/lambda/shared"
"github.com/ministryofjustice/opg-go-common/logging"
)

Expand Down Expand Up @@ -49,7 +49,7 @@ func (l *Lambda) HandleEvent(ctx context.Context, event events.APIGatewayProxyRe
func main() {
l := &Lambda{
store: shared.NewDynamoDB(os.Getenv("DDB_TABLE_NAME_DEEDS")),
logger: logging.New(os.Stdout, "opg-data-lpa-deed"),
logger: logging.New(os.Stdout, "opg-data-lpa-store"),
}

lambda.Start(l.HandleEvent)
Expand Down
2 changes: 1 addition & 1 deletion lambda/shared/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/ministryofjustice/opg-data-lpa-deed/lambda/shared
module github.com/ministryofjustice/opg-data-lpa-store/lambda/shared

go 1.20

Expand Down
2 changes: 1 addition & 1 deletion lambda/shared/problem.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (problem Problem) Respond() (events.APIGatewayProxyResponse, error) {
}

_ = json.NewEncoder(os.Stdout).Encode(LogEvent{
ServiceName: "opg-data-lpa-deed",
ServiceName: "opg-data-lpa-store",
Timestamp: time.Now(),
Status: problem.StatusCode,
Problem: problem,
Expand Down
6 changes: 3 additions & 3 deletions lambda/update/go.mod
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
module github.com/ministryofjustice/opg-data-lpa-deed/lambda/update
module github.com/ministryofjustice/opg-data-lpa-store/lambda/update

go 1.20

replace github.com/ministryofjustice/opg-data-lpa-deed/lambda/shared => ../shared
replace github.com/ministryofjustice/opg-data-lpa-store/lambda/shared => ../shared

require (
github.com/aws/aws-lambda-go v1.41.0
github.com/go-openapi/jsonpointer v0.20.0
github.com/ministryofjustice/opg-data-lpa-deed/lambda/shared v0.0.0-00010101000000-000000000000
github.com/ministryofjustice/opg-data-lpa-store/lambda/shared v0.0.0-00010101000000-000000000000
github.com/ministryofjustice/opg-go-common v0.0.0-20231009133357-1f236d604316
)

Expand Down
4 changes: 2 additions & 2 deletions lambda/update/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/aws/aws-lambda-go/events"
"github.com/aws/aws-lambda-go/lambda"
"github.com/go-openapi/jsonpointer"
"github.com/ministryofjustice/opg-data-lpa-deed/lambda/shared"
"github.com/ministryofjustice/opg-data-lpa-store/lambda/shared"
"github.com/ministryofjustice/opg-go-common/logging"
)

Expand Down Expand Up @@ -95,7 +95,7 @@ func applyUpdate(lpa *shared.Lpa, update shared.Update) error {
func main() {
l := &Lambda{
store: shared.NewDynamoDB(os.Getenv("DDB_TABLE_NAME_DEEDS")),
logger: logging.New(os.Stdout, "opg-data-lpa-deed"),
logger: logging.New(os.Stdout, "opg-data-lpa-store"),
}

lambda.Start(l.HandleEvent)
Expand Down
2 changes: 1 addition & 1 deletion mock-apigw/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/ministryofjustice/opg-data-lpa-deed/delegator
module github.com/ministryofjustice/opg-data-lpa-store/mock-apigw

go 1.20

Expand Down
2 changes: 1 addition & 1 deletion renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{
"description": "Ignore internal dependency upgrades - Renovate doesn't recognise that these are relative and therefore don't need to refer to the correct digest",
"matchPackageNames": [
"github.com/ministryofjustice/opg-data-lpa-deed/lambda/shared"
"github.com/ministryofjustice/opg-data-lpa-store/lambda/shared"
],
"enabled": false
},
Expand Down
2 changes: 1 addition & 1 deletion signer/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/ministryofjustice/opg-data-lpa-deed/signer
module github.com/ministryofjustice/opg-data-lpa-store/signer

go 1.20

Expand Down
4 changes: 2 additions & 2 deletions terraform/account/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ locals {

mandatory_moj_tags = {
business-unit = "OPG"
application = "opg-data-lpa-deed"
application = "opg-data-lpa-store"
account = local.account.account_name
is-production = local.account.is_production
owner = "[email protected]"
}

optional_tags = {
source-code = "https://github.com/ministryofjustice/opg-data-lpa-deed"
source-code = "https://github.com/ministryofjustice/opg-data-lpa-store"
infrastructure-support = "[email protected]"
}

Expand Down
4 changes: 2 additions & 2 deletions terraform/environment/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ locals {
default_tags = merge(local.mandatory_moj_tags, local.optional_tags)
mandatory_moj_tags = {
business-unit = "OPG"
application = "opg-data-lpa-deed"
application = "opg-data-lpa-store"
environment-name = local.environment_name
account = local.environment.account_name
is-production = local.environment.is_production
owner = "[email protected]"
}

optional_tags = {
source-code = "https://github.com/ministryofjustice/opg-data-lpa-deed"
source-code = "https://github.com/ministryofjustice/opg-data-lpa-store"
infrastructure-support = "[email protected]"
}
}
Expand Down

0 comments on commit 8e1d9dc

Please sign in to comment.