-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Task/rdmp 32 regex redaction (#2009)
* interim * interim * redact and add some tests * add missing interface * add regex redaction keys * add helper * add concept * update interfaces * add icons and fix restore * add missing files * add docs * add regions * add ignore * add speed test * improve speed * improve speed * update padding * stress test * add test case * add fk names * faster data load * faster update * more timers * super fast redaction * tidy up code * woking keys * improved * add limiting * shared helper * shared * interim * working * add summary * restore tests working * add tests * start og ui update * start of ui * basic configuraion * working add * user interface * update for tests * update test * tests * tidy up * updates * fix merge * ad dicons * add missing icons * tidyup * fix tests * add missing file * update migration number * add changelog * add timeout * fix build * interim * tidy up * tidy up code * add publish * add todo * add redact all * add column * update table * add docs * update markdown * fix typo * fix typos * tidy up tests * tidy up tests * Include regex redaction doc in VS Solution file * Update ExecuteCommandPerformRegexRedactionOnCatalogueTests.cs Syntax cleanup * Update ThrowImmediatelyActivator.cs Remove obsolete comment * Update ExecuteCommandPerformRegexRedactionOnCatalogueTests.cs Start being green and recycling * Update ExecuteCommandPerformRegexRedactionOnCatalogueTests.cs Finish recycling test objects --------- Co-authored-by: James A Sutherland <[email protected]>
- Loading branch information
Showing
75 changed files
with
5,705 additions
and
1,612 deletions.
There are no files selected for viewing
20 changes: 10 additions & 10 deletions
20
Application/ResearchDataManagementPlatform/WindowManagement/TopBar/RDMPTaskBarUI.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Regex Redactions | ||
|
||
RDMP has the ability to redact incoming and existing catalogue data. | ||
It uses user-defined regex to do this. | ||
This functionality may be useful if you know about problematic data that you wish to clean before it reaches RDMP | ||
|
||
## Setup & Configuration | ||
To begin, a redaction configuration is required. | ||
This can be added in the "Configurations" section of RDMP. | ||
Each configuration has: | ||
* A Name | ||
* A Description | ||
* A Regex string to match | ||
* A Replacement value | ||
|
||
N.B. The replacement value cannot be longer than the redacted string i.e. "string" => "myRedactedString" will not work. | ||
|
||
Once the configuration has been saved, it can be used to redact data. | ||
|
||
## Usage in Data Loads | ||
Within the Data Loads mutilators, there is a mutilator named "Regex Redaction Mutilator" that can be used in the RAW or STAGING areas of the load. | ||
This mutilator will redact based on your selected configuration. | ||
The configuration for this mutilator requires: | ||
* A predefined regex redaction configuration (see above) | ||
* Either a regex to select which columns to redact, or a selection of known columns | ||
|
||
N.B. Primary Key columns will not be redacted and this functionality is intended for string fields. | ||
|
||
Once the configuration has been set, it will redact the desired columns during a data load. | ||
|
||
During a run, the mutilator will replace any regex matches with the desired string and store the now known redaction in RDMP. | ||
To view the redactions made, see the section below. | ||
|
||
|
||
## Usage within RDMP | ||
You can view and restore existing redactions, along with adding new redactions within RDMP. | ||
For a Catalogue, right-click and open the "Catalogue Items" submenu. | ||
From here, select the "Regex Redactions" option. | ||
This will open an interface displaying existing redactions. | ||
From here you can restore existing redactions either individually or in bulk. | ||
You can also apply regex redactions to existing data by selecting a redaction configuration and which columns to redact. | ||
|
||
|
||
[Catalogue](../CodeTutorials/Glossary.md#Catalogue) |
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
Oops, something went wrong.