graphql-platform icon indicating copy to clipboard operation
graphql-platform copied to clipboard

Banana Cake Pop schema cache isn't namespaced

Open atrauzzi opened this issue 3 years ago • 3 comments

Description

Banana Cake Pop caches data to IndexDB:

image

Unfortunately, those databases are shared per-domain, so if I configure two APIs:

image image

...I can only effectively use Banana Cake Pop for the first one I visit.

Steps

Steps to reproduce the behavior:

  1. Configure two or more APIs on the same host/origin (one where the IndexDBs will collide)
  1. Visit Banana Cake Pop for the first API, should work normally.
  2. Visit Banana Cake Pop for the second API
  • Despite the URI being different, it will act like it has the schema from the first API you visited

Expected

Banana Cake Pop should be able to support multiple schemas hosted from a single host/origin.


My guess is that the solution would be to add some kind of prefix or namespace to how you store Banana Cake Pop data in the browser. :slightly_smiling_face:

atrauzzi avatar Mar 01 '21 13:03 atrauzzi

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar May 04 '22 07:05 stale[bot]

Not stale.

atrauzzi avatar May 04 '22 14:05 atrauzzi

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 03 '22 14:07 stale[bot]

Not stale.

Drekzler avatar Aug 18 '22 10:08 Drekzler