Skip to content

Reworks role based resource validation.#1288

Merged
archolewa merged 1 commit intomasterfrom
generalize-roles-table-mapepr
Dec 19, 2022
Merged

Reworks role based resource validation.#1288
archolewa merged 1 commit intomasterfrom
generalize-roles-table-mapepr

Conversation

@archolewa
Copy link
Copy Markdown
Contributor

-- We fully generalize RoleBasedTableValidatorRequestMapper to apply to any ApiRequest, not just DataApiRequest, and in the process, rename it to RoleBasedValidatorRequestMapper since it no longer necessarily involves tables.

-- RoleBasedTableValidatorRequestMapper becomes a subclass of RoleBasedValidatorRequestMapper specifically for TableApiRequests. The subclass delegates to its parent if the request contains a table (i.e. the user requests information about a specific table). Otherwise, if there is no table on the request (i.e. the user asks for information about all tables), the
RoleBasedTableValidatorRequestMapper instead modifies the TableApiRequest to only expose those tables that pass validation.

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

-- We fully generalize RoleBasedTableValidatorRequestMapper to apply to
any ApiRequest, not just DataApiRequest, and in the process, rename it
to `RoleBasedValidatorRequestMapper` since it no longer
necessarily involves tables.

-- RoleBasedTableValidatorRequestMapper becomes a subclass of
`RoleBasedValidatorRequestMapper` specifically for TableApiRequests.
The subclass delegates to its parent if the request contains a table
(i.e. the user requests information about a specific table). Otherwise,
if there is no table on the request (i.e. the user asks for
information about all tables), the
`RoleBasedTableValidatorRequestMapper` instead modifies the
TableApiRequest to only expose those tables that pass validation.
@archolewa archolewa force-pushed the generalize-roles-table-mapepr branch from 6671a36 to dbe4ec9 Compare December 16, 2022 20:28
@archolewa archolewa merged commit b0c18d2 into master Dec 19, 2022
@archolewa archolewa deleted the generalize-roles-table-mapepr branch December 19, 2022 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants