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

stream-metadata: granular space refresh #1240

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

miguel-nascimento
Copy link
Contributor

@miguel-nascimento miguel-nascimento commented Oct 10, 2024

Should close: TOWNS-12688

If you update the space name, the space member nft has a space name field, so we need to refresh both space owner nft metadata (/space/spaceAddress) and member nft (/space/spaceAddress/token/tokenId)

If you update the space image, we only need to update the /space/spaceAddress/image
The image field on the metadata for space & space member will be redirected to the right one

@miguel-nascimento miguel-nascimento changed the title stream-metadata: space refresh should refresh all space path stream-metadata: granular space refresh Oct 10, 2024
@miguel-nascimento miguel-nascimento marked this pull request as ready for review October 10, 2024 20:01
? [`/space/${spaceAddress}`, `/space/${spaceAddress}/token/*`]
: target === 'image'
? [`/space/${spaceAddress}/image`]
: [`/space/${spaceAddress}/*`]
Copy link
Contributor

Choose a reason for hiding this comment

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

for "all" will /space/${spaceAddress}/* match /space/${spaceAddress}? I am superstitious about trailing slashes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

/* only match things inside the slash

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.

2 participants