-
Notifications
You must be signed in to change notification settings - Fork 1
feat: Progressive Profiling #11
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
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 2f1a756 The changes in this PR will be included in the next version bump. This PR includes changesets to release 6 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
# Conflicts: # package-lock.json # package.json
packages/progressive-profiling-nodejs/src/progressive-profiling-service.ts
Outdated
Show resolved
Hide resolved
packages/progressive-profiling-nodejs/src/progressive-profiling-service.ts
Outdated
Show resolved
Hide resolved
packages/progressive-profiling-nodejs/src/progressive-profiling-service.ts
Outdated
Show resolved
Hide resolved
fetchValue: async (userId) => { | ||
const implementation = Implementation.getInstanceOrThrow(); | ||
const userMetadata = await implementation.metadata.get(userId); | ||
return implementation.existingSections.every( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make this use the overrideable isSectionCompleted
function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the problem with using isSectionCompleted
(or the former areAllSectionsCompleted
or getSections
is that i don't have access to the session object to pass it as a param - this is the reason i reverted to this implementation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i can make use of it, but i'd have to make the session param optional, which for that method, business logic dictates that it should not be (since you can only check if the sections are completed when a session exists)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is that specific to a session? Isn't it just based on the userid?
# Conflicts: # package-lock.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replied to the thread about making the claim impl respect the override for isSectionCompleted.
# Conflicts: # package-lock.json # package.json
No description provided.