Skip to content

Fix lookup not finding draft tokens#5857

Merged
rtibbles merged 1 commit intolearningequality:unstablefrom
AlexVelezLl:fix-draft-tokens-lookup
Apr 22, 2026
Merged

Fix lookup not finding draft tokens#5857
rtibbles merged 1 commit intolearningequality:unstablefrom
AlexVelezLl:fix-draft-tokens-lookup

Conversation

@AlexVelezLl
Copy link
Copy Markdown
Member

Summary

While testing http://github.com/learningequality/studio/pull/5856 I published a draft version of a ricecooker channel that hadn't been published yet, and the lookup endpoint was returning 404 for its token. This was because we were only looking at channel versions whose main channel tree was published, but this doesn't apply to draft versions prior to the v1 version of the channel.

Reviewer guidance

  • Publish a draft version before publishing the first live version of a channel.
  • Verify that the lookup endpoint returns the draft version using the draft token.

@AlexVelezLl AlexVelezLl force-pushed the fix-draft-tokens-lookup branch from 97d028f to 3a08bf5 Compare April 22, 2026 14:26
Copy link
Copy Markdown
Member

@rtibbles rtibbles left a comment

Choose a reason for hiding this comment

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

Yes, that'll do it.

@rtibbles rtibbles merged commit 7bec60c into learningequality:unstable Apr 22, 2026
13 checks passed
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