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

The Web Components Config API should store config by appId #1369

Closed
willmcvay opened this issue May 27, 2020 · 0 comments · Fixed by #1401
Closed

The Web Components Config API should store config by appId #1369

willmcvay opened this issue May 27, 2020 · 0 comments · Fixed by #1401
Assignees
Labels
feature New feature or request front-end Relates to front end issues web-components-config-server

Comments

@willmcvay
Copy link
Contributor

Background context or User story:

See: #1033 and #1289

Currently the web components config API stores config by customerId as it's primary key. This works fine however, it should be expanded so that it can have a secondary key that fetches by an appId - this will allow a customer to have multiple components and a config per app

Specification or Acceptance Criteria:

  • Should allow GET, POST, PUT, DELETE endpoints to access config for only the app they need to perform a CRUD operation on.
  • Should preserve the existing config, just adding an additional appId layer to the document eg
{
  someCustomerId: {
    someAppId: {
      config: {}
    },
    anotherAppId: {
      config: {}
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request front-end Relates to front end issues web-components-config-server
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants