Commit Graph

737 Commits

Author SHA1 Message Date
Ivan Shmidt 9fe15e6726 feat: point all backend to src 2020-06-15 22:34:53 +02:00
Ivan Shmidt b705cfb8ed Merge branch 'master' of github.com:spotify/backstage into shmidt-i/backend-hmr-2 2020-06-15 21:25:37 +02:00
Fredrik Adelöw e21f3e5850 Merge pull request #1304 from spotify/freben/entity-per-file
chore(catalog-backend): split apart example components and register in loop
2020-06-15 16:54:39 +02:00
Fredrik Adelöw a064515684 chore(catalog-backend): split apart example components and register in loop 2020-06-15 16:49:37 +02:00
Niklas Ek 83043c870c Merge pull request #1264 from chanwit/add-err-msg-list-cluster
gitops-plugin: add meaningful error message for the cluster listing page
2020-06-15 16:48:56 +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
blam f3245c4f8f chore(catalog/msw): resetting package.json 2020-06-15 14:57:53 +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
Fredrik Adelöw 8f82336198 fix(catalog-backend): make location delete work again 2020-06-15 13:25:57 +02:00
Stefan Ålund 1855bf381b Add Other component category (#1292) 2020-06-15 12:58:20 +02:00
Fredrik Adelöw 8bab0e4b18 Merge pull request #1269 from spotify/freben/search-gone-wild
feat(catalog-backend): support wildcard matching on entities
2020-06-15 12:06:50 +02:00
Fredrik Adelöw 559a6e4a50 additional sqli protection 2020-06-15 12:01:14 +02:00
Fredrik Adelöw 92774dc9f6 return 204 when there's no response data 2020-06-15 11:34:46 +02:00
Patrik Oldsberg 7b888f5bfc Merge pull request #1280 from spotify/rugvip/migrate-js
plugins/catalog-backend: move migrations to JS with type annotations
2020-06-15 11:08:57 +02:00
Patrik Oldsberg ca43ea61cf Merge pull request #1281 from spotify/rugvip/winston
packages/backend-common: import winston as namespace
2020-06-15 10:38:34 +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
Fredrik Adelöw 1b2d70a70d catalog: suffix entiy kind typeswith Entity 2020-06-15 09:25:28 +02:00
Fredrik Adelöw 319012e0f9 feat(catalog): new kind LocationRef 2020-06-15 09:10:11 +02:00
Patrik Oldsberg 3bdcc175d9 packages/backend-common: import winston as namespace 2020-06-14 13:44:32 +02:00
Patrik Oldsberg 7fac58f23d plugins/catalog-backend: typecheck migration files 2020-06-14 13:21:06 +02:00
Patrik Oldsberg e840d9c20a plugins/catalog-backend: move migrations to JS with type annotations 2020-06-14 13:13:59 +02:00
Patrik Oldsberg dbc29358ed v0.1.1-alpha.8 2020-06-12 22:09:21 +02:00
ewnd9 a6b775540f chore(lighthouse): toggle private in package.json 2020-06-12 19:42:58 +03:00
Fredrik Adelöw 9d28108cb8 Merge pull request #1271 from spotify/freben-patch-2
docs(catalog-backend): update readme to be more accurate and helpful
2020-06-12 16:46:32 +02:00
Fredrik Adelöw b902e63dd8 Update README.md 2020-06-12 16:21:11 +02:00
Fredrik Adelöw da6f33a13f chore(backend): make the sentry handling work better 2020-06-12 15:36:19 +02:00
Fredrik Adelöw 51b780b061 feat(catalog-backend): support wildcard matching on entities 2020-06-12 15:16:16 +02:00
Raghunandan Balachandran 8da3774f79 Merge pull request #1266 from spotify/mob/config-env
Auth Backend: read env config
2020-06-12 14:53:14 +02:00
Raghunandan 2c6b8659d3 review fixes 2020-06-12 14:40:06 +02:00
Raghunandan 33a96003c2 fail gracefully if sentry token is missing in localhost 2020-06-12 14:28:18 +02:00
Fredrik Adelöw 66fef7f2e4 chore(catalog-backend): use code instead of db to implement similarity rule 2020-06-12 13:41:05 +02:00
Raghunandan 5f13a53c6a Making auth backend work based on config. Config is yet to be read from the YAML and passed in. Localhost development will fail gracefully if AUTH config env vars are not set 2020-06-12 12:06:46 +02:00
Fredrik Adelöw 7de5e10408 feat(catalog-backend): reject almost-same-name entities 2020-06-12 12:04:56 +02:00
Chanwit Kaewkasi 4074aff376 gitops-plugin: add meaningful error message for the cluster listing page 2020-06-12 14:19:29 +07:00
Ben Lambert b25f44ec31 Merge branch 'master' into blam/react-router 2020-06-12 01:52:55 +02:00
blam 55cc1584e1 chore(catalog/swr): Removing superfluous import for useEffect 2020-06-12 00:53:05 +02:00
blam 5ae13652fe feat(catalog/swr): simplify the code significantly. now we are talking. this library is the nutz 2020-06-12 00:34:11 +02:00
blam 1a581d4d26 feat(catalog/swr): Added a nice stale-while-revalidate pattern for fetching data 2020-06-12 00:29:42 +02:00
blam 6af18f7e27 feat(catalog/msw): fixed merge conflicts and fixed some comments 2020-06-11 23:23:52 +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 6f80d1b9bb chore(react-router-v6): Fixing what I think is the last of the routing for the application 2020-06-11 21:31:02 +02:00
blam 47766635b6 chore(react-router-v6): Fixing navigation in the lighthouse plugin 2020-06-11 20:20:58 +02:00
blam da493b1fc9 chore(react-router-v6): revert paralell for tests, as my computer stared over 9000 node processes making my machine grind to a machine babbage would have disapointed with 2020-06-11 19:12:58 +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 c1a21d53af Merge branch 'master' of github.com:spotify/backstage into blam/react-router
* 'master' of github.com:spotify/backstage: (45 commits)
  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
  fix(catalog): moar clean up
  fix(catalog): make code intention clear by renaming
  Merge pull request #1214 from spotify/feat/star-components
  Merge pull request #1194 from spotify/freben/backend-common-service
  Merge pull request #1215 from spotify/mob/sidebar-auth
  ...
2020-06-11 17:36:37 +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 d689f664b8 Merge pull request #1255 from spotify/freben/simple-filters
chore(catalog): simplify the filter types a little
2020-06-11 16:13:45 +02:00
Fredrik Adelöw 469e362881 chore(catalog): simplify the filter types a little 2020-06-11 15:16:25 +02:00
Patrik Oldsberg 8d4e3080e9 Merge pull request #1068 from chanwit/gitops-profiles
New plugin for creating GitOps-managed Kubernetes right from Backstage.
2020-06-11 15:03:27 +02:00
Fredrik Adelöw 5ee0bd47d9 fix(catalog-backend): update the mock-data script to point to new example entities 2020-06-11 14:51:43 +02:00