buerokratt / Training-Module

MIT License
2 stars 21 forks source link

REST service to update the name of a specified Rasa regex #339

Open Kristjan259 opened 11 months ago

Kristjan259 commented 11 months ago

AS AN Architect I WANT TO have a REST service to update an existing Rasa regex SO THAT there wouldn't be any duplicate services for it

Acceptance Criteria

Examples

data/asukoht_nlu.yml

Input

version: "3.0"
nlu:
- regex: asukoht
  examples: |
    - abja[- ]paluoja
    - antsla
    - elva
    - haapsalu

Output after making a request to update regex name"asukoht" to "asukohad" and the name of the file is updated from "asukoht.yml" to "asukohad.yml"

version: "3.0"
nlu:
- regex: asukohad
  examples: |
    - abja[- ]paluoja
    - antsla
    - elva
    - haapsalu
ExiRain commented 11 months ago

Pull request.

ffrose commented 10 months ago

BUG - unable to update the name of a specific regex.

Image

ExiRain commented 10 months ago

Pull request with fix

ffrose commented 9 months ago

BUG - Unable to update the name of a regex.

Image

ExiRain commented 9 months ago

Pull request fix to renaming

ffrose commented 9 months ago

Works as intended.