Skip to content
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

Implement Data Fetching and Persistence in IndexDB for @dotcms/experiments Library #27603

Closed
Tracked by #27539
oidacra opened this issue Feb 12, 2024 · 0 comments · Fixed by #27704
Closed
Tracked by #27539

Implement Data Fetching and Persistence in IndexDB for @dotcms/experiments Library #27603

oidacra opened this issue Feb 12, 2024 · 0 comments · Fixed by #27704
Assignees

Comments

@oidacra
Copy link
Member

oidacra commented Feb 12, 2024

Parent Issue

#27539

User Story

As a front-end developer, I want to implement functionality within the @dotcms/experiments library that fetches user inclusion data from the /api/v1/experiments/isUserIncluded endpoint and persists it in the browser's IndexDB, to optimize performance and enhance user experience.

Acceptance Criteria

  • Data from /api/v1/experiments/isUserIncluded should be fetched efficiently upon initial user interaction with the application.
  • Fetched data must be accurately persisted in the browser's IndexDB for future reference.
  • Ensure that the persistence mechanism handles updates and invalidation appropriately when user data changes or when a new experiment begins.
  • The implementation should include error handling for failed data fetches or IndexDB write operations.
  • The solution should be encapsulated within the @dotcms/experiments library with minimal impact on the library's existing interface or functionality.

Proposed Objective

User Experience

Proposed Priority

Priority 2 - Important

dotCMS Version

master

External Links

  • IndexDB API documentation: [documentation]
  • @dotcms/experiments package repository

Assumptions & Initiation Needs

Quality Assurance Notes & Workarounds

@oidacra oidacra added Team : Falcon dotCMS : SDK dotCMS : Experiments Analytics Umbrella: Experiments Feature labels Feb 12, 2024
@oidacra oidacra moved this from New to Current Sprint Backlog in dotCMS - Product Planning Feb 12, 2024
@oidacra oidacra changed the title @dotcms/experiments - Fetch Experimens data from dotCMS and persist it Implement Data Fetching and Persistence in IndexDB for @dotcms/experiments Library Feb 12, 2024
@oidacra oidacra self-assigned this Feb 14, 2024
@oidacra oidacra moved this from Current Sprint Backlog to In Progress in dotCMS - Product Planning Feb 14, 2024
@oidacra oidacra moved this from In Progress to In Review in dotCMS - Product Planning Feb 16, 2024
@oidacra oidacra moved this from In Review to In Progress in dotCMS - Product Planning Feb 16, 2024
@oidacra oidacra moved this from In Progress to In Review in dotCMS - Product Planning Feb 28, 2024
github-merge-queue bot pushed a commit that referenced this issue Mar 1, 2024
 (#27704)

* fix(chore): nx changes after generate library

* fix(chore): ajust husky to use tags, add dependency

* fix(chore): add tag to sdk-client library

* fix(chore): test trigger ci by tag

* feat(sdk-experiments) fetch data from server and store in indexdb

* fix(ci): remove not innecesary env

* fix(chore): fix task in pom.xml file

* feat(sdk-experiments) add unit test

* feat(sdk-experiments) fix comments

* feat(sdk-experiments) change ts builder from vite to rolout.

* feat(sdk-experiments) missing test, more doc

* feat(sdk-experiments) fix comments

* feat(sdk-experiments) fix mock

* fix(ci): ajust node versions in maven

* feat(sdk-experiments) persistence from arrow functions to class, fix comments

* feat(sdk-experiments) fix test error

* feat(sdk-experiments) fix comments

* feat(sdk-experiments) fix test
@github-project-automation github-project-automation bot moved this from In Review to Done in dotCMS - Product Planning Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant