From 7dffbe473431387ab6dc734202b51c3d4d65e044 Mon Sep 17 00:00:00 2001 From: Daniel Bernstein Date: Mon, 18 Dec 2023 09:34:25 -0800 Subject: [PATCH] Use library short_name for row level security --- ...ation_view-data-set-refresh-schedules.json | 5 +- assets/data-sets/circulation_view.json | 52 +++++++++++++++++-- ...ron_events-data-set-refresh-schedules.json | 5 +- assets/data-sets/patron_events.json | 50 ++++++++++++++++-- 4 files changed, 95 insertions(+), 17 deletions(-) diff --git a/assets/data-sets/circulation_view-data-set-refresh-schedules.json b/assets/data-sets/circulation_view-data-set-refresh-schedules.json index 9ccd90a..deb81d4 100644 --- a/assets/data-sets/circulation_view-data-set-refresh-schedules.json +++ b/assets/data-sets/circulation_view-data-set-refresh-schedules.json @@ -1,15 +1,12 @@ { "RefreshSchedules": [ { - "ScheduleId": "fcdd5fe8-537d-4e59-947e-af35b5a82385", "ScheduleFrequency": { "Interval": "DAILY", "Timezone": "America/New_York", "TimeOfTheDay": "23:59" }, - "StartAfterDateTime": "2023-09-29 16:59:00-07:00", - "RefreshType": "INCREMENTAL_REFRESH", - "Arn": "arn:aws:quicksight:us-west-2:128682227026:dataset/e9e15c78-0193-4e4c-9a49-ed005569297d/refresh-schedule/fcdd5fe8-537d-4e59-947e-af35b5a82385" + "RefreshType": "INCREMENTAL_REFRESH" } ] } \ No newline at end of file diff --git a/assets/data-sets/circulation_view.json b/assets/data-sets/circulation_view.json index 13efdbc..bd7153b 100644 --- a/assets/data-sets/circulation_view.json +++ b/assets/data-sets/circulation_view.json @@ -195,18 +195,60 @@ "ConsumedSpiceCapacityInBytes": 1324679, "FieldFolders": {}, "RowLevelPermissionTagConfiguration": { - "Status": "DISABLED", + "Status": "ENABLED", "TagRules": [ { - "TagKey": "library_name", - "ColumnName": "library_name", + "TagKey": "library_short_name_0", + "ColumnName": "libary_short_name", + "TagMultiValueDelimiter": "|", + "MatchAllValue": "*" + }, + { + "TagKey": "library_short_name_1", + "ColumnName": "libary_short_name", + "TagMultiValueDelimiter": "|", + "MatchAllValue": "*" + }, + { + "TagKey": "library_short_name_2", + "ColumnName": "libary_short_name", + "TagMultiValueDelimiter": "|", + "MatchAllValue": "*" + }, + { + "TagKey": "library_short_name_3", + "ColumnName": "libary_short_name", + "TagMultiValueDelimiter": "|", + "MatchAllValue": "*" + }, + { + "TagKey": "library_short_name_4", + "ColumnName": "libary_short_name", + "TagMultiValueDelimiter": "|", + "MatchAllValue": "*" + }, + { + "TagKey": "library_short_name_5", + "ColumnName": "libary_short_name", + "TagMultiValueDelimiter": "|", + "MatchAllValue": "*" + }, + { + "TagKey": "library_short_name_6", + "ColumnName": "libary_short_name", "TagMultiValueDelimiter": "|", "MatchAllValue": "*" } ], "TagRuleConfigurations": [ [ - "library_name" + "library_short_name_0", + "library_short_name_1", + "library_short_name_2", + "library_short_name_3", + "library_short_name_4", + "library_short_name_5", + "library_short_name_6" ] ] }, @@ -214,4 +256,4 @@ "DisableUseAsDirectQuerySource": false, "DisableUseAsImportedSource": false } -} +} \ No newline at end of file diff --git a/assets/data-sets/patron_events-data-set-refresh-schedules.json b/assets/data-sets/patron_events-data-set-refresh-schedules.json index d1892e5..3963ec8 100644 --- a/assets/data-sets/patron_events-data-set-refresh-schedules.json +++ b/assets/data-sets/patron_events-data-set-refresh-schedules.json @@ -1,15 +1,12 @@ { "RefreshSchedules": [ { - "ScheduleId": "219c0510-7c80-43fc-a921-1639328dd93d", "ScheduleFrequency": { "Interval": "DAILY", "Timezone": "America/New_York", "TimeOfTheDay": "23:59" }, - "StartAfterDateTime": "2023-09-28 16:59:00-07:00", - "RefreshType": "INCREMENTAL_REFRESH", - "Arn": "arn:aws:quicksight:us-west-2:128682227026:dataset/86eb4ca5-9552-4ba6-8b1b-7ef1b9b40f78/refresh-schedule/219c0510-7c80-43fc-a921-1639328dd93d" + "RefreshType": "INCREMENTAL_REFRESH" } ] } diff --git a/assets/data-sets/patron_events.json b/assets/data-sets/patron_events.json index 5d330b1..daaf25b 100644 --- a/assets/data-sets/patron_events.json +++ b/assets/data-sets/patron_events.json @@ -87,18 +87,60 @@ "ConsumedSpiceCapacityInBytes": 4703, "FieldFolders": {}, "RowLevelPermissionTagConfiguration": { - "Status": "DISABLED", + "Status": "ENABLED", "TagRules": [ { - "TagKey": "library_name", - "ColumnName": "library_name", + "TagKey": "library_short_name_0", + "ColumnName": "library_short_name", + "TagMultiValueDelimiter": "|", + "MatchAllValue": "*" + }, + { + "TagKey": "library_short_name_1", + "ColumnName": "library_short_name", + "TagMultiValueDelimiter": "|", + "MatchAllValue": "*" + }, + { + "TagKey": "library_short_name_2", + "ColumnName": "library_short_name", + "TagMultiValueDelimiter": "|", + "MatchAllValue": "*" + }, + { + "TagKey": "library_short_name_3", + "ColumnName": "library_short_name", + "TagMultiValueDelimiter": "|", + "MatchAllValue": "*" + }, + { + "TagKey": "library_short_name_4", + "ColumnName": "library_short_name", + "TagMultiValueDelimiter": "|", + "MatchAllValue": "*" + }, + { + "TagKey": "library_short_name_5", + "ColumnName": "library_short_name", + "TagMultiValueDelimiter": "|", + "MatchAllValue": "*" + }, + { + "TagKey": "library_short_name_6", + "ColumnName": "library_short_name", "TagMultiValueDelimiter": "|", "MatchAllValue": "*" } ], "TagRuleConfigurations": [ [ - "library_name" + "library_short_name_0", + "library_short_name_1", + "library_short_name_2", + "library_short_name_3", + "library_short_name_4", + "library_short_name_5", + "library_short_name_6" ] ] },