Skip to content

Commit

Permalink
Use library short_name for row level security
Browse files Browse the repository at this point in the history
  • Loading branch information
dbernstein committed Feb 5, 2024
1 parent fde658c commit 7dffbe4
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
52 changes: 47 additions & 5 deletions assets/data-sets/circulation_view.json
Original file line number Diff line number Diff line change
Expand Up @@ -195,23 +195,65 @@
"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"
]
]
},
"DataSetUsageConfiguration": {
"DisableUseAsDirectQuerySource": false,
"DisableUseAsImportedSource": false
}
}
}
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
50 changes: 46 additions & 4 deletions assets/data-sets/patron_events.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
]
},
Expand Down

0 comments on commit 7dffbe4

Please sign in to comment.