Skip to content

feat: Add ODP/ATS VuidManager #776

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 35 commits into from
Aug 18, 2022
Merged

feat: Add ODP/ATS VuidManager #776

merged 35 commits into from
Aug 18, 2022

Conversation

mikechu-optimizely
Copy link
Contributor

Summary

Full Stack client should create and manage a unique device or visitor ID (VUID), persistent and shared between multiple SDK instances.

Test plan

Added new unit test spec files to base package

Issues

OASIS-8412

@coveralls
Copy link

coveralls commented Aug 15, 2022

Coverage Status

Coverage remained the same at 96.176% when pulling a1a1eee on mike/ats-vuid into 625cb7c on master.

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.

Looks good. A couple of suggestions.
I see some JS codes I cannot cover.

@mikechu-optimizely
Copy link
Contributor Author

This PR remains ready for @zashraf1985 's review as well.

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


import { VuidManager } from '../lib/plugins/vuid_manager';
import PersistentKeyValueCache from '../lib/plugins/key_value_cache/persistentKeyValueCache';
import { anyString, anything, instance, mock, resetCalls, verify, when } from 'ts-mockito';
Copy link
Contributor

Choose a reason for hiding this comment

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

This is good!

Copy link
Contributor

@zashraf1985 zashraf1985 left a comment

Choose a reason for hiding this comment

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

Looks Great!

# Conflicts:
#	packages/optimizely-sdk/__mocks__/@react-native-async-storage/async-storage.ts
#	packages/optimizely-sdk/package-lock.json
#	packages/optimizely-sdk/package.json
@mikechu-optimizely mikechu-optimizely merged commit da42162 into master Aug 18, 2022
@mikechu-optimizely mikechu-optimizely deleted the mike/ats-vuid branch August 18, 2022 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants