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

Make publishable state clearer to the user #4792

Open
sentry-io bot opened this issue Oct 23, 2024 · 0 comments
Open

Make publishable state clearer to the user #4792

sentry-io bot opened this issue Oct 23, 2024 · 0 comments

Comments

@sentry-io
Copy link

sentry-io bot commented Oct 23, 2024

User attempted to publish a channel which had no resources, only 2 folders. This is not a valid, publishable channel. How can we make this more clear?


Sentry Issue: STUDIO-HJC

ChannelIncompleteError: Attempted to publish a channel with an incomplete root node or no resources
  File "contentcuration/viewsets/channel.py", line 533, in publish
    channel = publish_channel(
  File "contentcuration/utils/publish.py", line 936, in publish_channel
    kolibri_temp_db = create_content_database(channel, force, user_id, force_exercises, progress_tracker=progress_tracker)
  File "contentcuration/utils/publish.py", line 138, in create_content_database
    tree_mapper = TreeMapper(
  File "contentcuration/utils/publish.py", line 206, in __init__
    raise ChannelIncompleteError("Attempted to publish a channel with an incomplete root node or no resources")

ValidationError: ["Channel is not ready to be published"]
  File "contentcuration/viewsets/channel.py", line 508, in publish_from_changes
    self.publish(
  File "contentcuration/viewsets/channel.py", line 558, in publish
    raise ValidationError("Channel is not ready to be published")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants