Skip to content

patch to avoid blocking initial dev setup when overview can't be built - #1348

Open
oscarlevin wants to merge 1 commit into
RunestoneInteractive:mainfrom
oscarlevin:dev-startup-patch
Open

patch to avoid blocking initial dev setup when overview can't be built#1348
oscarlevin wants to merge 1 commit into
RunestoneInteractive:mainfrom
oscarlevin:dev-startup-patch

Conversation

@oscarlevin

Copy link
Copy Markdown
Collaborator

While it would probably be better to fix the underlying issue, that the database starts with testuser1 as enrolled in the "overview" book which can no longer easily be built, but this would move around that at least for now. Plus would be safe in the future.

@oscarlevin
oscarlevin requested a review from bnmnetp as a code owner August 5, 2026 20:45
Copilot AI lite review requested due to automatic review settings August 5, 2026 20:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR prevents the course index page from failing during initial dev setup when the library “book” record can’t be retrieved (e.g., when the underlying book/build state is broken or missing), by guarding access to book.social_url.

Changes:

  • Make has_discussion_group resilient to book being None when rendering current_course.html.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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