Commit Graph

241 Commits

Author SHA1 Message Date
github-actions[bot] 320ed50274 Version Packages (next) 2023-06-13 19:37:24 +00:00
github-actions[bot] a8634a9634 Version Packages (next) 2023-05-30 13:52:00 +00:00
github-actions[bot] 75a1c93784 Version Packages (next) 2023-05-23 15:25:13 +00:00
github-actions[bot] 73e7820731 Version Packages 2023-05-16 09:38:40 +00:00
github-actions[bot] 8b05da0912 Version Packages (next) 2023-05-02 13:41:12 +00:00
Adam Harvey 23e45c47d0 fix: Comment typos
Signed-off-by: Adam Harvey <adaharve@cisco.com>
2023-04-29 13:53:35 -04:00
github-actions[bot] e04bb20bdc Version Packages (next) 2023-04-25 15:53:19 +00:00
github-actions[bot] 6141c31839 Version Packages 2023-04-18 12:36:06 +00:00
github-actions[bot] ab75a16da7 Version Packages (next) 2023-04-11 14:21:21 +00:00
github-actions[bot] 9a5a1c4ba2 Version Packages (next) 2023-04-04 13:14:06 +00:00
Fredrik Adelöw 986a802b0b Merge pull request #17131 from backstage/freben/hack-settimeout
use `jest.setTimeout` consistently
2023-03-29 11:44:59 +02:00
github-actions[bot] e32dc5e79d Version Packages (next) 2023-03-28 16:01:25 +00:00
Fredrik Adelöw c4a258f5e4 use jest.setTimeout consistently
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2023-03-28 12:30:49 +02:00
github-actions[bot] 5af2c4f412 Version Packages (next) 2023-03-21 13:38:30 +00:00
github-actions[bot] 24632ad94b Version Packages 2023-03-14 14:31:40 +00:00
github-actions[bot] 0eceadb950 Version Packages (next) 2023-03-07 17:21:48 +00:00
github-actions[bot] b19b95fc09 Version Packages (next) 2023-02-28 13:04:36 +00:00
github-actions[bot] b4627f23b2 Version Packages (next) 2023-02-21 15:40:30 +00:00
Ben Lambert 60c94e750e Merge pull request #16321 from szubster/techinsights-latest-fact-index
Add new index to techinsights
2023-02-20 14:07:16 +01:00
github-actions[bot] 25b57cc07f Version Packages 2023-02-14 13:41:52 +00:00
Tomasz Szuba 207d8df703 Remove knexfile.js from tech-insights-backend
Signed-off-by: Tomasz Szuba <tszuba@box.com>
2023-02-14 13:21:56 +01:00
Tomasz Szuba f244b58916 Add new index to techinsights
This improved query for latest facts from several seconds to milliseconds on our instance

Signed-off-by: Tomasz Szuba <tszuba@box.com>
2023-02-14 13:21:56 +01:00
github-actions[bot] b2a73c984a Version Packages (next) 2023-02-07 15:03:45 +00:00
github-actions[bot] 675324ed19 Version Packages (next) 2023-01-31 14:45:37 +00:00
Fernando.Teixeira 9d59c101c8 chore(api-report): update api report for tech-inisghts
Signed-off-by: Fernando.Teixeira <fernando.Teixeira@traderev.com>
2023-01-25 15:03:16 -05:00
Fernando.Teixeira f44199533a fix(tech-inisghts): fix reference to FactSchema type
Signed-off-by: Fernando.Teixeira <fernando.Teixeira@traderev.com>
2023-01-25 14:28:51 -05:00
Fernando.Teixeira 4024b37449 feat(tech-inights): adds getFactSchemas method to client
Signed-off-by: Fernando.Teixeira <fernando.Teixeira@traderev.com>
2023-01-25 14:09:15 -05:00
github-actions[bot] 12a7b316ee Version Packages (next) 2023-01-24 12:01:10 +00:00
github-actions[bot] 6d46667727 Version Packages 2023-01-17 11:50:48 +00:00
Jussi Hallila 444284448d Remove unnecessary filter from time based query
Signed-off-by: Jussi Hallila <jussi@hallila.com>
2023-01-16 16:52:21 +01:00
Fredrik Adelöw 2c4b116ccc Merge pull request #15767 from RoadieHQ/improve-fact-lifecycle-performance
Improve fact lifecycle performance
2023-01-16 14:07:52 +01:00
Jussi Hallila 3262f0ec83 Bake subquery into the delete clause
Signed-off-by: Jussi Hallila <jussi@hallila.com>
2023-01-16 12:01:07 +01:00
Jussi Hallila b48317cfc6 Modify tech insights lifecycle queries performance
Modifies database cleanup to remove all facts for entities instead of hand-picked ones only. Improves query execution a lot in large datasets.

Changes semantics of the lifecycle deletion logic slightly for cases were historical entities/facts, that are , not present in the application anymore, were kept forever instead of being cleaned up. The new implementation is more along the expected lines.

Signed-off-by: Jussi Hallila <jussi@hallila.com>
2023-01-13 17:24:33 +01:00
Johan Haals 6791aef207 Merge pull request #15659 from RoadieHQ/make-tech-insights-db-configurable
Expose optional persistenceContext on TechInsights construction
2023-01-12 13:27:44 +01:00
Jussi Hallila 9a62631056 Change name of the type of passed in option object.
Signed-off-by: Jussi Hallila <jussi@hallila.com>
2023-01-11 16:21:37 +01:00
Jussi Hallila d5e43e4a09 Make default repository impl protected
Expose a construction function instead.

Signed-off-by: Jussi Hallila <jussi@hallila.com>
2023-01-11 11:52:05 +01:00
github-actions[bot] 9521f1274d Version Packages (next) 2023-01-10 14:18:51 +00:00
Jussi Hallila 44c18b4d3f Expose optional persistenceContext on TechInsights construction
This enables integrators to provide their own database implementations for fact handling if something more suitable than Postgres/SQlite is needed.

Signed-off-by: Jussi Hallila <jussi@hallila.com>
2023-01-10 13:43:14 +01:00
github-actions[bot] c4132274d9 Version Packages (next) 2023-01-03 14:44:31 +00:00
Fredrik Adelöw 30f85b3dd5 Merge pull request #15316 from sblausten/run-checks-failure
Do not fail fast on run checks endpoint
2022-12-28 16:28:49 +01:00
github-actions[bot] f834622f56 Version Packages (next) 2022-12-27 15:22:57 +00:00
sblausten f31659e9d8 Fix import
Signed-off-by: sblausten <sam@roadie.io>
2022-12-23 18:09:19 +01:00
sblausten 28b417769e Add error to each result
Signed-off-by: sblausten <sam@roadie.io>
2022-12-23 18:09:19 +01:00
sblausten 8de258cb8f Always return 200
Signed-off-by: sblausten <sam@roadie.io>
2022-12-23 18:09:19 +01:00
sblausten 98dd59a158 Remove test
Signed-off-by: sblausten <sam@roadie.io>
2022-12-23 18:09:19 +01:00
sblausten a5ea625550 Small tweak
Signed-off-by: sblausten <sam@roadie.io>
2022-12-23 18:09:19 +01:00
sblausten 138b37994a Return 200 unless all fail
Signed-off-by: sblausten <sam@roadie.io>
2022-12-23 18:09:19 +01:00
sblausten 4d1094bef4 Return all errors
Signed-off-by: sblausten <sam@roadie.io>
2022-12-23 18:09:19 +01:00
sblausten 7a38a31699 Do not fail fast on run checks endpoint when a single check fails and return error message alongside any results that completed
Signed-off-by: sblausten <sam@roadie.io>
2022-12-23 18:09:18 +01:00
github-actions[bot] 3245539963 Version Packages 2022-12-20 11:30:21 +00:00