Commit Graph

45 Commits

Author SHA1 Message Date
Vincenzo Scamporlino 2cccf58ef1 chore: config to rootConfig
Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
2023-07-31 17:11:00 +02:00
rdeepc 4a44b9f3d8 Updated test with 3 items in array
Signed-off-by: rdeepc <12953177+rdeepc@users.noreply.github.com>
2023-05-23 20:48:29 -04:00
rdeepc 4b2a9b5509 Updated fields search for postgres to support array item
Signed-off-by: rdeepc <12953177+rdeepc@users.noreply.github.com>
2023-05-22 21:45:52 -04:00
Eric Peterson 719602451e Test that rollback is only attempted once in all cases.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2023-04-10 11:13:36 +02:00
Eric Peterson b4bbf9e18e Check that transaction is not completed before attempting rollback
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2023-04-10 11:12:57 +02:00
Eric Peterson acb9ae3672 Assert that rollback is not attempted when there are no errors.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2023-04-10 11:11:20 +02:00
Eric Peterson 8bcbe27215 Fix tests on node v16
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2023-04-07 15:52:37 +02:00
Eric Peterson 87ca22ce9c Close transaction on upstream error
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2023-04-07 15:52:05 +02: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
Camila Belo 1adc2c787e feat(search): create search collator modules
Co-authored-by: Emma Indal <emma.indahl@gmail.com>
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2023-03-21 09:30:04 +01:00
Emma Indal 5db02fc935 generate api reports
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
Co-authored-by: Camila Loiola <camilaibs@gmail.com>
2023-03-20 13:29:09 +01:00
Emma Indal 4cc252bdd5 use alpha exports
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
Co-authored-by: Camila Loiola <camilaibs@gmail.com>
2023-03-20 13:29:03 +01:00
Emma Indal d5fe020807 update plugin id to match naming conventions
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2023-03-20 13:22:37 +01:00
Emma Indal 97e5d514d1 create backend modules for search engines
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2023-03-20 13:22:28 +01:00
Fredrik Adelöw 85b04f659a get rid of usages of substr which is deprecated
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2023-01-23 14:35:21 +01:00
Eric Peterson b24cf5a99e Update pg engine to preserve pre-existing indices if indexer receives 0 documents
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2022-12-01 17:29:12 +01:00
Eric Peterson e48fc1f1ae Add optional, backward compatible logger to PG engine/indexer
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2022-12-01 17:29:12 +01:00
Eric Peterson aff7351fa5 Use non-deprecated TestPipeline static methods
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2022-11-25 15:22:32 +01:00
Camila Belo 4ed1fa2480 refactor: apply review suggestions
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2022-10-04 10:54:09 +02:00
Fredrik Adelöw aaab1e34da Fix linting errors after #13392
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-08-30 13:44:09 +02:00
Fredrik Adelöw 6a001acf8c plugin-search-backend-module-pg
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-08-19 12:31:26 +02:00
Daniel Dias Branco Arthaud 833e2e4904 fix(search-backend-module-pg): Allow it to skip migrations
Signed-off-by: Daniel Dias Branco Arthaud <arthaud@gmail.com>
2022-08-18 10:55:20 -03:00
Emma Indal f22df2248d delete deprecations
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2022-07-18 10:09:01 +02:00
Andre Wanlin e52f7801b0 Adjustments based on feedback
Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
2022-06-30 15:27:32 +02:00
Andre Wanlin a45d796451 Refactored types based on feedback
Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
2022-06-30 15:27:32 +02:00
Andre Wanlin 8803c2f2df Updated changeset and api-report
Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
2022-06-30 15:27:32 +02:00
Andre Wanlin 90aca31689 Refactored config/options based on feedback
Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
2022-06-30 15:27:32 +02:00
Andre Wanlin b69dd94766 Fixed failing tests
Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
2022-06-30 15:27:32 +02:00
Andre Wanlin d43228a183 Refactored to support config with options
Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
2022-06-30 15:27:32 +02:00
Andre Wanlin 423e3d8e95 Highlight PG search results
Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
2022-06-30 15:27:31 +02:00
Eric Peterson c7ce7b1eb0 Test rank handling in all search engines.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2022-06-10 15:36:11 +02:00
Eric Peterson 915700f64f Set a pagination-aware rank value for all search engines.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2022-06-10 15:36:11 +02:00
Eric Peterson 71d3432710 Set the default batchSize to 1000 for all search engines.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2022-05-01 16:19:58 +02:00
Mike Lewis 234e91e2ed search-module-pg: use new IndexableResultSet type as return type of engine#query
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2022-03-17 12:39:41 +00:00
Eric Peterson 3e54f6c436 Use @backstage/plugin-search-common instead of @backstage/search-common
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2022-03-04 18:47:55 +01:00
Eric Peterson 0d995e0ddd Update PGSearchEngine to be stream-based
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2022-03-02 17:26:58 +01:00
Fredrik Adelöw dcd1a0c3f4 Do not unpack arguments directly on exported items
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-12-07 19:42:10 +01: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
Oliver Sand 532b4cc656 Rework search paging based on cursors
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-09-02 10:22:41 +02:00
Oliver Sand 487b84b4a0 Implement offset and limit based paging in pg search engine
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-09-02 10:19:33 +02:00
Oliver Sand 80c5620397 Sanitize special characters before building search query for postgres
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-08-19 19:01:37 +02:00
Oliver Sand ee99798da7 Correct version requirements on postgres from 11 to 12 (#6863)
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-08-18 11:19:25 +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
Oliver Sand fcc5cb62f7 Fix typo
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-08-05 09:22:19 +02:00
Oliver Sand 9255e14309 Add postgres based SearchEngine
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-08-05 09:16:43 +02:00