Skip to content

Commit

Permalink
Merge pull request #108 from buerokratt/ISSUE-86
Browse files Browse the repository at this point in the history
Issue 60
  • Loading branch information
alimuhammadahmer authored Jan 12, 2023
2 parents 50d3f31 + 576ee8d commit 58a68b9
Show file tree
Hide file tree
Showing 3 changed files with 15 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 @@ -26,3 +26,9 @@ https://github.com/buerokratt/Data-Anonymizer/issues/69

- Add [Ruuter DSL File](Ruuter/DSL/POST/corpora_info.yml) and [Resql Query](Resql/templates/production/insert_corpora_info.sql) to create a corpora info record.
- Add [Ruuter DSL File](Ruuter/DSL/POST/corpora.yml) and [Resql Query](Resql/templates/production/insert_corpora_task.sql) to create tasks in bulk (upload corpora).

### View list of Regex patterns added by user

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.
1 change: 1 addition & 0 deletions Docker_Project/Resql/templates/production/list_regex.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
select Regex_Entity.id, Regex_Entity.entity, Regex_Entity.regex from Regex_Entity join (select Regex_Entity."id", max(Regex_Entity."created_at") as most_recent_record from Regex_Entity group by id) p ON (Regex_Entity.id = p.id and Regex_Entity.created_at = p.most_recent_record) where Regex_Entity.active = True;
8 changes: 8 additions & 0 deletions Docker_Project/Ruuter/DSL/GET/regex.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
list_regex:
call: http.post
args:
url: http://resql:8082/list_regex
result: request_response

return_value:
return: ${request_response.response.body}

0 comments on commit 58a68b9

Please sign in to comment.