-
Notifications
You must be signed in to change notification settings - Fork 25
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
channels: more metadata work #4239
base: release-channels-updates
Are you sure you want to change the base?
Conversation
Notably the frontend type changes here need to be fully realized across the codebase before we can deploy. |
Thanks for this - it looks like my other request from last night got lost: We need an unstructured JSON config dict in each of content renderer / draft input / collection, like this diff: https://gist.github.com/davidisaaclee/097c480318d6a9a8367faaaf8c447360 (there's some more context in our DMs) I don't understand why edit: unless the idea is that the ChannelMetadataV1 type is just a suggestion, and I should just use whatever type I want? |
@arthyn I think there is a problem with state migration in %channels-server. The deployed hooks stuff increased the state version to Edit: sorry about the delay between the last develop merge and the migration fix! There were some huge pretty-printer errors and I only managed to fix this today. |
@davidisaaclee yeah |
great, I can work with that, as long as the value is the same shape (e.g. an unmodified string) everywhere that API handles the metadata. maybe we could just change the metadata type to an opaque nominal type (TS hack for this here) - I'm afk now but I can make an inline suggestion comment later |
… into hm/more-metadata-work
802a1eb
to
8fafff9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Hoon part looks good. Typescript part should have another look by someone else to be sure. Thanks!
One question: is adjusting the channel metadata after creation not in the picture? I can only see it supplied in %create
poke. Do we need a %meta
command in $c-channel
as well?
@mikolajpp that was already there in the original meta PR, we just missed creation so I added it here |
talked with Hunter offline, TS looks good – here's the change I mentioned in my comment but it's going to be messy to propose as a commit to this and shouldn't block, so I'll just fix forward once this PR is merged |
This was a request from @davidisaaclee. We add the new metadata field to the create payload so that we can immediately pass custom channels data when creating a channel. Also adds the types from #4109 into the channels file.
PR Checklist