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

Commits on Mar 21, 2023

  1. FD-495 definition list query (#262)

    * workflow query definitions
    
    * add missing files
    
    * better typing of metadata api
    
    * schema changes
    
    * return tasks as stringified json
    
    * workflow node query added
    soson authored Mar 21, 2023
    Configuration menu
    Copy the full SHA
    ae0ff33 View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2023

  1. Executed workflow query (#264)

    * 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]>
    MarcoMruz and soson authored Mar 23, 2023
    Configuration menu
    Copy the full SHA
    3895c6b View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2023

  1. Pause resume wf mutations (#265)

    * 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]>
    MarcoMruz and soson authored Mar 27, 2023
    Configuration menu
    Copy the full SHA
    9ff7af0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ea3582a View commit details
    Browse the repository at this point in the history
  3. FD-496 workflow definition mutations (#267)

    * 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
    soson authored Mar 27, 2023
    Configuration menu
    Copy the full SHA
    47cba94 View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2023

  1. Configuration menu
    Copy the full SHA
    5a7d0fe View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9a29bb7 View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2023

  1. Add mutation execute workflow (#268)

    * 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
    MarcoMruz authored Mar 29, 2023
    Configuration menu
    Copy the full SHA
    2a8bb52 View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2023

  1. FD-504 workflow filters (#272)

    * add workflow filters
    
    * move workflow filter to separate function
    soson authored Mar 30, 2023
    Configuration menu
    Copy the full SHA
    941bc00 View commit details
    Browse the repository at this point in the history
  2. Add workflow input params (#273)

    * add input parameters property to workflow
    
    * pr-check fix
    soson authored Mar 30, 2023
    Configuration menu
    Copy the full SHA
    b9eeff4 View commit details
    Browse the repository at this point in the history
  3. Retry, restart, terminate and remove workflow mutations (#269)

    * 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
    MarcoMruz authored Mar 30, 2023
    Configuration menu
    Copy the full SHA
    0cd6187 View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2023

  1. FD-517 task definitions query (#274)

    * task definitions query added
    
    * add missing file; fix type checking
    
    * changed task definition props to createdAt, updatedAt
    
    * add additional properties
    soson authored Apr 5, 2023
    Configuration menu
    Copy the full SHA
    9f718d0 View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2023

  1. Configuration menu
    Copy the full SHA
    6c869ae View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9d09d98 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d507c3c View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2023

  1. Configuration menu
    Copy the full SHA
    24cba7f View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2023

  1. bulk executed workflow id fix (#285)

    * use executed workflow ids as input in bulk operations
    
    * bulk resume fix
    soson authored Apr 20, 2023
    Configuration menu
    Copy the full SHA
    f2601c3 View commit details
    Browse the repository at this point in the history

Commits on May 4, 2023

  1. FD-526 new workflow attributes (#287)

    * new attributes added to workflow
    
    * add output paramters to workflow
    
    * add restartable and outputParameters to workflow input
    
    * add createdAt, updatedAt to workflow input
    soson authored May 4, 2023
    Configuration menu
    Copy the full SHA
    3553a5a View commit details
    Browse the repository at this point in the history

Commits on May 10, 2023

  1. Add graphql scheduler (#289)

    * 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
    MarcoMruz authored May 10, 2023
    Configuration menu
    Copy the full SHA
    7d71fad View commit details
    Browse the repository at this point in the history
  2. FD-527 custom connection from array (#288)

    * custom connectionFromArray helper function added
    
    * remove unused eslint comment
    soson authored May 10, 2023
    Configuration menu
    Copy the full SHA
    abb7b03 View commit details
    Browse the repository at this point in the history

Commits on May 11, 2023

  1. Configuration menu
    Copy the full SHA
    e2d5826 View commit details
    Browse the repository at this point in the history

Commits on May 15, 2023

  1. Configuration menu
    Copy the full SHA
    905c656 View commit details
    Browse the repository at this point in the history

Commits on May 22, 2023

  1. Workflow status subscription (#293)

    * add subscription for executed workflow
    
    * refactor naming and remove uuid
    
    * id generated by uuid and workflowId used for mutations
    MarcoMruz authored May 22, 2023
    Configuration menu
    Copy the full SHA
    f2a3974 View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2023

  1. Change executed task query (#307)

    * 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
    MarcoMruz authored Jun 7, 2023
    Configuration menu
    Copy the full SHA
    38ef6f2 View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2023

  1. Configuration menu
    Copy the full SHA
    4435f83 View commit details
    Browse the repository at this point in the history
  2. prettier fix

    soson committed Jun 8, 2023
    Configuration menu
    Copy the full SHA
    4a8e3b5 View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2023

  1. FD-537 add resource manager (#312)

    * add resource manager to inventory server
    
    * push missing files
    
    * fix GetPool request
    soson authored Jun 16, 2023
    Configuration menu
    Copy the full SHA
    0c08226 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    afc4c90 View commit details
    Browse the repository at this point in the history
  3. Merge branch 'story-new-conductor-api' of github.com:FRINXio/frinx-in…

    …ventory-server into story-new-conductor-api
    soson committed Jun 16, 2023
    Configuration menu
    Copy the full SHA
    b32fb85 View commit details
    Browse the repository at this point in the history
  4. fix formatter

    soson committed Jun 16, 2023
    Configuration menu
    Copy the full SHA
    154a049 View commit details
    Browse the repository at this point in the history
  5. README.md updated

    soson committed Jun 16, 2023
    Configuration menu
    Copy the full SHA
    1fbc2ee View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2023

  1. Configuration menu
    Copy the full SHA
    92850c9 View commit details
    Browse the repository at this point in the history
  2. fix formatter

    soson committed Jun 20, 2023
    Configuration menu
    Copy the full SHA
    42586a2 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2023

  1. Add delete and create mutation for task definitions (#316)

    * added graphql task definitions mutation for deleting and creating
    
    * refactor input and output of create task definition mutation
    
    * remove redundant funciton and use static one instead for readability purposes
    
    * fix guard statement
    
    * refactored delete mutation and create mutation
    
    * formatting
    
    * changed tasks query to relay connection format
    
    * fixed realy connection resolver for taskDefinitionsQuery
    
    ---------
    
    Co-authored-by: PeterL <[email protected]>
    Co-authored-by: marco.mruz <[email protected]>
    3 people authored Jul 14, 2023
    Configuration menu
    Copy the full SHA
    4c909c3 View commit details
    Browse the repository at this point in the history
  2. Add event listener graphql support (#318)

    * add API typings and CRUD operation
    
    * add event handler queries
    
    * add event handler mutations for CRUD operations
    
    * format and lint files
    
    * add typings for converter functions
    
    * fix typings of converter functions
    
    * refactor update mutation of event handler because of terrible netflix conductor logic
    
    * refactor inputs needed to update event handler
    
    * add query to get event handlers by event and event handler detail query
    
    * fix JSON validation and decoding
    
    * add ID to event handlers action
    
    * generate graphql schema typings
    MarcoMruz authored Jul 14, 2023
    Configuration menu
    Copy the full SHA
    35b85e5 View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2023

  1. Configuration menu
    Copy the full SHA
    a2aa828 View commit details
    Browse the repository at this point in the history
  2. fix lint and formatting

    MarcoMruz committed Jul 17, 2023
    Configuration menu
    Copy the full SHA
    5a3c8f9 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2023

  1. output parameters fix (#319)

    soson authored Jul 18, 2023
    Configuration menu
    Copy the full SHA
    6a1be8d View commit details
    Browse the repository at this point in the history
  2. Typegen fix (#321)

    * type checks fix
    
    * remove unused code
    
    * add story branch to pr-check
    
    * workflow node type changes
    
    * make workflow id as stringified object of name and version properties
    soson authored Jul 18, 2023
    Configuration menu
    Copy the full SHA
    3b52493 View commit details
    Browse the repository at this point in the history
  3. add poll data query (#317)

    * add poll data query
    
    * format changed files and add ID to poll data query
    
    * generate schema typings
    
    * refactor input parms for filtering poll data and add handlers for filters
    
    * formatter fixes
    MarcoMruz authored Jul 18, 2023
    Configuration menu
    Copy the full SHA
    101cd0b View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2023

  1. shortest path endpoint implementation (#324)

    * shortest path endpoint implementation
    
    * formatter fix
    soson authored Jul 24, 2023
    Configuration menu
    Copy the full SHA
    00df639 View commit details
    Browse the repository at this point in the history
  2. Update poll data sorting (#323)

    * fix incorrect blueprintId sent to database - change it to native db id (#314)
    
    * add poll data query
    
    * format changed files and add ID to poll data query
    
    * generate schema typings
    
    * refactor input parms for filtering poll data and add handlers for filters
    
    * formatter fixes
    
    * added sorting to PollDataQuery
    
    * formatting
    
    * linter fixes
    
    * fixed ts error
    
    * formatting
    
    * sorting refactoring
    
    * ordering refactoring
    
    ---------
    
    Co-authored-by: Pavol Porubský <[email protected]>
    Co-authored-by: marco.mruz <[email protected]>
    Co-authored-by: PeterL <[email protected]>
    4 people authored Jul 24, 2023
    Configuration menu
    Copy the full SHA
    d6d72e7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    83447e8 View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2023

  1. add name to event handlers filter (#326)

    * add name to event handlers filter
    
    * format file
    
    * move filter logic to helper functions
    
    * handle also when string is of 0 length
    
    * change logic so that every handler must fulfill statements
    MarcoMruz authored Jul 26, 2023
    Configuration menu
    Copy the full SHA
    3f9237a View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2023

  1. Configuration menu
    Copy the full SHA
    b6278b2 View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2023

  1. refactored executed workflows query to support sorting (#329)

    * refactored executed workflows query to support sorting
    
    * lint fixing
    
    ---------
    
    Co-authored-by: PeterL <[email protected]>
    plehocky and Skyedown authored Aug 2, 2023
    Configuration menu
    Copy the full SHA
    446b676 View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2023

  1. Configuration menu
    Copy the full SHA
    727da25 View commit details
    Browse the repository at this point in the history

Commits on Aug 4, 2023

  1. updated workflow list to sort by name (#332)

    * 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]>
    3 people authored Aug 4, 2023
    Configuration menu
    Copy the full SHA
    878c705 View commit details
    Browse the repository at this point in the history
  2. shortest path (#327)

    * add nodeId to netRoutingPath
    
    * remove package-lock.json
    soson authored Aug 4, 2023
    Configuration menu
    Copy the full SHA
    20d4958 View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2023

  1. Configuration menu
    Copy the full SHA
    1235672 View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2023

  1. added sorting to event handlers (#338)

    * 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]>
    3 people authored Aug 14, 2023
    Configuration menu
    Copy the full SHA
    4610995 View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2023

  1. added sorting to taskDefinitions query (#342)

    Co-authored-by: PeterL <[email protected]>
    plehocky and Skyedown authored Aug 22, 2023
    Configuration menu
    Copy the full SHA
    fd31ef3 View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2023

  1. FD-540 shortest path weights (#340)

    * 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]>
    soson and Paulooze authored Aug 24, 2023
    Configuration menu
    Copy the full SHA
    af37af9 View commit details
    Browse the repository at this point in the history
  2. updated device sorting (#343)

    * updated device sorting
    
    * formatting
    
    * formatting
    
    ---------
    
    Co-authored-by: PeterL <[email protected]>
    plehocky and Skyedown authored Aug 24, 2023
    Configuration menu
    Copy the full SHA
    530f4db View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d3b5b43 View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2023

  1. Configuration menu
    Copy the full SHA
    ff16089 View commit details
    Browse the repository at this point in the history
  2. FD-540 backups query (#341)

    * topology query graphql
    
    * add helper functions
    
    * graphql backups query
    soson authored Aug 25, 2023
    Configuration menu
    Copy the full SHA
    16bef8f View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2023

  1. Configuration menu
    Copy the full SHA
    7d5e387 View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2023

  1. fix import paths (#349)

    soson authored Sep 4, 2023
    Configuration menu
    Copy the full SHA
    b19713d View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2023

  1. FD-540 diff and update positions (#350)

    * 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]>
    5 people authored Sep 5, 2023
    Configuration menu
    Copy the full SHA
    99388d0 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2023

  1. add missing workflow definition properties to make updating more cust…

    …omizable (#365)
    
    * add missing workflow definition properties to make updating more customizable
    
    * remove createTime and updateTime
    MarcoMruz authored Sep 7, 2023
    Configuration menu
    Copy the full SHA
    60e5080 View commit details
    Browse the repository at this point in the history
  2. bump version 2.0.1 (#367)

    soson authored Sep 7, 2023
    Configuration menu
    Copy the full SHA
    50e1522 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2023

  1. remove possibility to change values of createdAt or updatedAt values (#…

    …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 authored Sep 11, 2023
    Configuration menu
    Copy the full SHA
    b05f45d View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2023

  1. Configuration menu
    Copy the full SHA
    dc4aa1d View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2023

  1. added filtering by name to zones and labels (#368)

    * added filtering by name to zones and labels
    
    * lint error fix
    
    * lint error fix
    
    * lint error fix
    
    ---------
    
    Co-authored-by: PeterL <[email protected]>
    plehocky and Skyedown authored Sep 18, 2023
    Configuration menu
    Copy the full SHA
    4afea05 View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2023

  1. Add bulk install (#373)

    * 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
    MarcoMruz authored Oct 4, 2023
    Configuration menu
    Copy the full SHA
    e28698a View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2023

  1. bump version 2.0.2 (#375)

    soson authored Oct 5, 2023
    Configuration menu
    Copy the full SHA
    b29124b View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2023

  1. resource type fix (#374)

    soson authored Oct 9, 2023
    Configuration menu
    Copy the full SHA
    1fe622c View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2023

  1. bump version 2.0.3 (#381)

    soson authored Oct 20, 2023
    Configuration menu
    Copy the full SHA
    de1a97b View commit details
    Browse the repository at this point in the history

Commits on Dec 5, 2023

  1. deleted topology discovery rest APIcode (#384)

    * deleted topology discovery rest APIcode
    
    * removed topology URL from .env.example and config.ts
    
    * formatting
    
    ---------
    
    Co-authored-by: PeterL <[email protected]>
    plehocky and Skyedown authored Dec 5, 2023
    Configuration menu
    Copy the full SHA
    71d2467 View commit details
    Browse the repository at this point in the history

Commits on Dec 20, 2023

  1. install device fix (#386)

    * dont parse json object params
    
    * fix lint
    
    * seed moun params fix
    
    * revert change
    soson authored Dec 20, 2023
    Configuration menu
    Copy the full SHA
    370a2aa View commit details
    Browse the repository at this point in the history
  2. bump version 2.0.4 (#387)

    soson authored Dec 20, 2023
    Configuration menu
    Copy the full SHA
    806de45 View commit details
    Browse the repository at this point in the history