Skip to content
This repository was archived by the owner on Jul 19, 2022. It is now read-only.

Pin open definitions to hash on perspective change#276

Merged
hojberg merged 1 commit into
mainfrom
permalinks-for-changing-perspective
Nov 23, 2021
Merged

Pin open definitions to hash on perspective change#276
hojberg merged 1 commit into
mainfrom
permalinks-for-changing-perspective

Conversation

@hojberg

@hojberg hojberg commented Nov 23, 2021

Copy link
Copy Markdown
Member

Overview

When there's any number of definitions open and a new perspective is
selected, the definitions that were open with references based on names,
will no longer have a resolvable name if they were to be re-queried (on
a page refresh for instance). Fix this by changing all open definitions
to be referenced by hash when the perspective is changed.

Fixes #270

@hojberg hojberg requested a review from pchiusano November 23, 2021 18:18
When there's any number of definitions open and a new perspective is
selected, the definitions that were open with references based on names,
will no longer have a resolvable name if they were to be re-queried (on
a page refresh for instance). Fix this by changing all open definitions
to be referenced by hash when the perspective is changed.
@hojberg hojberg force-pushed the permalinks-for-changing-perspective branch from bb76e99 to 0fe8d70 Compare November 23, 2021 18:26

@pchiusano pchiusano left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Makes sense!

Base automatically changed from re-org-routing-model to main November 23, 2021 19:02
@hojberg hojberg merged commit a1532a9 into main Nov 23, 2021
@hojberg hojberg deleted the permalinks-for-changing-perspective branch November 23, 2021 19:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

URLs fail to work when opening a definition from one namespace and changing perspective to another

2 participants