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

RRCP Super mode dashboard to use new super-mode-calculator DynamoDB tables #668

Merged
merged 1 commit into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion app/services/DynamoSuperMode.scala
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import java.util.Date
import scala.jdk.CollectionConverters._

class DynamoSuperMode(client: DynamoDbClient) extends StrictLogging {
private val tableName = s"super-mode-PROD"
private val tableName = s"super-mode-calculator-PROD"

private val dateFormat = new SimpleDateFormat("yyyy-MM-dd")
private val timestampFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS")
Expand Down
16 changes: 8 additions & 8 deletions cdk/lib/__snapshots__/admin-console.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions cdk/lib/admin-console.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,11 +252,11 @@ export class AdminConsole extends GuStack {
...archivedTestsDynamoPolicies,
...bannerDesignsDynamoPolicies,
...archivedBannerDesignsDynamoPolicies,
new GuDynamoDBReadPolicy(this, `DynamoRead-super-mode`, {
tableName: 'super-mode-PROD', // always PROD for super mode
new GuDynamoDBReadPolicy(this, `DynamoRead-super-mode-calculator`, {
tableName: 'super-mode-calculator-PROD', // always PROD for super mode
}),
new GuDynamoDBReadPolicy(this, `DynamoRead-super-mode/index/end`, {
tableName: `super-mode-PROD/index/end`,
new GuDynamoDBReadPolicy(this, `DynamoRead-super-mode-calculator/index/end`, {
tableName: `super-mode-calculator-PROD/index/end`,
}),
new GuDynamoDBReadPolicy(this, `DynamoRead-bandit-data`, {
tableName: `support-bandit-${this.stage}`,
Expand Down
Loading