Open rasmusei opened 2 years ago
Added following Ruuter endpoints:
POST /cs-set-organization-working-time
GET /cs-get-organization-working-time
example cURL queries(replace URL and customJwtCookie with appropriate values if needed):
curl --location --request POST 'http://localhost:9091/cs-set-organization-working-time' \ --header 'Cookie: JSESSIONID=2991711AB1D8A47D97A9A10C21A3F482; customJwtCookie=eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiIiLCJsYXN0TmFtZSI6ImhlbGVyaSIsImlkQ29kZSI6IkVFNDk0MDIyMDY1MjgiLCJkaXNwbGF5TmFtZSI6ImhlbGVtYW5kIiwiaXNzIjoiYnlrLmJ1ZXJva3JhdHQuZWUiLCJsb2dpbiI6ImhlbGVyaSIsImNzYUVtYWlsIjoia2xpZW50QG1haWwuZWUiLCJhdXRob3JpdGllcyI6WyJST0xFX0FETUlOSVNUUkFUT1IiXSwiZmlyc3ROYW1lIjoiaGVsZXJpIiwiZXhwIjoxNjcyMjMwOTQzLCJpYXQiOjE2NzIyMjM3NDMsImp0aSI6IjY4NWE3YTVkLWFjMzQtNDQzMi05YzIxLTkyMWU5ZTdhZTFiMCIsImNzYVRpdGxlIjoia2xpZW50In0.fsx38w5lfLHU7Hs2sFW--nc6wbDRfo989Ka8dXe_bAjY36r7nAx3xFS79UqwIW6Qtu2LUSzFOfj6U-2fU3AU-uxMLUcCz1gBUdkvhA5NapvTbnML4wOULiYyxfg0Cn3qR1X7uDKf6fHWKjNrnpvOHNr92dpXYVE_rmbfg0IRTgCK6uUOY-J_lXU-jcZoU6Gmnp0FM0BQ8JYujiZYYz4HN1wmHZor5zlRgtMnEy6oXTaThU6bJ98FKsaT1bYogbtXWpenUJhmJUHn1iaE6ehhsVqCV69ZTbWnKS3g9PRQqWRe3jDlOn2KoszHJIV9rnla39Y6oQnVpPBO9Un_eblY0g' \ --header 'Content-Type: application/json' \ --data-raw ' { "organizationWorkingTimeStartISO": "02-02-2023", "organizationWorkingTimeEndISO": "02-09-2023" }'
curl --location --request GET 'http://localhost:9091/cs-get-organization-working-time' \ --header 'Cookie: JSESSIONID=2991711AB1D8A47D97A9A10C21A3F482; customJwtCookie=eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiIiLCJsYXN0TmFtZSI6ImhlbGVyaSIsImlkQ29kZSI6IkVFNDk0MDIyMDY1MjgiLCJkaXNwbGF5TmFtZSI6ImhlbGVtYW5kIiwiaXNzIjoiYnlrLmJ1ZXJva3JhdHQuZWUiLCJsb2dpbiI6ImhlbGVyaSIsImNzYUVtYWlsIjoia2xpZW50QG1haWwuZWUiLCJhdXRob3JpdGllcyI6WyJST0xFX0FETUlOSVNUUkFUT1IiXSwiZmlyc3ROYW1lIjoiaGVsZXJpIiwiZXhwIjoxNjcyMjMwOTQzLCJpYXQiOjE2NzIyMjM3NDMsImp0aSI6IjY4NWE3YTVkLWFjMzQtNDQzMi05YzIxLTkyMWU5ZTdhZTFiMCIsImNzYVRpdGxlIjoia2xpZW50In0.fsx38w5lfLHU7Hs2sFW--nc6wbDRfo989Ka8dXe_bAjY36r7nAx3xFS79UqwIW6Qtu2LUSzFOfj6U-2fU3AU-uxMLUcCz1gBUdkvhA5NapvTbnML4wOULiYyxfg0Cn3qR1X7uDKf6fHWKjNrnpvOHNr92dpXYVE_rmbfg0IRTgCK6uUOY-J_lXU-jcZoU6Gmnp0FM0BQ8JYujiZYYz4HN1wmHZor5zlRgtMnEy6oXTaThU6bJ98FKsaT1bYogbtXWpenUJhmJUHn1iaE6ehhsVqCV69ZTbWnKS3g9PRQqWRe3jDlOn2KoszHJIV9rnla39Y6oQnVpPBO9Un_eblY0g'
@rasmusei Prototype updated according to AC-s. !NB DSL requirements need to be updated. Currently weekdays and national holidays are not accepted by DSL.
BUG - now "Riiklikud pühad" is under settings. It should be on the bottom with all other days. As in Figma design.
@janinakimtrohlev Could you please split the bugs into separate comments so i can reference them in the PR
BUG - now there is no option "Nädalavahetustel suletud" (closed on weekends) and "Kõigil tööpäevadel sama"(The same on all working days). I should be option where i can choose : is it closed on weekends or no and is it the same time on all workdays or no. It also should be on the bottom. I put here Figma design picture , like it should be.
BUG - now i can choose for all days start time and end time as one. But It should be able, to put start and end time to each day. Like in figma design picture. Right now view of "Asutuste tööaeg" is like in this picture.
Acceptance Criteria:
@1AhmedYasser separated
Blocked by #1
@janinakimtrohlev please check it again
@1AhmedYasser The task is still behind the bugs from before.
@KlviG hetkel right now i can´t change the time of working hours. It gives error
Tested and done
AS AN Administrator I WANT TO be able to set or modify organization's working time SO THAT after working hours chatbot will ask End Users contact information when Bürokratt is not able to reply itself
Acceptance Criteria
GUI Story's:
DSL Story's: