Commit Graph

1341 Commits

Author SHA1 Message Date
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
blam 6a64ed933f chore(react-router-v6): quick fix for some type problems 2020-06-12 02:44:10 +02:00
blam 2d543b9a3a chore(react-router-v6): reverting an old story 2020-06-12 02:24:53 +02:00
Patrik Oldsberg ed8436717a packages/config-loader: add support for transforming config and identifying secrets 2020-06-12 01:24:18 +02:00
blam 22e411df3b chore(react-router-v6): fixing the comment 2020-06-11 21:48:07 +02:00
blam 196ea291ea Merge branch 'master' of github.com:spotify/backstage into blam/react-router
* 'master' of github.com:spotify/backstage:
  Fix incorrect backend path in docs (#1258)
  packages/core-api: temporary solution for giving access to config when creating APIs
2020-06-11 21:15:45 +02:00
Stefan Ålund 7c088c5595 Fix incorrect backend path in docs (#1258) 2020-06-11 21:03:38 +02:00
blam acfe3103dc chore(react-router-v6): fixing broken test with the new router pattern 2020-06-11 21:03:04 +02:00
blam 0cd9a8a7d4 chore(react-router-v6): tidy up parts of the PR i wasn't happy with 2020-06-11 20:42:39 +02:00
blam 273db0314a chore(react-router-v6): Managed to get the Link + Button components working as expected 2020-06-11 20:35:48 +02:00
Patrik Oldsberg 9964401263 packages/core-api: temporary solution for giving access to config when creating APIs 2020-06-11 19:24:36 +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
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
Ivan Shmidt d85e78bd2b fix(cli): adjusted build and main field for backend 2020-06-11 14:29:15 +02:00
Stefan Ålund d0518ee5d9 Add sample plugins to sidebar (#1243)
* Add sample plugins to sidebar

* Update RadarPage.test.tsx
2020-06-11 12:25:15 +02:00
Raghunandan Balachandran 9d169240dd Merge pull request #1210 from spotify/mob/observe-auth
auth: Observe changes in session for providers.
2020-06-11 09:51:10 +02:00
Ivan Shmidt a1a60ad9d1 feat: hmr logic for the backend 2020-06-11 02:51:06 +02:00
Ivan Shmidt 0331d33a37 fix(cli): remove modules from webpack config 2020-06-10 23:29:26 +02:00
Ivan Shmidt 96c295b0e1 fix(cli): lint 2020-06-10 22:00:55 +02:00
Ivan Shmidt d2e25082df feat(cli): backend webpack serve 2020-06-10 21:49:55 +02:00
Raghunandan d1160d0849 review fixes. i thought about another force update for a moment :D 2020-06-10 21:22:09 +02:00
Raghunandan 7accc4c0c0 move components to separate files 2020-06-10 18:03:03 +02:00
Fredrik Adelöw 388cb18ed2 Merge pull request #1194 from spotify/freben/backend-common-service
feat(backend-common): add common code for service shell
2020-06-10 11:33:24 +02:00
Raghunandan 4c205d039d refactoring to have side item components based on provider type 2020-06-10 10:31:38 +02:00
Raghunandan 76b8e1310d review fixes 2020-06-10 10:31:36 +02:00
Marcus Eide 8ea1c74153 Refactor auth provider classes to extend ObservableSession class 2020-06-10 10:30:43 +02:00
Marcus Eide fa320b5e34 Observe login/logout changes for providers 2020-06-10 10:30:43 +02:00
Niklas Ek 990ab12669 Merge pull request #1215 from spotify/mob/sidebar-auth
List auth providers
2020-06-10 10:22:30 +02:00
Sebastian Qvarfordt 4cc80f8915 Merge pull request #1076 from ayshiff/feature/tabs-component
feat(core): Tabs component
2020-06-10 10:10:50 +02:00
Patrik Oldsberg 592ca02612 Merge branch 'master' into gitops-profiles 2020-06-09 23:24:34 +02:00
Rémi DOREAU 40aca74b19 fix(core): Tabs useEffect dependency list 2020-06-09 19:52:05 +02:00
nikek 2b39be42f0 Remove deleted UserBadge component from Sidebar story 2020-06-09 18:17:19 +02:00
nikek 9e8cab219a remove LoggedUserBadge 2020-06-09 15:36:24 +02:00
nikek 8a3b1ec93e make the sidebar pin button show up again 2020-06-09 15:32:34 +02:00
Fredrik Adelöw 709cc4004d feat(backend-common): add common code for service shell 2020-06-09 15:10:37 +02:00
Patrik Oldsberg c53bafc5f9 v0.1.1-alpha.7 2020-06-09 14:24:56 +02:00
Ben Lambert 00d33f93e4 Enable Filtering of the Catalog Page (#1143)
* feat(catalog/Filters): Add ability to render a React component as the count. Good for loading states and async data rendering for counts.

* chore(Catalog/filters): Updating the table so that we use loading states of the table rather than the panel

* chore(Catalog/filters): added some nice things for enabling the filtering with some nice count componeents

* feat(Catalog/filters): Fetch the correct data and added in enum types to make some nice resolvers

* chore(Catalog/filters): Use the new enum type here

* chore(Catalog/filters): Removing the unused import to fix lintig

* chore(Catalog/filters): Addressing some PR comments

* feat(catalog/filters): Making WebStorage return the same instance for the same bucket for subscriptions

* chore(core/Storage): fixing some issues with different instances of the storage and adding tests for it

* chore(catalog/filters): fixing some tests and trying to remove some of the act warnings in the tests
2020-06-09 13:28:40 +02:00
blam cf204edeb2 chore:(react-router-v6): Moving more logic across to react-router-v6 2020-06-09 11:57:48 +02:00
Fredrik Adelöw 4d7b28e89c Merge pull request #1199 from spotify/freben/unregister
Unbreak the unregister dialog after catalog changes
2020-06-09 10:33:15 +02:00
Fredrik Adelöw 5f56f981b5 Unbreak the unregister dialog after catalog changes 2020-06-09 10:18:38 +02:00
Marcus Eide 14f104aa1e await promise.all when setting isSignedIn 2020-06-09 10:05:48 +02:00
Marcus Eide e9a2444c9a Documentation: Add guide for how to add an auth provider to the backend (#1145)
* Add guide for how to add a auth provider to the backend

* Move to new docs folder and small corrections

* Split oauth and non-oauth use-cases up and add more info about the verifyFunc

* Move summary to top and add note about non-oauth providers being experimental
2020-06-09 09:39:27 +02:00
Stefan Ålund 920f496a7f Use service theme (#1197)
* Use service theme

* Theme spacing

* breadcrumbs
2020-06-08 20:45:26 +02:00
Benjamin Rowell 056c794451 Make DismissibleBanner persistently dismissed #1153 (#1168)
* Enables DismissableBanner instance in localstorage

When dismissed, a string representation of the DismissableBanner
is sent to localstorage using the storageapi, to allow persistance in
a user session.

* Adds tests and cleans up DismissableBanner changes

DismissbleBanner now has an id prop. This prop is used when
adding a dismissed banner instance to web storage.

The namespace dismissed banners are added to is now set to
"notifications".

Removed refrences to old settings.

Added a test to check web storage functionality.

Updates CatalogPage to add id prop.

Updates CatalogPage test to ensure storageApiRef is valid.

* Updates DismissableBanner stories to include id.

* Adds ApiProvider to DismissableBanner stories.

* Trigger CI

* Removed jest calls and replaced with ErrorApi.

* Updates imports to @backstage/core
2020-06-08 20:16:51 +02:00
Patrik Oldsberg 2bbdf644c8 Merge pull request #1203 from spotify/rugvip/apimocks
packages/test-utils: added MockErrorApi and include in all test apps
2020-06-08 18:57:08 +02:00