Skip to content

Commit 7a545f2

Browse files
committed
Merge branch 'release/1.19.2'
2 parents 005fa39 + 0822e58 commit 7a545f2

4 files changed

Lines changed: 22 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212

1313
### Fixed
1414

15+
## [1.19.2]
16+
### Changed
17+
18+
- Updated database Terraform module to use the 'max_allocated_storage' param [#1312](https://github.com/PublicMapping/districtbuilder/pull/1312)
19+
- Made TopologyService check 'archived' status and refuse to load archived layers [#1315](https://github.com/PublicMapping/districtbuilder/pull/1315)
20+
1521
## [1.19.1]
1622
### Changed
1723
- Deduplicate CloudWatch alarms [#1283](https://github.com/PublicMapping/districtbuilder/pull/1283)
@@ -547,7 +553,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
547553

548554
- Initial release.
549555

550-
[Unreleased]: https://github.com/publicmapping/districtbuilder/compare/1.19.1...HEAD
556+
[Unreleased]: https://github.com/publicmapping/districtbuilder/compare/1.19.2...HEAD
557+
[1.19.2]: https://github.com/publicmapping/districtbuilder/compare/1.19.1...1.19.2
551558
[1.19.1]: https://github.com/publicmapping/districtbuilder/compare/1.19.0...1.19.1
552559
[1.19.0]: https://github.com/publicmapping/districtbuilder/compare/1.18.1...1.19.0
553560
[1.18.1]: https://github.com/publicmapping/districtbuilder/compare/1.18.0...1.18.1

deployment/terraform/database.tf

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,17 @@ resource "aws_db_parameter_group" "default" {
7575
}
7676

7777
module "database" {
78-
source = "github.com/azavea/terraform-aws-postgresql-rds?ref=3.0.0"
78+
# TODO (#1316): go back to github.com/azavea/terraform-aws-postgresql-rds once it's updated
79+
# (see https://github.com/azavea/terraform-aws-postgresql-rds/pull/48)
80+
source = "github.com/KlaasH/terraform-aws-postgresql-rds?ref=max-allocated-storage"
7981

8082
vpc_id = module.vpc.id
8183
allocated_storage = var.rds_allocated_storage
84+
max_allocated_storage = var.rds_max_allocated_storage
8285
engine_version = var.rds_engine_version
8386
instance_type = var.rds_instance_type
8487
storage_type = var.rds_storage_type
85-
iops = var.rds_storage_type == "io1" ? var.rds_iops : null
88+
iops = var.rds_iops
8689
database_identifier = var.rds_database_identifier
8790
database_name = var.rds_database_name
8891
database_username = var.rds_database_username

deployment/terraform/variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ variable "rds_allocated_storage" {
5858
type = string
5959
}
6060

61+
variable "rds_max_allocated_storage" {
62+
default = 0
63+
type = string
64+
}
65+
6166
variable "rds_engine_version" {
6267
default = "12.4"
6368
type = string

src/server/src/districts/services/topology.service.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ export class TopologyService {
7676
if (!this._layers) {
7777
return;
7878
}
79+
if (regionConfig.archived) {
80+
this.logger.error(`Tried to load archived RegionConfig ${regionConfig.id}`);
81+
return undefined;
82+
}
7983
if (!(regionConfig.s3URI in this._layers)) {
8084
// If we encounter a new layer (i.e. one added after the service has started),
8185
// then store the results in the `_layers` object.

0 commit comments

Comments
 (0)