Skip to content

Commit 0f71482

Browse files
CasLubbersj-zimnowodamerllferruhcihan
authored
feat: use new file structure (#634)
* feat: use new file structure(wip) * feat: update save functions to adhere new file structure * feat: save data correctly to files * feat: save apps correctly * feat: save apps correctly * feat: remove unused code * feat: clean up code * feat: fix backups * feat: fix backups * feat: make sealedsecrets compatible with new structure * fix: unit tests * fix: unit tests * fix: unit tests * feat: add tests for the repo and teamconfig service * feat: merge coderepos * fix: catch exception on status reporting interval * feat: set correctly enabled flag * feat: update getAll functions to contain teamId * feat: update getAll functions to contain teamId * feat: don't cleanup main session when error * fix: not cleanup main session * fix: codeRepo test and rename to codeRepo * fix: change object id's to name * fix: workloadValues * feat: convert resource ids to names * fix: creation of service * fix: tests * fix: saving users correctly * fix: renamings and remove some es disable lines * fix: updating the rootstack correctly * Revert "fix: updating the rootstack correctly" This reverts commit ce3e394. * feat: update repos.ts * feat: only encrypt data when its is necessary * Revert "Revert "fix: updating the rootstack correctly"" This reverts commit bd14603 * fix: the tests * fix: naming * feat: add git depth of 5 when pulling * fix: codeRepo naming and sealedSecrets * fix: logging * fix: sealedsecrets loading * fix: repoService.ts * feat: remove old secret endpoints and related remainings * fix: getting statuses * fix: git save function adjusted git save function to pull only and increase the retries. Also removed the doRestore function after deployment Co-authored-by: Jehoszafat Zimnowoda <[email protected]> * fix: copy values when creating session * fix: copy values when creating session * fix: copy values when creating session * fix: deleting user * fix: tests --------- Co-authored-by: Jehoszafat Zimnowoda <[email protected]> Co-authored-by: Matthias Erll <[email protected]> Co-authored-by: Ferruh Cihan <[email protected]>
1 parent 165199d commit 0f71482

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+4220
-2625
lines changed

.eslintrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ rules:
6060
'@typescript-eslint/naming-convention':
6161
['error', { 'selector': 'function', 'format': ['camelCase'], 'leadingUnderscore': 'allow' }]
6262
comma-dangle: [error, only-multiline]
63-
curly: [error, multi-or-nest]
63+
# curly: [error, multi-or-nest]
6464
eol-last: ['error', 'always']
6565
func-names: off
6666
import/extensions: off

docs/gitops.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ sequenceDiagram
1818
participant SC as Session Controller
1919
participant MC as Master Session Controller
2020
participant ACA as APL Core API
21-
participant RR as Remote Repo
21+
participant RR as Remote Git
2222
participant IMDB as In-Memory DB
2323
activate MC
2424
activate IMDB
@@ -80,7 +80,7 @@ sequenceDiagram
8080
participant API as Express API
8181
participant SC as Session Controller
8282
participant MC as Master Session Controller
83-
participant RR as Remote Repo
83+
participant RR as Remote Git
8484
participant ACA as APL Core API
8585
participant IMDB as In-Memory DB
8686
activate MC
@@ -131,7 +131,7 @@ sequenceDiagram
131131
participant Client as Client
132132
participant API as Express API
133133
participant SC as Git Handler
134-
participant RR as Remote Repo
134+
participant RR as Remote Git
135135
participant ACA as APL Core API
136136
participant IMDB as In-Memory DB
137137
activate IMDB
@@ -179,7 +179,7 @@ sequenceDiagram
179179
participant Client as Client
180180
participant API as Express API
181181
participant SC as Git Handler
182-
participant RR as Remote Repo
182+
participant RR as Remote Git
183183
participant ACA as APL Core API
184184
Client->>API: HTTP POST/PUT/PATCH/DELETE
185185
activate API

package-lock.json

Lines changed: 126 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"glob": "^11.0.1",
3232
"http-signature": "^1.3.6",
3333
"json-stable-stringify": "^1.0.1",
34+
"jsonpath": "^1.1.1",
3435
"jsonwebtoken": "^9.0.0",
3536
"jwt-decode": "^2.2.0",
3637
"lightship": "^6.7.2",
@@ -59,6 +60,7 @@
5960
"@types/express": "4.17.13",
6061
"@types/fs-extra": "^9.0.13",
6162
"@types/jest": "^29.5.14",
63+
"@types/jsonpath": "^0.2.4",
6264
"@types/lodash": "4.14.182",
6365
"@types/lowdb": "1.0.11",
6466
"@types/node": "^16.18.125",
@@ -105,8 +107,7 @@
105107
"watch": "0.19.2"
106108
},
107109
"engines": {
108-
"node": ">=20 <21",
109-
"npm": "^10"
110+
"node": ">=20 <21"
110111
},
111112
"engineStrict": true,
112113
"homepage": "https://github.com/redkubes/otomi-api#readme",

0 commit comments

Comments
 (0)