Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
215 commits
Select commit Hold shift + click to select a range
4a931bc
Merge pull request #400 from buerokratt/dev
jaX10bt Jan 31, 2025
2f4071f
docs: update version
actions-user Jan 31, 2025
7b04eab
Update release.env
jaX10bt Jan 31, 2025
41cde2b
Merge pull request #402 from buerokratt/dev
jaX10bt Feb 4, 2025
bfbbd45
docs: update version
actions-user Feb 4, 2025
48cefa4
Merge pull request #404 from buerokratt/dev
jaX10bt Feb 5, 2025
78b367b
docs: update version
actions-user Feb 5, 2025
1293016
Merge pull request #406 from buerokratt/dev
jaX10bt Feb 6, 2025
c00a54a
docs: update version
actions-user Feb 6, 2025
f8d51bf
Merge pull request #408 from buerokratt/dev
jaX10bt Feb 6, 2025
b578b7a
docs: update version
actions-user Feb 6, 2025
06c00d1
Merge pull request #422 from buerokratt/dev
jaX10bt Mar 6, 2025
51c36b6
docs: update version
actions-user Mar 6, 2025
7a464be
Merge pull request #431 from buerokratt/dev
jaX10bt Mar 13, 2025
22ab142
docs: update version
actions-user Mar 13, 2025
2845f64
Merge pull request #445 from buerokratt/dev
jaX10bt Apr 7, 2025
3e9e394
docs: update version
actions-user Apr 7, 2025
3c421ee
Delete CHANGELOG.md
jaX10bt Apr 14, 2025
d1a4671
Merge pull request #461 from buerokratt/dev
jaX10bt Apr 21, 2025
7319e72
docs: update version
actions-user Apr 21, 2025
b91f8a1
Merge pull request #462 from buerokratt/dev
jaX10bt Apr 21, 2025
21762fa
docs: update version
actions-user Apr 21, 2025
1dd6c5a
Merge pull request #487 from buerokratt/dev
varmoh Apr 30, 2025
1aa4b9d
docs: update version
actions-user Apr 30, 2025
b5459cc
Merge pull request #488 from buerokratt/dev
varmoh Apr 30, 2025
3cd0d9c
docs: update version
actions-user Apr 30, 2025
5d03a01
Merge pull request #498 from buerokratt/dev
varmoh May 6, 2025
b857e33
docs: update version
actions-user May 6, 2025
70f2cac
Merge pull request #506 from buerokratt/dev
varmoh May 7, 2025
d5f3b2f
docs: update version
actions-user May 7, 2025
56fe136
Merge pull request #512 from buerokratt/dev
varmoh May 8, 2025
eb39f80
docs: update version
actions-user May 8, 2025
840aa68
Merge pull request #517 from buerokratt/dev
varmoh May 9, 2025
ddbae1e
docs: update version
actions-user May 9, 2025
c3889f8
Merge pull request #530 from buerokratt/dev
varmoh May 16, 2025
b4e48e2
docs: update version
actions-user May 16, 2025
cbfd39f
Merge pull request #541 from buerokratt/dev
varmoh May 21, 2025
e440d2f
docs: update version
actions-user May 21, 2025
a046cb0
Merge pull request #558 from buerokratt/dev
KlviG Jun 3, 2025
b511328
docs: update version
actions-user Jun 3, 2025
98d765c
Merge pull request #569 from buerokratt/dev
ffrose Jun 5, 2025
c723c92
docs: update version
actions-user Jun 5, 2025
52bb900
Merge pull request #576 from buerokratt/dev
varmoh Jun 11, 2025
4742733
docs: update version
actions-user Jun 11, 2025
5ae003d
Merge pull request #577 from buerokratt/dev
jaX10bt Jun 16, 2025
bea3051
docs: update version
actions-user Jun 16, 2025
b8d5ad2
Merge pull request #581 from buerokratt/dev
ffrose Jun 17, 2025
83c6fb0
docs: update version
actions-user Jun 17, 2025
bd031b9
Merge pull request #591 from buerokratt/dev
ffrose Jul 4, 2025
3854c44
docs: update version
actions-user Jul 4, 2025
b63060c
Merge pull request #601 from buerokratt/dev
ffrose Jul 10, 2025
147052f
docs: update version
actions-user Jul 10, 2025
1ea8198
Merge pull request #603 from buerokratt/dev
ffrose Jul 11, 2025
2415505
docs: update version
actions-user Jul 11, 2025
2fe0f94
Merge pull request #612 from buerokratt/dev
ffrose Jul 17, 2025
3077165
docs: update version
actions-user Jul 17, 2025
229084d
Merge pull request #614 from buerokratt/dev
ffrose Jul 17, 2025
c125e20
docs: update version
actions-user Jul 17, 2025
9bba869
Merge pull request #619 from buerokratt/dev
ffrose Jul 18, 2025
89c23b9
docs: update version
actions-user Jul 18, 2025
b904444
Merge pull request #632 from buerokratt/dev
ffrose Jul 23, 2025
17c1198
docs: update version
actions-user Jul 23, 2025
688a6d2
Merge pull request #650 from buerokratt/dev
ffrose Jul 25, 2025
28f8c64
docs: update version
actions-user Jul 25, 2025
c4f7205
Merge pull request #657 from buerokratt/dev
ffrose Jul 31, 2025
7d90ffe
docs: update version
actions-user Jul 31, 2025
4bd1a19
Merge pull request #663 from buerokratt/dev
jaX10bt Aug 5, 2025
d2346fd
docs: update version
actions-user Aug 5, 2025
1f755e1
Merge pull request #670 from buerokratt/dev
jaX10bt Aug 7, 2025
33ff1e5
docs: update version
actions-user Aug 7, 2025
7a2dec4
Merge pull request #673 from buerokratt/dev
jaX10bt Aug 7, 2025
4e0f87e
docs: update version
actions-user Aug 7, 2025
cd7262a
Merge pull request #684 from buerokratt/dev
jaX10bt Aug 15, 2025
898f645
docs: update version
actions-user Aug 15, 2025
def2fac
Merge pull request #693 from buerokratt/dev
ffrose Aug 21, 2025
fe2d761
docs: update version
actions-user Aug 21, 2025
3cfe78b
Merge pull request #694 from buerokratt/dev
ffrose Aug 21, 2025
063b3ae
docs: update version
actions-user Aug 21, 2025
f3ff5ef
Merge pull request #704 from buerokratt/dev
ffrose Aug 27, 2025
1914f43
docs: update version
actions-user Aug 27, 2025
5ecdbc7
Merge pull request #708 from buerokratt/dev
KlviG Aug 29, 2025
f34836d
docs: update version
actions-user Aug 29, 2025
89fff2f
Merge pull request #718 from buerokratt/dev
ffrose Sep 3, 2025
a2e7ad6
docs: update version
actions-user Sep 3, 2025
fde0a03
Merge pull request #724 from buerokratt/dev
ffrose Sep 4, 2025
4007102
docs: update version
actions-user Sep 4, 2025
db27152
Merge pull request #738 from buerokratt/dev
ffrose Sep 10, 2025
c0d26ce
docs: update version
actions-user Sep 10, 2025
d526574
Merge pull request #740 from buerokratt/dev
ffrose Sep 10, 2025
dee4e84
docs: update version
actions-user Sep 10, 2025
9572d37
Merge pull request #822 from buerokratt/dev
ffrose Nov 26, 2025
8eece06
docs: update version
actions-user Nov 26, 2025
04d3b86
Merge pull request #824 from buerokratt/test
ffrose Dec 1, 2025
c9c4af0
docs: update version
actions-user Dec 1, 2025
4f6df5b
chore(1958): bumped menu package version
1AhmedYasser Jun 9, 2026
680f5cc
fix(1033): Passed ChatId and Author Id to next service (#1069)
1AhmedYasser Jun 12, 2026
e811a5d
chore(1068): Added chat id to predefinedInputKeys (#1071)
1AhmedYasser Jun 12, 2026
ef79980
fix(1059): Fixed Branch Edge Merge After Node Deletion
1AhmedYasser Jun 12, 2026
26fbb00
fix(1059): Fixed format
1AhmedYasser Jun 12, 2026
80e0213
fix(1062): Fixed Loop Target Layout Breaking Upstream Nodes
1AhmedYasser Jun 12, 2026
030bb25
Merge pull request #1073 from 1AhmedYasser/Loop-Target-Layout-Breaks-…
ffrose Jun 15, 2026
69f29b3
Merge pull request #1072 from 1AhmedYasser/Branch-Edge-Merge-After-No…
ffrose Jun 15, 2026
9ba69a8
Merge pull request #1061 from 1AhmedYasser/knowledge-base-menu-migration
ffrose Jun 15, 2026
73fb412
fix(1066): Fixed conditional label on reconnect (#1077)
1AhmedYasser Jun 18, 2026
d31b147
fix(1075): Fixed conditional sucess and failure switch (#1078)
1AhmedYasser Jun 18, 2026
30d70fc
chore(1063): Added conditional node output handling (#1079)
1AhmedYasser Jun 18, 2026
bf2a4b5
docs: update version
actions-user Jun 22, 2026
0a124ee
Merge pull request #1083 from buerokratt/v3.3.1
KlviG Jun 22, 2026
847b7d6
docs: update version
actions-user Jun 22, 2026
3c0e89e
Node Dependency Highlighting (#1081)
1AhmedYasser Jun 29, 2026
b9f486d
Elements Modal Cleanup (#1082)
1AhmedYasser Jun 29, 2026
712248f
Add Endpoint Nonce Support (#1089)
1AhmedYasser Jun 30, 2026
2c66182
fix(1058): Fixed node connected nodes highlighting
1AhmedYasser Jul 1, 2026
88bcec7
fix(1092): Fixed Ctrl+Z undo nodes while focusing to text field
1AhmedYasser Jul 2, 2026
ffda744
chore(1092): Enhance isEditableTarget
1AhmedYasser Jul 2, 2026
9a853f4
fix(1067): Added Skeleton Loading
1AhmedYasser Jul 2, 2026
582b69a
fix(1063): Fixed conditional mcq condition connect
1AhmedYasser Jul 2, 2026
1dc725d
fix(1063): Fixed mcq path deletion
1AhmedYasser Jul 2, 2026
d2f8c2b
fix(1090): Fixed node import only
1AhmedYasser Jul 2, 2026
f55b3f7
chore(1068): Added service name to previous variables
1AhmedYasser Jul 5, 2026
be08057
fix(1091): Changed bulletMarker
1AhmedYasser Jul 5, 2026
3e371b6
fix(1093): Fixed italic rendering
1AhmedYasser Jul 5, 2026
d832662
fix(0): Rename allowList to allowlist (#1080)
1AhmedYasser Jul 6, 2026
e3d4ba3
chore(2053): Modified toast position and appearance
1AhmedYasser Jul 7, 2026
c3ba60b
chore(2053): fixed toast animation
1AhmedYasser Jul 7, 2026
ea68568
fix(2053): fixed format
1AhmedYasser Jul 7, 2026
55e00b7
chore(2053): Modified service toast to toast
1AhmedYasser Jul 7, 2026
c717e78
chore(2053): Bumped package version
1AhmedYasser Jul 7, 2026
fe215cf
Merge pull request #1095 from 1AhmedYasser/fix-node-highlight
ffrose Jul 8, 2026
a5c7247
Merge pull request #1097 from 1AhmedYasser/add-skeleton-loading
ffrose Jul 8, 2026
d533a06
Merge pull request #1101 from 1AhmedYasser/Add-service-name-to-previo…
ffrose Jul 8, 2026
491c031
Merge pull request #1100 from 1AhmedYasser/Bug-Service-import-breaks-…
ffrose Jul 8, 2026
d63c853
Merge pull request #1102 from 1AhmedYasser/fix-Test-Widget-ignores-bu…
ffrose Jul 8, 2026
5d6124f
Merge pull request #1096 from 1AhmedYasser/Bug-Undo-affects-canvas-wh…
ffrose Jul 8, 2026
23c8f2e
Merge pull request #1103 from 1AhmedYasser/fix--Tab-indentation-rende…
ffrose Jul 8, 2026
c69f131
Merge pull request #1098 from 1AhmedYasser/bug-conditional-mcq-connect
ffrose Jul 8, 2026
176ae30
fix(1058): Fixed default highlighting
1AhmedYasser Jul 9, 2026
e37b3b6
fix(1110): Fixed ordered list alignment
1AhmedYasser Jul 9, 2026
97e82d4
chore(1099): Added service navigation
1AhmedYasser Jul 9, 2026
2634c78
chore(1099): Fixed title dropdown width
1AhmedYasser Jul 9, 2026
7e4c66b
chore(1099): Added chevron
1AhmedYasser Jul 9, 2026
8448a7b
fix(1099): Fixed service selection overflow
1AhmedYasser Jul 9, 2026
b99ab77
fix(1099): Fixed format
1AhmedYasser Jul 9, 2026
efbef93
fix(1099): Fixed lint
1AhmedYasser Jul 9, 2026
50215ef
chore(1112): Added azure storage bypass
1AhmedYasser Jul 9, 2026
8407563
chore(1105): Added nonce support to service headers
1AhmedYasser Jul 12, 2026
bd6c587
chore(1105): Added Nonce Support to test services
1AhmedYasser Jul 12, 2026
475fe22
chore(1107): Updated package version
1AhmedYasser Jul 12, 2026
90fd7b0
chore(1106): Replaced react-quill with react-quill-new
1AhmedYasser Jul 12, 2026
3e03b98
fix(1106): Fixed drag and drop on react-quill-new
1AhmedYasser Jul 12, 2026
ef84b92
fix(1106): Fixed format
1AhmedYasser Jul 12, 2026
26d0582
Merge pull request #1119 from 1AhmedYasser/Replace-React-Quill-with-a…
ffrose Jul 14, 2026
7310275
Merge pull request #1115 from 1AhmedYasser/Move-Between-Services-from…
ffrose Jul 14, 2026
fdef70a
Merge pull request #1114 from 1AhmedYasser/Fix-Order-list-alignment
ffrose Jul 14, 2026
6061ec3
Merge pull request #1116 from 1AhmedYasser/Add-Azure-Storage-Bypass-C…
ffrose Jul 14, 2026
171c831
Merge pull request #1113 from 1AhmedYasser/fix-default-hilighting
ffrose Jul 14, 2026
6d59d7d
Merge pull request #1104 from 1AhmedYasser/Reposition-system-notifica…
ffrose Jul 14, 2026
36be00b
chore(1105): Added external auth config to ruuter
1AhmedYasser Jul 16, 2026
f933e0d
chore(1105): Removed outbound requests config
1AhmedYasser Jul 16, 2026
11d2cba
fix(1099): Fixed service redirect
1AhmedYasser Jul 16, 2026
8d5737e
fix(1099): Added toast title
1AhmedYasser Jul 16, 2026
e15bfe2
chore(1120): Added API Responses section
1AhmedYasser Jul 16, 2026
2a5d92a
chore(1123): Enhanced Conditional Node Saving
1AhmedYasser Jul 26, 2026
1e2f3f7
fix(1123): Remvoed comment
1AhmedYasser Jul 26, 2026
181a8d2
chore(1123): Removed comments
1AhmedYasser Jul 26, 2026
4d1279f
chore(1123): Removed comment
1AhmedYasser Jul 26, 2026
d21a9ef
chore(1123): Addressed PR Comments
1AhmedYasser Jul 27, 2026
4f3e877
chore(1118): synced with v3.3.1
1AhmedYasser Jul 30, 2026
2e9280a
fix(1105): return 401 instead of 403 for guard auth failures
1AhmedYasser Jul 30, 2026
8f377ad
chore(2130): Handled deleted / editied service in next service
1AhmedYasser Jul 31, 2026
9062df5
chore(2130): Fixed tests
1AhmedYasser Jul 31, 2026
6f638da
chore(2130): Added readonly
1AhmedYasser Jul 31, 2026
4a7390a
fix(1058): strip out selection on save/fetch service
1AhmedYasser Aug 11, 2026
807d42e
fix(1058): Fixed lint
1AhmedYasser Aug 12, 2026
e3d1187
fix(1099): fix tests
1AhmedYasser Aug 12, 2026
5a2fddf
Merge pull request #1139 from 1AhmedYasser/fix-node-highlighting-cases
KlviG Aug 12, 2026
be77b81
Merge pull request #1125 from 1AhmedYasser/fix-same-service-redirect
KlviG Aug 12, 2026
55d25f3
Merge pull request #1134 from 1AhmedYasser/Add-nonce-support-for-trig…
KlviG Aug 12, 2026
33764ef
Merge pull request #1118 from 1AhmedYasser/Update-the-sanitize-html-l…
KlviG Aug 12, 2026
d5095f3
Merge pull request #1126 from 1AhmedYasser/Display-endpoint-names-in-…
KlviG Aug 12, 2026
ae1f81e
Merge pull request #1132 from 1AhmedYasser/Enchance-conditional-node-…
KlviG Aug 12, 2026
ff8d6ef
chore(1138): Fixed conficts
1AhmedYasser Aug 12, 2026
728f3d5
chore(1138): Fixed build
1AhmedYasser Aug 12, 2026
e6a7516
Merge pull request #1135 from 1AhmedYasser/Deleted-Next-service-is-st…
KlviG Aug 12, 2026
8ebb1bb
Update .env.gui
KlviG Aug 12, 2026
625dd4b
chore(2150): Removed dev and test branches from check version
1AhmedYasser Aug 13, 2026
77d84cc
chore(2150): Modifed check version to support new versioning approach
1AhmedYasser Aug 13, 2026
2f6ab19
Merge pull request #1143 from 1AhmedYasser/Restructure-check-version-…
KlviG Aug 17, 2026
8f20583
Update release.env
KlviG Aug 17, 2026
3e75dcb
Merge branch 'main' into v3.3.1
KlviG Aug 17, 2026
38ff911
Merge pull request #1144 from buerokratt/v3.3.1
KlviG Aug 17, 2026
6b943b9
Update release.env
KlviG Aug 17, 2026
ceb3547
Merge pull request #1145 from buerokratt/v3.3.1
KlviG Aug 17, 2026
7206350
Update .env.gui
KlviG Aug 17, 2026
4365610
fix(1105): Added nonce support to jump to service
1AhmedYasser Aug 17, 2026
3747626
fix(1105): Added service status to jump to service
1AhmedYasser Aug 17, 2026
a060279
chore(2150): Added env.gui to gitignore
1AhmedYasser Aug 17, 2026
06acd26
Merge pull request #1147 from 1AhmedYasser/Restructure-check-version-…
ffrose Aug 18, 2026
bbba4c8
Update ci-build-image.yml
ffrose Aug 18, 2026
fc8d132
Update .env.gui
ffrose Aug 18, 2026
1eeb1f1
Merge pull request #1146 from 1AhmedYasser/Fix-Jump-To-Service-Nonce
ffrose Aug 18, 2026
6a979c2
Update .env.gui
ffrose Aug 18, 2026
12fa7cf
fix(1149): Fixed export modal search
1AhmedYasser Aug 24, 2026
72ad1b2
fix(1150): Fixed deleting shared prefix service files
1AhmedYasser Aug 24, 2026
bd787de
chore(1149): Added search body field in main service list
1AhmedYasser Aug 24, 2026
fcdfa81
Merge pull request #1152 from 1AhmedYasser/Deleting-service-removes-s…
ffrose Aug 24, 2026
338bb90
Merge pull request #1151 from 1AhmedYasser/Export-modal-service-searc…
ffrose Aug 24, 2026
2099284
Update .env.gui
ffrose Aug 24, 2026
91e3930
Update release.env
ffrose Aug 24, 2026
a065268
Merge pull request #1153 from buerokratt/v3.3.1
ffrose Aug 24, 2026
6db6c86
fix(2163): Saved to local storage
1AhmedYasser Aug 25, 2026
7be76e6
Update ci-build-image.yml
ffrose Aug 26, 2026
f0f11eb
Merge pull request #1155 from 1AhmedYasser/Result-count-on-Services-p…
ffrose Aug 27, 2026
4f65fae
Update .env.gui
ffrose Aug 27, 2026
9908d4c
Update release.env
ffrose Sep 3, 2026
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
6 changes: 3 additions & 3 deletions .env.gui
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
RELEASE=PRE-ALPHA-test
VERSION=1
BUILD=1
FIX=15
VERSION=3
BUILD=3
FIX=4-test
23 changes: 1 addition & 22 deletions .github/workflows/check-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Check Version

on:
push:
branches: ["test", "stage", "main"]
branches: ["main"]
workflow_dispatch:

env:
Expand All @@ -20,25 +20,8 @@ jobs:
- name: Docker Setup BuildX
uses: docker/setup-buildx-action@v2

- name: Bump Patch Version
run: npm run bump-patch
if: ${{ env.BRANCH == 'test' }}

- name: Sync Version
run: npm run sync-version
if: ${{ env.BRANCH != 'test' }}

- name: Generate Changelog
run: npm run changelog
if: ${{ env.BRANCH == 'main' }}

- name: Push changes to repo
run: |
git config --global user.name ${{ secrets.ADMIN_NAME }}
git config --global user.email ${{ secrets.ADMIN_EMAIL }}
git add .
git commit -m "docs: update version"
git push

- name: Load environment variables
run: |
Expand All @@ -54,20 +37,16 @@ jobs:
run: |
echo "Building Docker image for branch: ${{ env.BRANCH }} major: ${{ env.MAJOR }} minor: ${{ env.MINOR }} patch: ${{ env.PATCH }}"
cd GUI && docker image build --tag $DOCKER_TAG_CUSTOM --no-cache .
if: ${{ env.BRANCH == 'test' }}

- name: Log in to GitHub container registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin

- name: Push Docker image to GitHub Packages
run: |
echo "Pushing Docker image to GitHub Packages"
docker push $DOCKER_TAG_CUSTOM
if: ${{ env.BRANCH == 'test' }}

- name: Create Release
uses: softprops/action-gh-release@v1
if: ${{ env.BRANCH == 'main' }}
with:
tag_name: v${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.PATCH }}
generate_release_notes: true
Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/ci-build-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build and publish GUI

on:
push:
branches: [ v3.3.2 ]
paths:
- '.env.gui'

jobs:
PackageDeploy:
runs-on: ubuntu-latest

steps:
- name: Debugging Step
run: |
echo "Checking runner status..."
# Add more debugging commands as needed

- uses: actions/checkout@v2

- name: Docker Setup BuildX
uses: docker/setup-buildx-action@v2

- name: Load environment variables and set them
run: |
if [ -f .env.gui ]; then
export $(cat .env.gui | grep -v '^#' | xargs)
fi
echo "RELEASE=$RELEASE" >> $GITHUB_ENV
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "BUILD=$BUILD" >> $GITHUB_ENV
echo "FIX=$FIX" >> $GITHUB_ENV
- name: Set repo
run: |
LOWER_CASE_GITHUB_REPOSITORY=$(echo $GITHUB_REPOSITORY | tr '[:upper:]' '[:lower:]')
echo "DOCKER_TAG_CUSTOM=ghcr.io/${LOWER_CASE_GITHUB_REPOSITORY}:$RELEASE-$VERSION.$BUILD.$FIX" >> $GITHUB_ENV
echo "$GITHUB_ENV"
- name: Docker Build
run: |
cd GUI
docker image build --tag $DOCKER_TAG_CUSTOM .

- name: Log in to GitHub container registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin

- name: Push Docker image to ghcr
run: docker push $DOCKER_TAG_CUSTOM
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
.DS_Store
.vscode
.env
.env.gui

**/node_modules
**/dist
Expand Down
434 changes: 434 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions DSL/Resql/services/POST/get-navigable-services-list.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

SELECT service_id, name
FROM (
SELECT DISTINCT ON (service_id) service_id, name, current_state
FROM services
WHERE NOT deleted
AND is_common = false
ORDER BY service_id, id DESC
) latest
WHERE current_state IN ('active', 'ready', 'draft')
ORDER BY name ASC;
6 changes: 6 additions & 0 deletions DSL/Resql/services/POST/get-service-status-by-name.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
SELECT current_state
FROM services
WHERE name = :service_name
AND NOT deleted
ORDER BY id DESC
LIMIT 1;
5 changes: 3 additions & 2 deletions DSL/Resql/services/POST/get-services-list.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ SELECT
current_state AS state,
ruuter_type AS type,
slot,
CEIL((SELECT COUNT(DISTINCT service_id) FROM services WHERE NOT deleted AND (:is_common::TEXT = '' OR is_common = (:is_common::TEXT)::BOOLEAN)) / :page_size::DECIMAL) AS total_pages
CEIL((SELECT COUNT(DISTINCT service_id) FROM services WHERE NOT deleted AND (:is_common::TEXT = '' OR is_common = (:is_common::TEXT)::BOOLEAN) AND (:search IS NULL OR :search = '' OR LOWER(name) LIKE LOWER('%' || :search || '%'))) / :page_size::DECIMAL) AS total_pages
FROM services
WHERE NOT deleted
WHERE NOT deleted
AND (:is_common::TEXT = '' OR is_common = (:is_common::TEXT)::BOOLEAN)
AND (:search IS NULL OR :search = '' OR LOWER(name) LIKE LOWER('%' || :search || '%'))
ORDER BY
CASE WHEN :sorting = 'name asc' THEN name END ASC,
CASE WHEN :sorting = 'name desc' THEN name END DESC,
Expand Down
2 changes: 2 additions & 0 deletions DSL/Resql/training/GET/empty.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- This is a empty sql for Buerokratt DSL delivery method
SELECT current_date;
1 change: 1 addition & 0 deletions DSL/Resql/training/POST/get-new-nonce.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
INSERT INTO request_nonces (valid_until) VALUES ( now() + interval '1 day') RETURNING nonce;
1 change: 1 addition & 0 deletions DSL/Resql/training/POST/use-nonce.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
update request_nonces set used_at = now() where nonce = :updated_nonce and used_at is null returning nonce;
19 changes: 19 additions & 0 deletions DSL/Ruuter/services/GET/get-new-nonce.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
declaration:
call: declare
version: 0.1
description: "Description placeholder for 'GET-NEW-NONCE'"
method: get
accepts: json
returns: json
namespace: service

get_new_nonce:
call: http.post
args:
url: "[#SERVICE_TRAINING_RESQL]/get-new-nonce"
result: nonce_res

return_result:
wrapper: false
return: ${nonce_res.response.body[0].nonce}
next: end
20 changes: 20 additions & 0 deletions DSL/Ruuter/services/GET/navigable-services.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
declaration:
call: declare
version: 0.1
description: "Decription placeholder for 'NAVIGABLE-SERVICES'"
method: get
accepts: json
returns: json
namespace: service

get_services_list:
call: http.post
args:
url: "[#SERVICE_RESQL]/get-navigable-services-list"
result: results

return_ok:
status: 200
wrapper: false
return: ${results.response.body}
next: end
59 changes: 58 additions & 1 deletion DSL/Ruuter/services/GET/services/active/.guard
Original file line number Diff line number Diff line change
@@ -1,4 +1,61 @@
guard_allow_all:
process_request:
switch:
- condition: ${ incoming.headers['x-ruuter-nonce'] != null }
next: verify_header_nonce
- condition: ${ incoming.params['ruuter-nonce'] != null }
next: verify_param_nonce
- condition: ${incoming.headers == null || incoming.headers.cookie == null}
next: guard_fail
next: authenticate

verify_header_nonce:
call: http.post
args:
url: "[#SERVICE_TRAINING_RESQL]/use-nonce"
body:
updated_nonce: ${incoming.headers['x-ruuter-nonce']}
result: nonce_response
next: check_inline

verify_param_nonce:
call: http.post
args:
url: "[#SERVICE_TRAINING_RESQL]/use-nonce"
body:
updated_nonce: ${incoming.params['ruuter-nonce']}
result: nonce_response
next: check_inline

check_inline:
inline: extAuth
result: extauth

check_nonce:
switch:
- condition: ${ !extauth || (nonce_response.response.body[0] == null) }
next: guard_fail
next: guard_success

authenticate:
template: "[#SERVICE_PROJECT_LAYER]/check-user-authority"
requestType: templates
headers:
cookie: ${incoming.headers.cookie}
result: authority_result
next: check_authority_result

check_authority_result:
switch:
- condition: ${authority_result !== "false"}
next: guard_success
next: guard_fail

guard_success:
return: "success"
status: 200
next: end

guard_fail:
return: "unauthorized"
status: 401
next: end
59 changes: 58 additions & 1 deletion DSL/Ruuter/services/GET/services/draft/.guard
Original file line number Diff line number Diff line change
@@ -1,4 +1,61 @@
guard_allow_all:
process_request:
switch:
- condition: ${ incoming.headers['x-ruuter-nonce'] != null }
next: verify_header_nonce
- condition: ${ incoming.params['ruuter-nonce'] != null }
next: verify_param_nonce
- condition: ${incoming.headers == null || incoming.headers.cookie == null}
next: guard_fail
next: authenticate

verify_header_nonce:
call: http.post
args:
url: "[#SERVICE_TRAINING_RESQL]/use-nonce"
body:
updated_nonce: ${incoming.headers['x-ruuter-nonce']}
result: nonce_response
next: check_inline

verify_param_nonce:
call: http.post
args:
url: "[#SERVICE_TRAINING_RESQL]/use-nonce"
body:
updated_nonce: ${incoming.params['ruuter-nonce']}
result: nonce_response
next: check_inline

check_inline:
inline: extAuth
result: extauth

check_nonce:
switch:
- condition: ${ !extauth || (nonce_response.response.body[0] == null) }
next: guard_fail
next: guard_success

authenticate:
template: "[#SERVICE_PROJECT_LAYER]/check-user-authority"
requestType: templates
headers:
cookie: ${incoming.headers.cookie}
result: authority_result
next: check_authority_result

check_authority_result:
switch:
- condition: ${authority_result !== "false"}
next: guard_success
next: guard_fail

guard_success:
return: "success"
status: 200
next: end

guard_fail:
return: "unauthorized"
status: 401
next: end
59 changes: 58 additions & 1 deletion DSL/Ruuter/services/GET/services/inactive/.guard
Original file line number Diff line number Diff line change
@@ -1,4 +1,61 @@
guard_allow_all:
process_request:
switch:
- condition: ${ incoming.headers['x-ruuter-nonce'] != null }
next: verify_header_nonce
- condition: ${ incoming.params['ruuter-nonce'] != null }
next: verify_param_nonce
- condition: ${incoming.headers == null || incoming.headers.cookie == null}
next: guard_fail
next: authenticate

verify_header_nonce:
call: http.post
args:
url: "[#SERVICE_TRAINING_RESQL]/use-nonce"
body:
updated_nonce: ${incoming.headers['x-ruuter-nonce']}
result: nonce_response
next: check_inline

verify_param_nonce:
call: http.post
args:
url: "[#SERVICE_TRAINING_RESQL]/use-nonce"
body:
updated_nonce: ${incoming.params['ruuter-nonce']}
result: nonce_response
next: check_inline

check_inline:
inline: extAuth
result: extauth

check_nonce:
switch:
- condition: ${ !extauth || (nonce_response.response.body[0] == null) }
next: guard_fail
next: guard_success

authenticate:
template: "[#SERVICE_PROJECT_LAYER]/check-user-authority"
requestType: templates
headers:
cookie: ${incoming.headers.cookie}
result: authority_result
next: check_authority_result

check_authority_result:
switch:
- condition: ${authority_result !== "false"}
next: guard_success
next: guard_fail

guard_success:
return: "success"
status: 200
next: end

guard_fail:
return: "unauthorized"
status: 401
next: end
Loading
Loading