Commit Graph

64 Commits

Author SHA1 Message Date
Eric Peterson c826c2a370 Merge pull request #9979 from backstage/search/betaaaaa
[Search] "Launch" Beta
2022-03-04 17:25:33 +01:00
Patrik Oldsberg 1201383b60 create-app: switch to storing release version in backstage.json
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-03-04 11:39:59 +01:00
Eric Peterson c543fe3ff2 Respect PG selection in create-app for search.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2022-03-04 11:27:43 +01:00
Fredrik Adelöw 1dd5a02e91 fix build
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-02-07 15:51:58 +01:00
Joon Park ba59832aed Integrate catalog-import with permissions
Signed-off-by: Joon Park <joonp@spotify.com>
2022-02-01 12:34:25 +00:00
mufaddal motiwala 0d57638d2b Replaced EntitySystemDiagramCard with EntityCatalogGraphCard
Signed-off-by: mufaddal motiwala <mufaddalmm.52@gmail.com>
2022-01-21 00:13:10 +05:30
Patrik Oldsberg 59a9309536 remove usage of @ts-ignore
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-01-18 11:19:01 +01:00
Fredrik Adelöw 5333451def Got rid of the last brace-typed and hyphen-less params etc
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-01-10 09:48:12 +01:00
Joon Park cd529c4094 Integrate permissions with catalog-backend refresh endpoint (#8693)
Integration permission framework with refresh in catalog-backend

... through the use of a new AuthorizedRefreshService.

Signed-off-by: Joon Park <joonp@spotify.com>
2022-01-07 15:49:26 +00:00
Fredrik Adelöw 0dcd1dd64f Introduce TaskScheduler into backends
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-12-25 15:14:55 +01:00
Adam Harvey 2d3dd1e76f Fix doco typo
Signed-off-by: Adam Harvey <adaharve@cisco.com>
2021-12-02 12:29:39 -05:00
Vincenzo Scamporlino d63e5dcfdd Merge branch 'master' into vinzscam/create-app-add-bsversion-file 2021-11-16 10:51:25 +01:00
Patrik Oldsberg 2345b318fb create-app: fix windows file copy and mocking
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-15 22:54:29 +01:00
Vincenzo Scamporlino 677bfc2dd0 fix comments
Signed-off-by: Vincenzo Scamporlino <me@vinzscam.dev>
2021-11-15 17:22:17 +01:00
Vincenzo Scamporlino b6b4d4b73f Bump .backstage.json version
Signed-off-by: Vincenzo Scamporlino <me@vinzscam.dev>
2021-11-15 16:34:41 +01:00
Vincenzo Scamporlino 085edcfc5f fix comments
Signed-off-by: Vincenzo Scamporlino <me@vinzscam.dev>
2021-11-15 16:34:41 +01:00
Vincenzo Scamporlino 4ebc9fd277 Create .backstage-version file
Signed-off-by: Vincenzo Scamporlino <me@vinzscam.dev>
2021-11-15 16:34:36 +01:00
Colton Padden 1b3fab7193 Use mock-fs during createApp to prevent filesystem modifications
Signed-off-by: Colton Padden <colton.padden@fastmail.com>
2021-11-11 13:28:43 -05:00
Colton Padden bd90ded8b7 Add type annotations for mocked child_process.exec
Signed-off-by: Colton Padden <colton.padden@fastmail.com>
2021-11-11 13:28:43 -05:00
Colton Padden 1d666cb67e Add regression tests to createApp entrypoint
Ensure that appropriate tasks are called depending on inquirer prompt answers,
and command-line argument options (--path, and --skip-install).

Signed-off-by: Colton Padden <colton.padden@fastmail.com>
2021-11-11 13:28:43 -05:00
Colton Padden 2163e83fa2 Refactor create-app tasks and introduce regression tests
- Tasks were moved from the script entrypoint to the lib directory
- Doc comments were added for each task function defined in `src/lib/tasks.ts`
- The `yarn test` script was added to package.json
- Unit tests were written for each task -- verying file operations using fs-mock

Signed-off-by: Colton Padden <colton.padden@fastmail.com>
2021-11-11 13:28:43 -05:00
Patrik Oldsberg 03da4c0946 create-app: add app-defaults dependency to app + notice in changeset
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-11 17:26:47 +01:00
Patrik Oldsberg 5d5cac5b80 Merge pull request #7439 from cmpadden/create-app-path-option
Support optional [path] argument in create-app command-line utility
2021-10-28 13:17:47 +02:00
Colton Padden c9e843547e Create --path directory if it does not already exist
Instead of failing when the specified path does not exist, create it using
`mkdirs`. This ensures that that either the directory already exists, or it's
created.

Signed-off-by: Colton Padden <colton.padden@fastmail.com>
2021-10-27 14:03:28 -04:00
Colton Padden c671c38279 Template directly to specified path otherwise use temp dir
When the `--path` argument is specified, then perform the create-app templating
directly to that path. Otherwise, template to a temporary directory, and move
the files to a directory based on the project name.

Removed the `cleanUp` method in favor of removing temporary files directly in
the `moveApp` method in a `finally` block.

Reverted `moveApp` method to use the move operation instead ofe recursively
copying files.

Signed-off-by: Colton Padden <colton.padden@fastmail.com>
2021-10-21 14:53:29 -04:00
Patrik Oldsberg 36e67d2f24 more strict error type checking in most packages and backend plugins
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-10-17 15:09:05 +02:00
colton 0a788da873 Use standard error message in catch of copy file call
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Signed-off-by: Colton Padden <colton.padden@fastmail.com>
2021-10-11 15:25:08 -04:00
colton 10f513dd8c Use standard error message in temporary app file copy catch
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Signed-off-by: Colton Padden <colton.padden@fastmail.com>
2021-10-11 13:44:14 -04:00
Colton Padden c80e7ffbf9 use relative temporary file paths in resolving app destination paths
Signed-off-by: Colton Padden <colton.padden@fastmail.com>
2021-10-07 12:34:12 -04:00
Colton Padden 6c93f322ca use resolvePath with targetDir when using cmd.path
Signed-off-by: Colton Padden <colton.padden@fastmail.com>
2021-10-07 11:00:40 -04:00
Colton Padden 1d7078df93 validate path directory, and prevent target from being overwritten
Validation now occurs to ensure that the target path exists and is a directory.
Additionally, instead of moving the temporary directory to the target path,
files are now recursively copied, and then cleaned up. This was to support app
creation in the current directory, without clobbering existing files (for
example .git/)

Instead of overwriting the target `path` directory while using the
move method,

Signed-off-by: Colton Padden <colton.padden@fastmail.com>
2021-10-05 16:10:07 -04:00
Colton Padden 973678fd8c use --path option instead of [path] argument in create-app
Signed-off-by: Colton Padden <colton.padden@fastmail.com>
2021-10-05 11:20:35 -04:00
Colton Padden fe48f0ea95 update create-app usage to include optional [path] argument
Signed-off-by: Colton Padden <colton.padden@fastmail.com>
2021-10-05 09:41:38 -04:00
Colton Padden 4f1c30c176 Support optional [path] argument in create-app command-line utility
When this is specified, then copy the newly created application to the specified
directory, otherwise, copy the application to a folder based on the name
specified name.

Signed-off-by: Colton Padden <colton.padden@fastmail.com>
2021-10-04 15:36:50 -04:00
Patrik Oldsberg 8142a8ecb2 packages,plugins: add package documentation
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-09-14 18:47:53 +02:00
Patrik Oldsberg 9258c54f87 Merge branch 'master' into rugvip/mod 2021-06-22 10:07:18 +02:00
Patrik Oldsberg 9f527db1bd create-app: update available package versions to use new core packages
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-06-19 19:48:43 +02:00
Fredrik Adelöw a88073c29a Update copyright headers
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-06-18 20:26:42 +02:00
Eric Peterson e84f6aac87 Update @backstage/create-app to include the latest improvements in @backstage/search*
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-10 10:11:32 +02:00
Otto Sichert 1ddf551f4e Add CLI output and README how to start app after create-app CLI
Signed-off-by: Otto Sichert <git@ottosichert.de>
2021-06-02 11:05:07 +02:00
Tim Hansen 8b62311cbb Replace quickstart-app-auth with updated docs
Signed-off-by: Tim Hansen <timbonicus@gmail.com>
2021-05-24 12:46:59 -06:00
Tim Hansen f88fe9dd9b Update create-app template for better parity with example app
Fixes #4613

Signed-off-by: Tim Hansen <timbonicus@gmail.com>
2021-03-19 15:18:26 -06:00
Tim 2a8d622216 Merge pull request #4975 from backstage/timbonicus/db-default
Switch the default DB choice to SQLite
2021-03-16 16:39:07 -06:00
Fredrik Adelöw 3385b374bd introduce @backstage/integration-react and its scmIntegrationsApiRef
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-03-16 18:37:59 +01:00
Tim Hansen 10e2163a82 Switch the default DB choice to SQLite
Signed-off-by: Tim Hansen <timbonicus@gmail.com>
2021-03-16 09:36:01 -06:00
Fredrik Adelöw 8686eb38cf Introduce the @backstage/errors package.
Encode thrown errors in the backend as a JSON payload using a facility in that package, and render helpful frontend displays of those errors.

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-03-11 14:31:21 +01:00
Johan Haals 0b94e83ba4 create-app: Add catalog-client dependency
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-02-16 14:22:08 +01:00
Oliver Sand c677643afa Rename from @backstage/plugin-catalog-common-react to @backstage/plugin-catalog-react 2021-01-29 10:54:09 +01:00
Oliver Sand 019fe39a08 Createa @backstage/plugin-catalog-common-react package 2021-01-29 10:54:09 +01:00
Patrik Oldsberg d3947caf38 create-app: fix accidental runtime package dependencies 2021-01-21 18:33:04 +01:00