Skip to content

Conversation

coolbueb
Copy link
Collaborator

No description provided.

Copy link

changeset-bot bot commented Aug 29, 2025

🦋 Changeset detected

Latest commit: 2f1a756

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@supertokens-plugins/user-banning-nodejs Patch
@shared/js Patch
@shared/react Patch
@shared/ui Minor
@supertokens-plugins/progressive-profiling-nodejs Patch
@supertokens-plugins/progressive-profiling-react Patch

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

@coolbueb coolbueb requested a review from porcellus August 29, 2025 09:48
@coolbueb coolbueb requested a review from porcellus September 18, 2025 16:06
fetchValue: async (userId) => {
const implementation = Implementation.getInstanceOrThrow();
const userMetadata = await implementation.metadata.get(userId);
return implementation.existingSections.every(
Copy link
Collaborator

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.

Copy link
Collaborator Author

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

Copy link
Collaborator Author

@coolbueb coolbueb Sep 19, 2025

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)

Copy link
Collaborator

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?

@coolbueb coolbueb requested a review from porcellus September 19, 2025 10:17
@coolbueb coolbueb changed the title feat: progressive profiling plugin feat: Progressive Profiling Sep 19, 2025
Copy link
Collaborator

@porcellus porcellus left a 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants