Commit Graph

49 Commits

Author SHA1 Message Date
Rbillon59 e139961b48 refactor: factorise addBadge and getUuidFromBadgeMetadata to one endpoint handling both cases
Signed-off-by: Rbillon59 <r.billon@celonis.com>
2023-05-03 18:47:41 +02:00
Rbillon59 29078a6c05 chore(badges): Enhance warning in readme and describe how to allow configuration reading from frontend. Move remaining tests files beside the tested code
Signed-off-by: Rbillon59 <r.billon@celonis.com>
2023-05-02 16:06:11 +02:00
Rbillon59 2fbf5300c5 chore(badges): improve error handling, improve visibility splitting if else block to functions, move db test file beside the tested file
Signed-off-by: Rbillon59 <r.billon@celonis.com>
2023-04-28 23:57:17 +02:00
Rbillon59 6263ef7ce9 feat(badges): Remove hash implementation and replace it with uuid one.
Signed-off-by: Rbillon59 <r.billon@celonis.com>
2023-04-28 23:57:17 +02:00
Rbillon59 1aabf9e03f chore(plugins): Refactor the badge backend to store data in database instead of memory. Fix conversation as well
Signed-off-by: Rbillon59 <r.billon@celonis.com>
2023-04-28 23:57:16 +02:00
Rbillon59 a0108c4977 feat(plugins): Update frontend and backend badges plugin to implement an obfuscation feature to limit security risks when opening badges to public
Signed-off-by: Rbillon59 <r.billon@celonis.com>
2023-04-28 23:55:48 +02:00
Patrik Oldsberg cbe69fa263 fix formatting
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-01-27 12:05:53 +01:00
Fredrik Adelöw 9bafcfc209 update tests to be more robust against catalog-client changes
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-11-14 16:55:48 +01:00
Fredrik Adelöw 2d3a5f09ab json
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-10-06 15:00:36 +02:00
Taras 93a1072a0a Updated tests to include validateEntity in mocks
Signed-off-by: Taras <tarasm@gmail.com>
2022-09-07 18:12:01 -04:00
Fredrik Adelöw ef9ab322de it just keeps 🧹 -ing
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-08-18 17:21:00 +02:00
Patrick Jungermann 4c93fd36ee feat: allow overriding getMarkdownCode
allow overriding `DefaultBadgeBuilder.getMarkdownCode`

Signed-off-by: Patrick Jungermann <Patrick.Jungermann@gmail.com>
2022-03-26 01:11:48 +01:00
Dimitris Apostolou aedd4daa66 Fix typos
Signed-off-by: Dimitris Apostolou <dimitris.apostolou@icloud.com>
2022-03-13 14:12:05 +02:00
Fredrik Adelöw bf95bb806c remove CatalogApi.getEntityByName
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-03-05 14:42:10 +01:00
Fredrik Adelöw 899f196af5 update to use getEntityByRef
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-03-03 13:27:25 +01:00
Fredrik Adelöw 6e1cbc12a6 update the catalog client to add getEntityFacets
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-02-17 13:59:27 +01:00
Fredrik Adelöw deaf6065db Removed CatalogApi.geLocationByEntity and CatalogApi.getOriginLocationByEntity, and replaced them with CatalogApi.getLocationByRef.
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-02-15 19:47:34 +01:00
Johan Haals 7aeb491394 catalog-model: deprecate ENTITY_DEFAULT_NAMESPACE, replace with DEFAULT_NAMESPACE
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2022-02-15 10:27:57 +01:00
Otto Sichert b23bc7f9c3 Change default port of backend to 7007 due to MacOS Control Center update
Signed-off-by: Otto Sichert <git@ottosichert.de>
2021-11-18 16:45:57 +01:00
Johan Haals 604987599e chore: Adds missing method to mocked catalog APIs
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-10-06 09:12:35 +02:00
Johan Haals dbcaa6387a Catalog: Add refresh button to AboutCard
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-09-17 09:15:14 +02: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
Fredrik Adelöw 923491eece run prettier formatting
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-08-09 11:54:38 +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
Fredrik Adelöw 3108ff7bfd Make yarn dev for backends respect the PLUGIN_PORT env var
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-06-14 14:46:19 +02:00
Bastian Gutschke a286a63976 fix(badges-backend): properly build entity uri
Signed-off-by: Bastian Gutschke <bastian.gutschke@gmx.de>
2021-05-12 23:27:36 +02:00
Patrik Oldsberg 47cfa45c18 Merge pull request #5040 from erikxiv/fix/badge-auth
fix: support auth in badge plugin
2021-04-06 20:39:22 +02:00
Ben Lambert d53d01dcf5 Merge pull request #5027 from kaos/badges_test_coverage
badges: improve test coverage.
2021-03-31 11:09:46 +02:00
Fredrik Adelöw 676ede6438 Update the entity unregister dialog behavior, to support both unregistration as well as plain deletion
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-03-26 09:07:05 +01:00
Erik Larsson 839743bf3e fix tests
Signed-off-by: Erik Larsson <erik.larsson@schibsted.com>
2021-03-21 12:20:44 +01:00
Erik Larsson d0b4ebf22c fix: support auth in badge plugin
Signed-off-by: Erik Larsson <erik.larsson@schibsted.com>
2021-03-21 08:24:34 +01:00
Andreas Stenius d207f94b6e badges: improve test coverage.
Signed-off-by: Andreas Stenius <andreas.stenius@svenskaspel.se>
2021-03-19 12:54:40 +01:00
Andreas Stenius c46ab4afba badges: refactoring after review from @freben.
Signed-off-by: Andreas Stenius <andreas.stenius@svenskaspel.se>
2021-03-19 08:42:41 +01:00
Andreas Stenius 97836e51f1 badges: use new error api. revert css layout tweak for CodeSnippet. add basic frontend test. improve doc.
Signed-off-by: Andreas Stenius <andreas.stenius@svenskaspel.se>
2021-03-19 08:42:41 +01:00
Andreas Stenius 19f4048e75 badges-backend: add router and api tests.
Signed-off-by: Andreas Stenius <andreas.stenius@svenskaspel.se>
2021-03-19 08:42:41 +01:00
Andreas Stenius 5a09c681d7 badges: refactoring to use badge factories to create dynamic badges.
Signed-off-by: Andreas Stenius <andreas.stenius@svenskaspel.se>
2021-03-19 08:41:13 +01:00
Andreas Stenius 6a68e79217 badges-backend: drop support for defining badges in app config.
Signed-off-by: Andreas Stenius <andreas.stenius@svenskaspel.se>
2021-03-19 08:41:13 +01:00
Andreas Stenius 0f30b99bc2 badges: cleanup. enforce all template fields to be lower case. thanx @adamdmharvey
Signed-off-by: Andreas Stenius <git@astekk.se>
2021-03-19 08:41:13 +01:00
Andreas Stenius 38cc67e551 badge: type tweaks.
Signed-off-by: Andreas Stenius <git@astekk.se>
2021-03-19 08:41:13 +01:00
Andreas Stenius ac17aeb35d badges: load default badges from code rather than config. #4457.
Signed-off-by: Andreas Stenius <git@astekk.se>
2021-03-19 08:41:12 +01:00
Andreas Stenius ce4897ff37 badges: fix type issues.
Signed-off-by: Andreas Stenius <git@astekk.se>
2021-03-19 08:41:12 +01:00
Andreas Stenius 45e26d7956 badges-backend: template replace should replace all occurences.
Signed-off-by: Andreas Stenius <git@astekk.se>
2021-03-19 08:41:12 +01:00
Andreas Stenius 8bf248799d badges: refactoring frontend plugin.
Signed-off-by: Andreas Stenius <git@astekk.se>
2021-03-19 08:41:12 +01:00
Andreas Stenius 323ec6f7ca badges-backend: refactoring and support returning json as well as svg image.
Signed-off-by: Andreas Stenius <git@astekk.se>
2021-03-19 08:41:12 +01:00
Andreas Stenius b99231c0bc badges: move to context menu. support for multiple badges from config. #4457.
Signed-off-by: Andreas Stenius <git@astekk.se>
2021-03-19 08:41:12 +01:00
Andreas Stenius 798002ee03 badges-backend: refactor to use badge definitions in config. #4457
Signed-off-by: Andreas Stenius <git@astekk.se>
2021-03-19 08:41:11 +01:00
Andreas Stenius 61078ba14d badges: introduce badges field on entity about card.
Signed-off-by: Andreas Stenius <git@astekk.se>
2021-03-19 08:41:11 +01:00
Andreas Stenius 300c291a09 badges: tweak badge URLs.
Signed-off-by: Andreas Stenius <git@astekk.se>
2021-03-19 08:41:11 +01:00
Andreas Stenius 81846585db badges: initial work for a powered by badge. #4457
Signed-off-by: Andreas Stenius <git@astekk.se>
2021-03-19 08:41:11 +01:00