Skip to content

POC: Persist Favorites to a Remote Storage#174

Draft
ddragosd wants to merge 4 commits into
adobe:mainfrom
ddragosd:persist-favs
Draft

POC: Persist Favorites to a Remote Storage#174
ddragosd wants to merge 4 commits into
adobe:mainfrom
ddragosd:persist-favs

Conversation

@ddragosd
Copy link
Copy Markdown
Collaborator

@ddragosd ddragosd commented Dec 5, 2023

This feature persists favorites in remote storage.
TODOs:

  • Add a feature flag.
  • Externalize remote storage URL
  • Load favorites

Description

The remote storage is implemented in a Runtime action to be able to change the remote store only in one place.

Related Issue

Motivation and Context

To be able to reference the favorites from other surfaces.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@ddragosd ddragosd marked this pull request as draft December 5, 2023 23:06
@ddragosd ddragosd changed the title POC: Persist POC: Persist Favorites to a Remote Storage Dec 5, 2023
console.debug(`Favorites Endpoint: ${this.favoritesEndpoint}`);
}

async get_favorites() {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Could we consider using camel case for naming methods? Using methods with underscores is unconventional in JavaScript, so we'd need to make an exception in our linting rules.

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