Skip to content

Conversation

@mnoman09
Copy link
Contributor

@mnoman09 mnoman09 commented Jul 25, 2023

Summary

  • This is to support other SDKs which are passing vuid as userid in async fetch qualified call

Test plan

  • Added unit test and all other tests should pass.

Issues

Copy link
Contributor

@jaeopt jaeopt left a comment

Choose a reason for hiding this comment

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

Great! A suggestion for testing.

}, Collections.singletonList(ODPSegmentOption.RESET_CACHE));

countDownLatch2.await();
verify(mockODPSegmentManager).getQualifiedSegments(eq("vuid_f6db3d60ba3a493d8e41bc995bb"), any(ODPSegmentManager.ODPSegmentFetchCallback.class), eq(Collections.singletonList(ODPSegmentOption.RESET_CACHE)));
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't we check "VUID" as user-key, not "FS_USER_ID"? That was the bug :)

@mnoman09 mnoman09 requested a review from jaeopt July 27, 2023 12:50
@mnoman09 mnoman09 removed their assignment Jul 27, 2023
@mnoman09 mnoman09 changed the title Added check in AsyncGetQualifiedSegments to check if userID is fsuserid or vuid [FSSDK-9493] fix: Added check in AsyncGetQualifiedSegments to check if userID is fsuserid or vuid Jul 27, 2023
Copy link
Contributor

@jaeopt jaeopt left a comment

Choose a reason for hiding this comment

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

LGTM

@mnoman09 mnoman09 merged commit f5528d5 into master Jul 28, 2023
@mnoman09 mnoman09 deleted the mnoman/asyncFetchQFix branch July 28, 2023 16:10
@mnoman09 mnoman09 requested a review from jaeopt August 1, 2023 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants