Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion DSL/Resql/training/POST/add-intent.sql
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
INSERT INTO intent (intent, created, status, isForService)
VALUES (:intent, CURRENT_TIMESTAMP, :status, false);
VALUES (:intent, CURRENT_TIMESTAMP, :status, :isForService);
2 changes: 1 addition & 1 deletion DSL/Resql/training/POST/get-intent-last-changed.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SELECT id, intent, status, created
SELECT id, intent, status, created, isForService
FROM intent
WHERE intent = :intent AND status = 'ACTIVE'
ORDER BY created DESC
Expand Down
2 changes: 0 additions & 2 deletions DSL/Resql/training/POST/mark-intent-for-service.sql

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ validateIntentExists:
updateInDatabase:
call: http.post
args:
url: "[#TRAINING_RESQL]/mark-intent-for-service"
url: "[#TRAINING_RESQL]/add-intent"
body:
intent: ${intent}
isForService: ${isForService}
Expand Down
1 change: 1 addition & 0 deletions DSL/Ruuter.private/training/POST/rasa/intents/add.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ addInDatabase:
body:
intent: ${incoming.body.name}
status: "ACTIVE"
isForService: false
result: addIntentResult

returnSuccess:
Expand Down
1 change: 1 addition & 0 deletions DSL/Ruuter.private/training/POST/rasa/intents/delete.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ deleteInDatabase:
body:
intent: ${incoming.body.name}
status: "DELETED"
isForService: false
result: getIntentLastChangedResult

getRuleByIntent:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,22 @@ addNewIntentInPipeline:
input: ${intentYaml.response.body.json}
result: updateSearchResult

getIntentLatestState:
call: http.post
args:
url: "[#TRAINING_RESQL]/get-intent-last-changed"
body:
intent: ${incoming.body.intentName}
result: latestStateRes

addInDatabase:
call: http.post
args:
url: "[#TRAINING_RESQL]/add-intent"
body:
intent: ${incoming.body.intentName}
status: "ACTIVE"
isForService: ${latestStateRes.response.body[0].isforservice ?? false}
result: addInDatabaseResult

returnSuccess:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,22 @@ addNewIntentInPipeline:
input: ${intentYaml.response.body.json}
result: updateSearchResult

getIntentLatestState:
call: http.post
args:
url: "[#TRAINING_RESQL]/get-intent-last-changed"
body:
intent: ${incoming.body.intentName}
result: latestStateRes

addInDatabase:
call: http.post
args:
url: "[#TRAINING_RESQL]/add-intent"
body:
intent: ${incoming.body.intentName}
status: "ACTIVE"
isForService: ${latestStateRes.response.body[0].isforservice ?? false}
result: addInDatabaseResult

saveIntentFile:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,22 @@ addIntentInPipeline:
input: ${intentYaml.response.body.json}
result: updateSearchResult

getIntentLatestState:
call: http.post
args:
url: "[#TRAINING_RESQL]/get-intent-last-changed"
body:
intent: ${incoming.body.intentName}
result: latestStateRes

addInDatabase:
call: http.post
args:
url: "[#TRAINING_RESQL]/add-intent"
body:
intent: ${incoming.body.intentName}
status: "ACTIVE"
isForService: ${latestStateRes.response.body[0].isforservice ?? false}
result: addInDatabaseResult

saveIntentFile:
Expand Down
11 changes: 10 additions & 1 deletion DSL/Ruuter.private/training/POST/rasa/intents/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -288,13 +288,22 @@ addNewIntentInPipeline:
input: ${intentYaml.response.body.json}
result: updateSearchResult

getIntentLatestState:
call: http.post
args:
url: "[#TRAINING_RESQL]/get-intent-last-changed"
body:
intent: ${intent_old_name}
result: latestStateRes

addInDatabase:
call: http.post
args:
url: "[#TRAINING_RESQL]/add-intent"
body:
intent: ${incoming.body.newName}
intent: ${intent}
status: "ACTIVE"
isForService: ${latestStateRes.response.body[0].isforservice ?? false}
result: addInDatabaseResult

deleteOldIntentFile:
Expand Down
2 changes: 1 addition & 1 deletion GUI/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@buerokratt-ria/header": "^0.1.46",
"@buerokratt-ria/menu": "^0.2.9",
"@buerokratt-ria/styles": "^0.0.1",
"@buerokratt-ria/common-gui-components": "^0.0.30",
"@buerokratt-ria/common-gui-components": "^0.0.32",
"@fontsource/roboto": "^4.5.8",
"@formkit/auto-animate": "^1.0.0-beta.5",
"@radix-ui/react-accessible-icon": "^1.0.1",
Expand Down
Loading