Commit Graph

488 Commits

Author SHA1 Message Date
Johan Haals dfc1270f85 Merge pull request #4360 from backstage/mob/stateless-scaffolder
Introduce stateless v2 scaffolder API
2021-02-08 13:39:27 +01:00
Johan Haals 44da5d09c5 scaffolder: Convert to prepared statements 2021-02-08 09:24:48 +01:00
Johan Haals 9afa2d24c6 scaffolder: Fix legacy publish error message 2021-02-05 15:25:34 +01:00
Johan Haals b3b766b79b Scaffolder: Remove sleep 2021-02-05 14:34:00 +01:00
Johan Haals 95cd312d55 scaffolder: Make updateCount errors ConflictError 2021-02-05 14:10:41 +01:00
Johan Haals ba3a6a9be0 Scaffolder: fix typos and log output
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
2021-02-05 13:52:20 +01:00
github-actions[bot] 6794967d20 Version Packages 2021-02-04 13:02:30 +00:00
Johan Haals 6ca31fb834 scaffolder: Flush events to eventstream
Co-authored-by: blam<ben@blam.sh>
2021-02-04 09:42:04 +01:00
Johan Haals 586607e417 Order events by id
Co-authored-by: blam<ben@blam.sh>
2021-02-04 09:39:05 +01:00
Debajyoti Halder 2ca4797427 Merge branch 'master' of https://github.com/spotify/backstage into lintMod 2021-02-03 21:22:08 +05:30
Johan Haals ff0eed8200 Remove sleep from prepare step 2021-02-03 10:51:48 +01:00
Johan Haals e5520064ea Drop console log 2021-02-03 10:48:34 +01:00
Johan Haals 1955c62398 Delete unused database code 2021-02-03 10:47:44 +01:00
Johan Haals 693ae8c625 Remove date precision 2021-02-03 10:41:06 +01:00
Johan Haals b359ce6a12 Expect intermediate to be created 2021-02-03 10:23:12 +01:00
Johan Haals d6a515db6f Scaffolder: ensure cookiecutter intermediateDir
This fixes template issues on Linux.
2021-02-03 10:14:46 +01:00
Johan Haals c386de896d Remove unused dependencies 2021-02-02 16:46:11 +01:00
Johan Haals a173d47527 Delete knexfile 2021-02-02 16:45:28 +01:00
Johan Haals 9b0bba5439 Reshuffle api endpoints 2021-02-02 16:38:04 +01:00
Johan Haals 6608f9f5ee Drop runId, update TaskStore interface
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Co-authored-by: blam<ben@blam.sh>
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-02-02 16:38:03 +01:00
Johan Haals 88c31ab16b Add tests. Extend storage with fetch staletasks method
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Co-authored-by: blam<ben@blam.sh>
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-02-02 16:38:03 +01:00
Johan Haals 5da5e6b224 Delete MemoryTaskStore
This is replaced by running sqlite in memory.
2021-02-02 16:38:02 +01:00
Johan Haals 71dc78b01f Wire up database and rename database classes
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Co-authored-by: blam<ben@blam.sh>
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-02-02 16:38:02 +01:00
Fredrik Adelöw 605eb7f594 scaffolder: add the bare minimum of a db abstraction 2021-02-02 16:38:01 +01:00
Johan Haals 95c2719809 Rename publish to legacy:publish 2021-02-02 16:38:01 +01:00
Johan Haals 7b7230f75b Add getWorkspaceName 2021-02-02 16:38:01 +01:00
Johan Haals abff060e67 Use url from parameters
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Co-authored-by: blam<ben@blam.sh>
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-02-02 16:38:00 +01:00
Johan Haals cf896972ef Wire up task registry with legacy tasks
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Co-authored-by: blam<ben@blam.sh>
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-02-02 16:38:00 +01:00
Johan Haals 8623025c9b Wip wip 2021-02-02 16:38:00 +01:00
Johan Haals fef53431df create logger and stream that emit events 2021-02-02 16:37:59 +01:00
Johan Haals 7d13f22c3d Add eventType for closing observer stream
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-02-02 16:37:59 +01:00
Johan Haals dfea89fa98 Pass taskSpec in tests 2021-02-02 16:37:59 +01:00
Johan Haals 1c1ff59eba Add new apis using task broker
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Co-authored-by: blam<ben@blam.sh>
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-02-02 16:37:58 +01:00
Johan Haals 4f67e8aa21 Fix typo 2021-02-02 16:37:58 +01:00
Johan Haals 06da4425e0 Prepend broker files with Memory
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Co-authored-by: blam<ben@blam.sh>
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-02-02 16:37:57 +01:00
Johan Haals fcbfc56be8 Add dispatchResult
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Co-authored-by: blam<ben@blam.sh>
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-02-02 16:37:57 +01:00
Johan Haals 971742b6cb return undefined if no task is found 2021-02-02 16:37:56 +01:00
Johan Haals a003fffbbb Use InMemoryDatabase 2021-02-02 16:37:56 +01:00
Johan Haals 5958318b32 Implement createTask and setStatus 2021-02-02 16:37:56 +01:00
Johan Haals 5e06a9f45b Refactor into broker 2021-02-02 16:37:55 +01:00
Johan Haals 21e18aced4 Create inital class structure 2021-02-02 16:37:55 +01:00
Debajyoti Halder 39e7f4a81e Merge branch 'master' of https://github.com/spotify/backstage into lintMod 2021-02-02 17:02:33 +05:30
Alan Crosswell 2bf3ad4ce5 better document the config options 2021-02-01 11:45:38 -05:00
Alan Crosswell c3609ebb44 add visibility to schema 2021-02-01 10:34:25 -05:00
Alan Crosswell a4e526dfe3 Bitbucket repo visibility 2021-02-01 10:27:54 -05:00
Alan Crosswell e3a11945ea Add repoVisibility for GitLab repos 2021-02-01 10:27:54 -05:00
Himanshu Mishra 55b298c52a scaffolder: Fix test on windows; incorrect file URL 2021-01-31 20:39:43 +01:00
Fredrik Adelöw a26668913c scaffolder-backend: attempt to fix windows test errors in master 2021-01-31 20:39:43 +01:00
Johan Haals 262f7cf996 import path instead of resolve 2021-01-29 13:53:12 +01:00
Johan Haals adaba84f3f import path instead of resolve 2021-01-29 13:51:46 +01:00