Skip to content

Update workspaces URL logic and add documentation about this #487

@keller-mark

Description

@keller-mark

From slack thread:
I want to make a request to
http://localhost:8019/A/0/4c460c95-d5ed-4b1f-abab-96f65d80b35a.sdata.zarr/images/expression/.zattrs
My notebook is running at
https://l004-pvt-hive-psc-edu-7652.workspaces-pt.hubmapconsortium.org/passthrough/lab/tree//blank.ipynb
So I need to rewrite my localhost URL to be the following:
https://l004-pvt-hive-psc-edu-8019.workspaces-pt.hubmapconsortium.org/A/0/4c460c95-d5ed-4b1f-abab-96f65d80b35a.sdata.zarr/images/expression/.zattrs

We need to update the logic here

const isInWorkspaces = origin.startsWith(WORKSPACES_URL_KEYWORD);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions