Merged
Conversation
…ry selection and improved demographic handling
…ents and streamline cache invalidation process
… verification flags
…d semantic matching
This reverts commit 6930423.
…ability" This reverts commit 6d89ade.
…s and removing verification flags
… logic for demographic inference
… with new options and verification logic
…ing section labels for clarity
… UserProfilePage and UserRegistrationForm
This reverts commit 46421dd.
…API specification
…UserPreferencesPage button styles
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces significant updates to the handling of user demographic data and privacy settings in the API service. The changes include restructuring the OpenAPI schema, enhancing the database schema, and updating the relevant service logic to support new user-provided and inferred demographic fields, while removing outdated verification flags.
Schema Updates
OpenAPI Schema Enhancements:
PrivacySettingsandDemographicDatacomponents to modularize and clarify user data structures. These include fields likeallowInferenceand user-provided demographic attributes such ashasKids,relationshipStatus,employmentStatus, andeducationLevel. [1] [2] [3]componentsand replaced them with references to the new components. [1] [2]Database Schema Updates:
3.0.0.userSchemato include new user-provided fields (hasKids,relationshipStatus, etc.) and removed verification flags for inferred fields. Clarified descriptions for existing fields.Service Logic Changes
User Registration:
registerUserinAuthenticationService.jsto initialize new demographic fields and set default values forallowInference. [1] [2]User Profile Updates:
updateUserProfileinUserProfileService.jsto handle updates to new user-provided demographic fields while clearing inferred values when user-provided data is updated. Removed logic for verification flags. [1] [2]allowInferencein privacy settings.These changes improve modularity, clarity, and flexibility in handling user demographic and privacy data, aligning the API with modern data management practices.