Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new conductor api #311

Draft
wants to merge 72 commits into
base: main
Choose a base branch
from
Draft

new conductor api #311

wants to merge 72 commits into from

Conversation

soson
Copy link
Collaborator

@soson soson commented Jun 8, 2023

we will keep this branch for while, until all will be prepared and tested with the whole Frinx Machine

soson and others added 25 commits March 21, 2023 14:31
* workflow query definitions

* add missing files

* better typing of metadata api

* schema changes

* return tasks as stringified json

* workflow node query added
* workflow query definitions

* add missing files

* better typing of metadata api

* schema changes

* return tasks as stringified json

* workflow node query added

* create graphql and io-ts schemas for executed workflow and executed workflow tasks

* add filter and pagination query

* update calculation of relay specific pagination

* add executed workflow detail query

* resolve wanted changes to make codebase more readable

* remove as type

* add tests for conductor helpers (#266)

---------

Co-authored-by: Martin Sottnik <[email protected]>
* bump version 1.8.3 (#263)

* create pause and resume mutation with bulk ones

* add env variable for github action

---------

Co-authored-by: Martin Sottnik <[email protected]>
* workflow defintion mutations added

* typo fixes; add missing fields

* handling bulk result on update workflow

* add CONDUCTOR_API_URL to env variables

* addWorkflow renamed to createWorkflow
* add mutation to start new workflow

* move from executed to workflow file and create start new workflow mutation

* add mutation to execute workflow

* use our custom logger and use correct name convention

* remove trycatches and loggers

* add jsdocs and handle JSON parsing

* use void instead of custom string and fix errored imports

* remove logger
* add workflow filters

* move workflow filter to separate function
* add input parameters property to workflow

* pr-check fix
* add retry, resume, terminate and remove workflow mutations

* remove custom string responses and return isOk

* remove redundant trycatch and custom string responses in API calls

* rename optional args by our naming conventiosn
* task definitions query added

* add missing file; fix type checking

* changed task definition props to createdAt, updatedAt

* add additional properties
* use executed workflow ids as input in bulk operations

* bulk resume fix
* new attributes added to workflow

* add output paramters to workflow

* add restartable and outputParameters to workflow input

* add createdAt, updatedAt to workflow input
* add urql to handle schellar graphql requests

* add graphql resolvers for schellar in inventory

* add generated types from schellar server

* fix hasSchedule logic of workflow

* remove urql and use graphql-request

* refactor property names

* add resolvers for schedule schema properties and refactor query resolvers
* custom connectionFromArray helper function added

* remove unused eslint comment
* add subscription for executed workflow

* refactor naming and remove uuid

* id generated by uuid and workflowId used for mutations
* refactor ID for executed workflow

* refactor property naming and url handling of empty value

* remove warnings

* set default value if priority was not defined

* handle optional values from input
soson added 2 commits June 8, 2023 15:32
* add resource manager to inventory server

* push missing files

* fix GetPool request
soson and others added 18 commits July 27, 2023 13:36
* refactored executed workflows query to support sorting

* lint fixing

---------

Co-authored-by: PeterL <[email protected]>
* updated workflow list to sort by name

* lint fix

* use shared sort direction type

---------

Co-authored-by: PeterL <[email protected]>
Co-authored-by: Martin Sottnik <[email protected]>
* add nodeId to netRoutingPath

* remove package-lock.json
* added sorting

* making workflows sorting optional

* formatting

* lint fix

* removed filtering possibility by actions

* formatting fix

* typo fix

* made ordering optional

* convert graphql to api sortKey helper function added

* use ternary operator; switch can be introduced later if needed

---------

Co-authored-by: PeterL <[email protected]>
Co-authored-by: Martin Sottnik <[email protected]>
* topology query graphql

* add helper functions

* add weights to shortest path and net topology query

* prisma upgraded 4.2.1 -> 5.1.1

* fix device.spec.ts test

* use device name as nodeId (topology edges fix)

* make changes according to latest changes in topolgoy-discovery (master)

---------

Co-authored-by: Paulooze <[email protected]>
* updated device sorting

* formatting

* formatting

---------

Co-authored-by: PeterL <[email protected]>
* topology query graphql

* add helper functions

* graphql backups query
* fix incorrect blueprintId sent to database - change it to native db id (#314)

* bump version 1.9.3 (#330)

* Add labels into Dockerfile (#333)

* Add source label for renovatebot

* Update Dockerfile

* Update docker-publish.yml

* made filtering by device name case insensitive (#335)

Co-authored-by: PeterL <[email protected]>

* diff queries, common nodes query and update positions mutation

* revert status validator

* remove logs

* lint fixes

* add type annotations to helpers functions

* topology diff fixes

* remove logs

---------

Co-authored-by: Pavol Porubský <[email protected]>
Co-authored-by: Šimon Mišenčík <[email protected]>
Co-authored-by: plehocky <[email protected]>
Co-authored-by: PeterL <[email protected]>
…omizable (#365)

* add missing workflow definition properties to make updating more customizable

* remove createTime and updateTime
MarcoMruz
MarcoMruz previously approved these changes Sep 7, 2023
…366)

* remove possibility to change values of createdAt or updatedAt values for workflow definition from third parties

* remove dates from inputs of workflow definition
MarcoMruz and others added 9 commits September 14, 2023 13:22
* added filtering by name to zones and labels

* lint error fix

* lint error fix

* lint error fix

---------

Co-authored-by: PeterL <[email protected]>
* add support for bulk install of devices

* remove logs and handle prisma JSONValue parsing

* fix naming of input object type

* fix parsing of mount params when one device installed

* refactor code and move helper logic to helpers and add bulk uninstall mutation

* refactor logic for bulk installation of devices

* code improvements to make it easier to read

* add nativeIds convertion and also fix parsing of prisma json's

* add comments
* deleted topology discovery rest APIcode

* removed topology URL from .env.example and config.ts

* formatting

---------

Co-authored-by: PeterL <[email protected]>
* dont parse json object params

* fix lint

* seed moun params fix

* revert change
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants