Commit Graph

153 Commits

Author SHA1 Message Date
github-actions[bot] f0196a2f04 Version Packages 2022-10-18 09:55:10 +00:00
github-actions[bot] 9282c018c7 Version Packages (next) 2022-10-11 14:30:05 +00:00
Fredrik Adelöw 2d3a5f09ab json
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-10-06 15:00:36 +02:00
github-actions[bot] 721c1efdb4 Version Packages (next) 2022-10-04 12:08:16 +00:00
Camila Belo 60a912cd2c Rename param to page limit and validate its type
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2022-10-04 10:54:09 +02:00
Emma Indal 876e3b3d0c Accept resultsPerPage param on the search query
Co-authored-by: Camila Loiola <camilaibs@gmail.com>
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2022-10-04 10:54:09 +02:00
Eric Peterson aa8b3b77b3 Merge pull request #13890 from pedronastasi/Search-less-restrictive-V2
[Search] Be less restrictive with unknown keys on query endpoint
2022-09-28 17:01:59 +02:00
Pedro Nastasi 65c8a72b54 bugfix: prettier
Signed-off-by: Pedro Nastasi <v-pnastasi@expediagroup.com>
2022-09-28 11:44:47 -03:00
Pedro Nastasi 58528fb833 Be less restrictive with unknown keys on query endpoint
Signed-off-by: Pedro Nastasi <v-pnastasi@expediagroup.com>
2022-09-28 11:18:10 -03:00
github-actions[bot] 4e94720142 Version Packages (next) 2022-09-27 10:57:53 +00:00
Patrik Oldsberg be5a837259 migrate to use workspace ranges
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-09-21 10:14:53 +02:00
github-actions[bot] 30882884a4 Version Packages 2022-09-20 11:52:02 +00:00
github-actions[bot] 423e01d903 Version Packages (next)
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-09-13 18:00:17 -04:00
github-actions[bot] d1ec204774 Version Packages (next) 2022-08-30 12:02:13 +00:00
github-actions[bot] 18ab337f96 Version Packages (next) 2022-08-23 10:29:17 +00:00
github-actions[bot] a5684d0d53 Version Packages 2022-08-16 12:15:33 +00:00
github-actions[bot] 73cee58fc2 Version Packages (next) 2022-07-26 08:37:39 +00:00
github-actions[bot] 7d7da6caec Version Packages 2022-07-19 08:34:21 +00:00
Emma Indal f22df2248d delete deprecations
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2022-07-18 10:09:01 +02:00
github-actions[bot] 0e967f188b Version Packages (next) 2022-07-12 13:19:14 +00:00
Camila Belo dcba440459 refactor: apply review suggestions
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2022-07-05 12:02:21 +02:00
Emma Indal 197bca1bc0 Merge branch 'master' into emmai/search-error-handling 2022-06-28 13:01:11 +02:00
github-actions[bot] c92deffe39 Version Packages (next) 2022-06-28 09:27:36 +00:00
Emma Indal 34c97eb35b switch to use .json instead of .send
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2022-06-22 14:06:09 +02:00
github-actions[bot] 2231987c10 Version Packages (next) 2022-06-21 09:04:17 +00:00
Emma Indal 1e28c43366 check error, if MissingIndexError return status code 400 with clear error message
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2022-06-20 16:24:15 +02:00
github-actions[bot] 2e2a82c9d7 Version Packages 2022-06-14 09:12:05 +00: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
github-actions[bot] b844443164 Version Packages (next) 2022-06-03 15:01:16 +00:00
Emma Indal 52cc4d8525 clean up api report for search-backend package
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2022-06-02 12:02:58 +02:00
github-actions[bot] a13ab262de Version Packages (next) 2022-05-31 11:51:41 +00:00
github-actions[bot] bcc563abe9 Version Packages (next) 2022-05-24 11:05:52 +00:00
github-actions[bot] 64a03bd946 Version Packages 2022-05-17 09:26:29 +00:00
github-actions[bot] c02ce52da1 Version Packages (next) 2022-05-10 08:00:04 +00:00
github-actions[bot] 1bff70d602 Version Packages (next) 2022-04-26 12:22:43 +00:00
Joe Porpeglia 8cc75993a6 Fix PermissionEvaluator instance checks
Signed-off-by: Joe Porpeglia <josephp@spotify.com>
2022-04-19 14:32:58 -04:00
github-actions[bot] 3f7acfb96e Version Packages 2022-04-19 14:28:08 +00:00
github-actions[bot] 2e1cce5528 Version Packages (next) 2022-04-12 15:19:00 +00:00
Vincenzo Scamporlino 63902fcc17 PermissionEvaluator: rename query to authorizeConditional
Signed-off-by: Vincenzo Scamporlino <me@vinzscam.dev>
2022-04-08 12:29:00 +02:00
Vincenzo Scamporlino b4af8664b5 api report and minor fixes
Signed-off-by: Vincenzo Scamporlino <me@vinzscam.dev>
2022-04-08 12:29:00 +02:00
Vincenzo Scamporlino 173aadff5b Avoid PermissionEvaluator breaking changes
Signed-off-by: Vincenzo Scamporlino <me@vinzscam.dev>
2022-04-08 12:29:00 +02:00
Vincenzo Scamporlino 8b27170d30 search-backend: Use PermissionEvaluator instead of PermissionAuthorizer
Signed-off-by: Vincenzo Scamporlino <me@vinzscam.dev>
2022-04-08 12:28:59 +02:00
Vincenzo Scamporlino dc8037213c Use PermissionEvaluator
Signed-off-by: Vincenzo Scamporlino <me@vinzscam.dev>
2022-04-08 12:28:59 +02:00
Mike Lewis 3c8cfaaa80 search-backend: use new policyDecision method in AuthorizedSearchEngine and test suites
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2022-04-08 12:28:59 +02:00
github-actions[bot] e6f3fb8575 Version Packages (next) 2022-03-29 08:42:22 +00:00
Joe Porpeglia e43290ce96 Rename permission backend request and response types
Signed-off-by: Joe Porpeglia <josephp@spotify.com>
2022-03-25 10:02:46 -04:00
MT Lewis 9da18e4715 search: throw error for unexpected non-resource permissions when authorizing result-by-result
We only reach this point in the code for types where the initial
authorization returned CONDITIONAL -- ALLOWs return early immediately
above, and types where the decision was DENY get filtered out entirely
when querying.

This means the call to isResourcePermission here is mostly about
narrowing the types, since the only way for it to be false is if the
PermissionPolicy returned a CONDITIONAL decision for a non-resource
permission, which can't happen - it would throw an error during
validation in the permission-backend.

Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2022-03-23 15:58:42 -04:00
Mike Lewis 30f9884359 search: check for non-resource permissions when authorizing results
Now that we can differentiate between ResourcePermissions and other
kinds of permissions, we can skip authorizing result-by-result
when the permission for a given document type is not a
ResourcePermission.

Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2022-03-23 15:58:42 -04:00
Mike Lewis 9cbb270aef permissions: add a discriminator type to Permission
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2022-03-22 14:32:38 -04:00