-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BIA 455] Adds DistrictId to rls_UserAuthorization view (#15)
* Add District Id to UserAuthorization view. Returns the district id, when user has district level access. * Add specific tests for DistrictId * Revert leftover configuration code * revert connection string change * Adds DistrictId to UserAuthorization view for Postgres. Co-authored-by: Arturo Hernandez <[email protected]>
- Loading branch information
1 parent
dca7841
commit 0b2e505
Showing
11 changed files
with
85 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
src/EdFi.AnalyticsMiddleTier.Tests/EdFi.AnalyticsMiddleTier.Tests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...sts/TestCases/UserAuthorization/querying_DistrictId_with_UserScope_equal_to_District.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"DBMS": "Any", | ||
"ControlDataInsertion": "", | ||
"DropControlData": "", | ||
"Query": "select UserScope, DistrictId from analytics.rls_UserAuthorization where UserKey = 13449", | ||
"Result": [ | ||
{ | ||
"UserScope": "AuthorizationScope.District", | ||
"DistrictId": 867530 | ||
} | ||
] | ||
} |
12 changes: 12 additions & 0 deletions
12
...Tests/TestCases/UserAuthorization/querying_DistrictId_with_UserScope_equal_to_School.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"DBMS": "Any", | ||
"ControlDataInsertion": "", | ||
"DropControlData": "", | ||
"Query": "select UserScope, DistrictId from analytics.rls_UserAuthorization where UserKey = 13630", | ||
"Result": [ | ||
{ | ||
"UserScope": "AuthorizationScope.School", | ||
"DistrictId": null | ||
} | ||
] | ||
} |
12 changes: 12 additions & 0 deletions
12
...ests/TestCases/UserAuthorization/querying_DistrictId_with_UserScope_equal_to_Section.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"DBMS": "Any", | ||
"ControlDataInsertion": "", | ||
"DropControlData": "", | ||
"Query": "select UserScope, DistrictId from analytics.rls_UserAuthorization where UserKey = 11331", | ||
"Result": [ | ||
{ | ||
"UserScope": "AuthorizationScope.Section", | ||
"DistrictId": null | ||
} | ||
] | ||
} |