Commit Graph

307 Commits

Author SHA1 Message Date
blam 85d1fbaf3c chore(backend-common): expose a create logger function 2020-06-24 13:57:19 +02:00
blam 18a6a68dd0 Merge branch 'master' of github.com:spotify/backstage into mob/cookiecutter-templater
* 'master' of github.com:spotify/backstage: (21 commits)
  auth-backend: clean up comments + fix getting email from profile
  feat(catalog): show owner and lifecycle in header
  chore(catalog): move the entity examples to catalog-model
  plugins/graphiql: grayscale icon
  app: add graphiql plugin with gitlab and github endpoints
  dev-utils: add google and github auth APIs to default api factories
  plugins/graphiql: add GitHub endpoint with automatic scope detection
  build(deps): bump yup from 0.28.5 to 0.29.1
  v0.1.1-alpha.12
  packages: publish entire dist folder
  build(deps-dev): bump @storybook/addon-links from 5.3.18 to 5.3.19 (#1414)
  v0.1.1-alpha.11
  cli: include assets-types in published package
  storybook: update identity api mock
  core-api: update loginPopup tests
  core: fix sign-in hot reloading issues and unmounted component access
  core-api: update web message response handling in loginPopup to expect RFC format
  Identity and profile work, wip
  build(deps): bump @rollup/plugin-node-resolve from 7.1.3 to 8.1.0
  backend - fix types + refactoring
  ...
2020-06-24 10:50:34 +02:00
Fredrik Adelöw 1ca24a1b19 Merge pull request #1416 from spotify/dependabot/npm_and_yarn/rollup/plugin-node-resolve-8.1.0
build(deps): bump @rollup/plugin-node-resolve from 7.1.3 to 8.1.0
2020-06-24 08:39:11 +02:00
Fredrik Adelöw bbd0c08f96 Merge pull request #1182 from spotify/dependabot/npm_and_yarn/rollup/plugin-commonjs-13.0.0
build(deps): bump @rollup/plugin-commonjs from 12.0.0 to 13.0.0
2020-06-24 08:34:54 +02:00
dependabot-preview[bot] 61f89dd90b build(deps): bump yup from 0.28.5 to 0.29.1
Bumps [yup](https://github.com/jquense/yup) from 0.28.5 to 0.29.1.
- [Release notes](https://github.com/jquense/yup/releases)
- [Changelog](https://github.com/jquense/yup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jquense/yup/compare/v0.28.5...v0.29.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-23 21:29:26 +00:00
dependabot-preview[bot] 086417829d build(deps-dev): bump @storybook/addon-links from 5.3.18 to 5.3.19 (#1414)
Bumps [@storybook/addon-links](https://github.com/storybookjs/storybook/tree/HEAD/addons/links) from 5.3.18 to 5.3.19.
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v5.3.19/addons/links)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-23 22:19:32 +02:00
blam 81ab44eae8 Merge branch 'master' of github.com:spotify/backstage into mob/cookiecutter-templater
* 'master' of github.com:spotify/backstage: (42 commits)
  chore(techdocs-core): remove the extremely narrow python version requirement
  fix(techdocs-core): add empty line
  fix(techdocs-core): correct development status classifier
  fix(techdocs-core): add empty line
  fix(techdocs-core): update email
  fix(techdocs-core): corrected license
  fix(techdocs-core): add license headers
  Update setup.py
  fix(techdocs-core): remove generated .gitignore
  feat(techdocs-core): Adds skeleton of techdocs-core defaults
  Create adopters.md (#1412)
  fix(mkdocs): update index.md
  fix(mkdocs): update site name
  docs(mkdocs): add readme
  docs(techdocs): update readme with link to mkdocs readme
  feat(mkdocs): mkdocs docker container
  cli: added jest transform for static assets
  plugins/graphiql: move graphiql icon out as separate icon svg
  core: move error page MicDrop out as separate svg file
  cli: allow svg imports and special .icon.svg import
  ...
2020-06-23 16:54:39 +02:00
dependabot-preview[bot] 7bee339222 build(deps): bump @rollup/plugin-node-resolve from 7.1.3 to 8.1.0
Bumps [@rollup/plugin-node-resolve](https://github.com/rollup/plugins) from 7.1.3 to 8.1.0.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Commits](https://github.com/rollup/plugins/compare/node-resolve-v7.1.3...node-resolve-v8.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-23 12:08:45 +00:00
Patrik Oldsberg 3ebad8911e Merge pull request #1410 from spotify/rugvip/svg
Fix types for static assets and handle svg imports
2020-06-23 14:04:05 +02:00
Ivan Shmidt bc15e7a710 feat(scaffolder): cookiecutter templater wip
Co-authored-by: Ben Lambert <ben@blam.sh>
2020-06-23 11:56:56 +02:00
Patrik Oldsberg 747acd2dfc cli: allow svg imports and special .icon.svg import 2020-06-23 09:26:05 +02:00
blam d721c5c2d2 Merge branch 'master' of github.com:spotify/backstage into blam/github-as-source
* 'master' of github.com:spotify/backstage: (52 commits)
  build(deps): bump @rollup/plugin-json from 4.0.3 to 4.1.0 (#1360)
  build(deps-dev): bump lerna from 3.22.0 to 3.22.1 (#1390)
  build(deps): bump graphql from 15.0.0 to 15.1.0 (#1391)
  core-api: switch IdentityApi id token access to async
  Adding name of signed in user to greeting message (#1387)
  Fix CircleCI plugin (#1384)
  packages/core: update to not use default exports for components
  auth-backend: clean up naming and types of TokenFactory time handling
  auth-backend: some review feedback of oidc bits
  auth-backend: remove logging from DatabaseKeyStore
  auth-backend: more docs for TokenFactory
  auth-backend: added tests for TokenFactory and fix keyDuration being ignored
  auth-backend: added tests for DatabaseKeyStore
  auth-backend: refactor identity to remove logic from storage layer
  auth-backend: document identity types
  auth-backend: refactor identity APIs for forwards compatibility
  auth-backend: update standalone setup to use service builder and HMR
  auth-backend: issue user id tokens when signing in with google or github
  auth-backend: move logger setup out from constructors and use non-reserved fields
  auth-backend: make key duration configurable
  ...
2020-06-22 13:38:02 +02:00
Patrik Oldsberg 0ddabab956 Merge pull request #1380 from spotify/rugvip/oidc
auth-backend: Add lightweight OpenID Provider discovery and token issuing
2020-06-22 11:26:20 +02:00
dependabot-preview[bot] 1c44701753 build(deps): bump @rollup/plugin-json from 4.0.3 to 4.1.0 (#1360)
Bumps [@rollup/plugin-json](https://github.com/rollup/plugins) from 4.0.3 to 4.1.0.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Commits](https://github.com/rollup/plugins/compare/json-v4.0.3...json-v4.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-22 09:54:07 +02:00
dependabot-preview[bot] a3d1d49f05 build(deps-dev): bump lerna from 3.22.0 to 3.22.1 (#1390)
Bumps [lerna](https://github.com/lerna/lerna/tree/HEAD/core/lerna) from 3.22.0 to 3.22.1.
- [Release notes](https://github.com/lerna/lerna/releases)
- [Changelog](https://github.com/lerna/lerna/blob/master/core/lerna/CHANGELOG.md)
- [Commits](https://github.com/lerna/lerna/commits/v3.22.1/core/lerna)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-22 09:53:36 +02:00
dependabot-preview[bot] e62cc606fb build(deps): bump graphql from 15.0.0 to 15.1.0 (#1391)
Bumps [graphql](https://github.com/graphql/graphql-js) from 15.0.0 to 15.1.0.
- [Release notes](https://github.com/graphql/graphql-js/releases)
- [Commits](https://github.com/graphql/graphql-js/compare/v15.0.0...v15.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-22 09:53:17 +02:00
Patrik Oldsberg 0a305d7f70 auth-backend: initial identity provider implementation 2020-06-21 17:00:49 +02:00
blam 22fbe0aaab feat(scaffolder): added the ability to process github remote sources, without authenication for now at least 2020-06-20 05:56:48 +02:00
dependabot-preview[bot] b7a1946efe build(deps-dev): bump msw from 0.19.3 to 0.19.4 (#1375)
Bumps [msw](https://github.com/mswjs/msw) from 0.19.3 to 0.19.4.
- [Release notes](https://github.com/mswjs/msw/releases)
- [Commits](https://github.com/mswjs/msw/compare/v0.19.3...v0.19.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-19 22:57:48 +02:00
dependabot-preview[bot] 44f717deee build(deps): bump @types/react from 16.9.25 to 16.9.37 (#1342)
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 16.9.25 to 16.9.37.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-18 09:17:48 +02:00
dependabot-preview[bot] 15b840acb6 build(deps): bump rollup-plugin-esbuild from 2.0.0 to 2.1.0 (#1361)
Bumps rollup-plugin-esbuild from 2.0.0 to 2.1.0.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-18 09:17:22 +02:00
dependabot-preview[bot] 66a0bab7f9 build(deps-dev): bump lint-staged from 10.2.9 to 10.2.11 (#1359)
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.2.9 to 10.2.11.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v10.2.9...v10.2.11)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-18 09:16:59 +02:00
dependabot-preview[bot] d4653864fb build(deps): bump react-helmet from 6.0.0 to 6.1.0 (#1327)
Bumps [react-helmet](https://github.com/nfl/react-helmet) from 6.0.0 to 6.1.0.
- [Release notes](https://github.com/nfl/react-helmet/releases)
- [Changelog](https://github.com/nfl/react-helmet/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nfl/react-helmet/compare/6.0.0...6.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-17 21:18:38 +02:00
dependabot-preview[bot] 455362285d build(deps): bump swr from 0.2.2 to 0.2.3 (#1326)
Bumps [swr](https://github.com/zeit/swr) from 0.2.2 to 0.2.3.
- [Release notes](https://github.com/zeit/swr/releases)
- [Commits](https://github.com/zeit/swr/compare/0.2.2...0.2.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-17 16:35:33 +02:00
Patrik Oldsberg 23d43f572c Merge pull request #1325 from spotify/rugvip/backbuild
packages/cli: add backend:build and use in all backend packages
2020-06-17 10:01:22 +02:00
Stefan Ålund 947c752468 Add Welcome msgs to catalog (#1306)
* Add Welcome msgs to catalog

* Fix importing of greetings

* Fix broken test
2020-06-17 09:54:52 +02:00
Patrik Oldsberg 76fd9f9401 packages,plugins: use backend:build for all backend packages + publish config and no tsconfig 2020-06-17 00:03:28 +02:00
Ivan Shmidt 404bc724fb refactor(cli): split out bundling config for BE 2020-06-16 00:27:02 +02:00
Ivan Shmidt 0c27fc1a7b Merge branch 'master' of github.com:spotify/backstage into shmidt-i/backend-hmr-2 2020-06-15 15:46:23 +02:00
Ben Lambert 98b92728fe Merge pull request #1221 from spotify/blam/msw
Use MSW for the Catalog for mocking network requests
2020-06-15 15:10:54 +02:00
Ivan Shmidt c5ac3dfbf8 Merge pull request #1290 from spotify/shmidt-i/yarn-tsc-error-message
More explicit error message when missing .d.ts files
2020-06-15 15:10:05 +02:00
blam fe3ec5d3c6 Merge branch 'master' of github.com:spotify/backstage into blam/msw
* 'master' of github.com:spotify/backstage: (63 commits)
  packages/cli: add lint rule to avoid cross-package src imports
  fix(catalog-backend): make location delete work again
  Add Other component category (#1292)
  packages/core-api: add initial definition of IdentityApi
  additional sqli protection
  build(deps): bump eslint from 7.1.0 to 7.2.0 (#1285)
  return 204 when there's no response data
  build(deps-dev): bump @types/codemirror from 0.0.95 to 0.0.96 (#1284)
  build(deps-dev): bump @types/morgan from 1.9.0 to 1.9.1 (#1287)
  build(deps): bump chalk from 4.0.0 to 4.1.0 (#1286)
  catalog: suffix entiy kind typeswith Entity
  feat(catalog): new kind LocationRef
  packages/cli: assume browser build if esm output is included
  packages/backend-common: import winston as namespace
  plugins/catalog-backend: typecheck migration files
  plugins/catalog-backend: move migrations to JS with type annotations
  packages/cli: fix jest module mapper to only match entire module name
  github/workflows: use env app config to set e2e test port
  packages/cli: use app.baseUrl to configure dev server
  packages/config-loader: more docs!
  ...
2020-06-15 14:53:24 +02:00
Ivan Shmidt 2e369402a9 fix(cli): bump rollup-plugin-esbuild 2020-06-15 14:29:08 +02:00
dependabot-preview[bot] a73eadc27a build(deps): bump eslint from 7.1.0 to 7.2.0 (#1285)
Bumps [eslint](https://github.com/eslint/eslint) from 7.1.0 to 7.2.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.1.0...v7.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-15 11:40:18 +02:00
dependabot-preview[bot] 6ff1a1f547 build(deps-dev): bump @types/codemirror from 0.0.95 to 0.0.96 (#1284)
Bumps [@types/codemirror](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/codemirror) from 0.0.95 to 0.0.96.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/codemirror)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-15 10:36:07 +02:00
dependabot-preview[bot] 4d0b3f19ac build(deps-dev): bump @types/morgan from 1.9.0 to 1.9.1 (#1287)
Bumps [@types/morgan](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/morgan) from 1.9.0 to 1.9.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/morgan)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-15 10:35:36 +02:00
dependabot-preview[bot] 45c27aa8a0 build(deps): bump chalk from 4.0.0 to 4.1.0 (#1286)
Bumps [chalk](https://github.com/chalk/chalk) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/chalk/chalk/releases)
- [Commits](https://github.com/chalk/chalk/compare/v4.0.0...v4.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-15 10:35:09 +02:00
dependabot-preview[bot] 1204ee50f5 build(deps): bump typescript from 3.9.3 to 3.9.5 (#1240)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.9.3 to 3.9.5.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.9.3...v3.9.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-12 22:40:48 +02:00
Ben Lambert b25f44ec31 Merge branch 'master' into blam/react-router 2020-06-12 01:52:55 +02:00
blam 2face4e519 chore(swr): Updating the yarn.lock 2020-06-12 00:29:22 +02:00
blam 6130e11280 Merge branch 'master' of github.com:spotify/backstage into blam/msw
* 'master' of github.com:spotify/backstage: (76 commits)
  Fix incorrect backend path in docs (#1258)
  packages/core-api: temporary solution for giving access to config when creating APIs
  chore(catalog): simplify the filter types a little
  fix(catalog-backend): update the mock-data script to point to new example entities
  renamed example_components to example-components and deleted old exampled
  feat(catalog): add back ability for OR/IN type searches
  Add sample plugins to sidebar (#1243)
  chore(catalog): rename all pages and components to use Entity nomenclature
  fix(catalog): moar clean up
  Updated examples
  fix(catalog): add types and clean up code
  Added owner and lifecycle to catalog table, slightly updated examples
  chore(catalog): the component type is gone
  yarn.lock again...
  fix(catalog): merge errors
  review fixes. i thought about another force update for a moment :D
  move components to separate files
  Use URLSearchParams
  fix(catalog): moar clean up
  fix(catalog): make code intention clear by renaming
  ...
2020-06-11 23:12:27 +02:00
blam 7ecfceac0f chore(react-router-v6): made some more progress on getting the tests passing 2020-06-11 18:35:53 +02:00
blam 48aacfbe17 Merge branch 'master' of github.com:spotify/backstage into blam/react-router
* 'master' of github.com:spotify/backstage: (89 commits)
  Use URLSearchParams
  Use location?.type once more
  chore(catalog): clean up CatalogTable, use only Entity
  chore(catalog): clean up ComponentPage, use only Entity
  chore(catalog): tweak getEntityByName a bit, handle 404s properly
  chore(catalog/star): only set the cache if there are entries from the response
  chore(catalog/star): added a comment about why we are using a simple cache here
  chore(catalog/star): removing msw dependency, wrong branch
  chore(catalog): consistent use of named exports
  chore(msw): Added msw dependency
  chore(catalog/star): fixing issues with unmocked deps
  chore(catalog/star): adding a simple cache to stop flicker as a stopgap
  chore(catalog/star): reworking how the starring works, it now stores uri sort of references for entities
  fix(core): Tabs useEffect dependency list
  docs: format with prettier (#1218)
  Optional namespace and name as one part of URL
  docs/auth: added overview, oauth description and glossary
  docs: added plantuml generation script
  docs: added prettier config
  Remove deleted UserBadge component from Sidebar story
  ...
2020-06-11 17:36:19 +02:00
Fredrik Adelöw dadd9c7705 yarn.lock again... 2020-06-11 08:48:38 +02:00
Ivan Shmidt a1a60ad9d1 feat: hmr logic for the backend 2020-06-11 02:51:06 +02:00
Ivan Shmidt d2e25082df feat(cli): backend webpack serve 2020-06-10 21:49:55 +02:00
blam fb8e8e1351 feat(catalog/msw): Implementing msw for a test with the CatalogApi Client 2020-06-10 02:56:24 +02:00
blam 01d0f3ae80 chore(msw): Added msw dependency
(cherry picked from commit 1c73ca376b)
2020-06-10 02:18:27 +02:00
blam 1c73ca376b chore(msw): Added msw dependency 2020-06-10 02:14:00 +02:00
blam 74b087daf8 chore(catalog/star): adding a simple cache to stop flicker as a stopgap 2020-06-10 02:04:41 +02:00