Skip to content
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

ISSUE-46: Show list of sentences #87

Merged
merged 5 commits into from
Jan 5, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions DSL.Resql/get_corpora.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SELECT * FROM list_corpora_tasks_paginated(:where_condition, :sort_condition, :page, :page_size);
turnerrainer marked this conversation as resolved.
Show resolved Hide resolved
1 change: 1 addition & 0 deletions DSL.Resql/get_task.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
select *, sentences_annotations::text AS predictions from Corpora_Tasks where corpora_id = :corpora_id and id = :id ORDER BY created_at DESC limit 1;
turnerrainer marked this conversation as resolved.
Show resolved Hide resolved
11 changes: 11 additions & 0 deletions DSL.Ruuter/GET/task.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
get_task:
call: http.post
args:
url: http://resql:8082/get_task
body:
id: ${parseInt(incoming.params.id)}
corpora_id: ${incoming.params.project}
result: request_response

return_value:
return: ${request_response.response.body[0]}
13 changes: 13 additions & 0 deletions DSL.Ruuter/GET/tasks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
list_task_by_corpora_id:
call: http.post
args:
url: http://resql:8082/get_corpora
body:
page: ${incoming.params.page}
page_size: ${incoming.params.page_size}
where_condition: ${incoming.params.where_condition}
sort_condition: ${incoming.params.sort_condition}
result: request_response

return:
return: ${request_response.response.body}
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,30 @@ https://github.com/buerokratt/Data-Anonymizer/blob/main/DSL.Resql/insert_regex.s

https://github.com/buerokratt/Data-Anonymizer/blob/main/DSL.Ruuter/POST/regex.yml

```
```

### Show list of sentences

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

https://github.com/buerokratt/Data-Anonymizer/blob/main/DSL.Resql/get_corpora.sql

```
```
turnerrainer marked this conversation as resolved.
Show resolved Hide resolved

https://github.com/buerokratt/Data-Anonymizer/blob/main/DSL.Ruuter/GET/tasks.yml

```
```
turnerrainer marked this conversation as resolved.
Show resolved Hide resolved

https://github.com/buerokratt/Data-Anonymizer/blob/main/DSL.Resql/get_task.sql

```
```
turnerrainer marked this conversation as resolved.
Show resolved Hide resolved

https://github.com/buerokratt/Data-Anonymizer/blob/main/DSL.Ruuter/GET/task.yml

```
```
turnerrainer marked this conversation as resolved.
Show resolved Hide resolved