-
Notifications
You must be signed in to change notification settings - Fork 91
ENG-3328: Add property picker to integration forms #7909
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
9b07445
add property UI to integration forms
jpople 0113b56
Merge branch 'main' into jpople/eng-3328/integration-ui-property-picker
jpople 3c62d4c
update size of fetch on picker
jpople 19cc815
fix property picker error handling and query skip
jpople 65c4b59
add changelog for PR #7909
jpople 5da9f12
lint
jpople 70ccac0
Merge branch 'main' into jpople/eng-3328/integration-ui-property-picker
jpople 1678e81
Address PR review feedback for ENG-3328
jpople 557226c
Merge branch 'main' into jpople/eng-3328/integration-ui-property-picker
jpople aa925f0
Merge branch 'main' into jpople/eng-3328/integration-ui-property-picker
jpople 652f0e5
extract error message to const
jpople bedc87d
Merge branch 'main' into jpople/eng-3328/integration-ui-property-picker
jpople File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,4 @@ | ||
| type: Added | ||
| description: Added property picker to integration forms for assigning properties to dataset configs | ||
| pr: 7909 | ||
| labels: [] |
This file contains hidden or 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 hidden or 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
49 changes: 49 additions & 0 deletions
49
clients/admin-ui/src/features/properties/dataset-properties.slice.ts
This file contains hidden or 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,49 @@ | ||
| import { baseApi } from "~/features/common/api.slice"; | ||
| import type { | ||
| BulkDatasetPropertyResponse, | ||
| BulkPropertyAssignment, | ||
| BulkPropertyRemoval, | ||
| DatasetPropertyIdsResponse, | ||
| } from "~/types/api"; | ||
|
|
||
| export const datasetPropertiesApi = baseApi.injectEndpoints({ | ||
| endpoints: (builder) => ({ | ||
| getPropertyIdsForDataset: builder.query<DatasetPropertyIdsResponse, string>( | ||
| { | ||
| query: (fidesKey) => ({ | ||
| url: `plus/dataset-properties`, | ||
| params: { fides_key: fidesKey }, | ||
| }), | ||
| providesTags: ["Property"], | ||
| }, | ||
| ), | ||
| bulkAssignProperties: builder.mutation< | ||
| BulkDatasetPropertyResponse, | ||
| BulkPropertyAssignment | ||
| >({ | ||
| query: (body) => ({ | ||
| url: `plus/dataset-properties/bulk-assign`, | ||
| method: "POST", | ||
| body, | ||
| }), | ||
| invalidatesTags: ["Property"], | ||
| }), | ||
| bulkRemoveProperties: builder.mutation< | ||
| BulkDatasetPropertyResponse, | ||
| BulkPropertyRemoval | ||
| >({ | ||
| query: (body) => ({ | ||
| url: `plus/dataset-properties/bulk-remove`, | ||
| method: "POST", | ||
| body, | ||
| }), | ||
| invalidatesTags: ["Property"], | ||
| }), | ||
| }), | ||
| }); | ||
|
|
||
| export const { | ||
| useGetPropertyIdsForDatasetQuery, | ||
| useBulkAssignPropertiesMutation, | ||
| useBulkRemovePropertiesMutation, | ||
| } = datasetPropertiesApi; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.