Skip to content

Commit

Permalink
Update localstack and UI to reflect changes to types
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathonherbert committed Mar 28, 2023
1 parent 1bf49a7 commit 5325bc3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ class BucketRuleManager(s3: AmazonS3, bucketName: String, stage: String) extends
val ruleJson = Json.toJson(ruleResource)
val bytes = ruleJson.toString.getBytes(java.nio.charset.StandardCharsets.UTF_8.name)

logOnError(s"writing rules to S3 at $bucketName/$RULES_KEY with JSON hash ${ruleJson.hashCode}") {
logOnError(
s"writing rules to S3 at $bucketName/$RULES_KEY with JSON hash ${ruleJson.hashCode}"
) {
val stream: java.io.InputStream = new java.io.ByteArrayInputStream(bytes)
val metaData = new ObjectMetadata()
metaData.setContentLength(bytes.length)
Expand Down
2 changes: 1 addition & 1 deletion apps/rule-manager/client/src/ts/components/RulesTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const columns: Array<EuiBasicTableColumn<Rule>> = [
field: 'category',
name: 'Category',
render: (category: Rule['category']) => {
return <>{category.name}</>
return <>{category?.name}</>
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion localstack/init-aws.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

awslocal s3 mb s3://typerighter-app-local

json='{"rules": [], "ltDefaultRuleIds":[]}'
json='{"rules": []}'
echo "$json" > typerighter-rules.json
awslocal s3 cp typerighter-rules.json s3://typerighter-app-local/local/rules/typerighter-rules.json

0 comments on commit 5325bc3

Please sign in to comment.