Skip to content

Commit

Permalink
Merge pull request #109 from buerokratt/ISSUE-63
Browse files Browse the repository at this point in the history
Issue 63
  • Loading branch information
alimuhammadahmer authored Jan 12, 2023
2 parents 58a68b9 + f381238 commit 6e46fb6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Docker_Project/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,9 @@ https://github.com/buerokratt/Data-Anonymizer/issues/69
https://github.com/buerokratt/Data-Anonymizer/issues/60

Add [Ruuter DSL File](Ruuter/DSL/GET/regex.yml) and [Resql Query](Resql/templates/production/list_regex.sql) to list regex patterns.

### Delete added Regex pattern from database

https://github.com/buerokratt/Data-Anonymizer/issues/63

Add [Ruuter DSL File](Ruuter/DSL/GET/delete_regex.yml) and [Resql Query](Resql/templates/production/delete_regex.sql) to delete a regex pattern.
1 change: 1 addition & 0 deletions Docker_Project/Resql/templates/production/delete_regex.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
insert into Regex_Entity (id, regex, entity, active) select id, regex, entity, False from Regex_Entity where id = :id ORDER BY created_at DESC limit 1;
9 changes: 9 additions & 0 deletions Docker_Project/Ruuter/DSL/GET/delete_regex.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
delete_regex:
call: http.post
args:
url: http://resql:8082/delete_regex
body:
id: ${parseInt(incoming.params.id)}

return_value:
return: "success"

0 comments on commit 6e46fb6

Please sign in to comment.