Skip to content

Update: Dimension Service all should get ALL#1349

Merged
kevinhinterlong merged 5 commits intomasterfrom
dimension-paging
Apr 13, 2021
Merged

Update: Dimension Service all should get ALL#1349
kevinhinterlong merged 5 commits intomasterfrom
dimension-paging

Conversation

@kevinhinterlong
Copy link
Member

Description

This fixes a bug that was introduced by #1333 where the dimension select would fetch all values using the dimension service, but it wouldn't page through results (e.g. an elide dimension with 700 results but the pageSize is 500 you would only get the first 500 values).

Proposed Changes

  • The dimension service will page through dimensions until all values have been fetched
  • Rename the searchThresholds config option to cardinalities: { small, medium }

License

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

@kevinhinterlong kevinhinterlong added the Data Features/issues related to Data package label Apr 1, 2021
@kevinhinterlong kevinhinterlong requested a review from jkusa April 1, 2021 18:49
Kevin Hinterlong and others added 4 commits April 12, 2021 19:10
- The dimension service will page through dimensions until all values
  have been fetched
Co-authored-by: Jon Kilroy <jkilroy@gmail.com>
* @param request - request for response payload
*/
normalize(payload: unknown, request: RequestV1 | RequestV2): NaviFactResponse | undefined;
normalize(payload: unknown, request: RequestV2, options?: RequestOptions): NaviFactResponse | undefined;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

Copy link
Contributor

@jkusa jkusa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just the one question, otherwise 👍

@kevinhinterlong kevinhinterlong merged commit 0181030 into master Apr 13, 2021
@kevinhinterlong kevinhinterlong deleted the dimension-paging branch April 13, 2021 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Data Features/issues related to Data package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants