Menu

Making Read-Only Mean Read-Only in BrightBean Studio's Composer
📰

Making Read-Only Mean Read-Only in BrightBean Studio's Composer

DEV Community: django·Robert Markovski·about 5 hours ago
#G2wo3bEC
#devtodjango#devto#dev#maintainer#published
Reading 0:00
15s threshold

A UI bug that turned out to be a server-side data integrity bug, finished by the maintainer.

Short answer

After a post was published, BrightBean Studio's composer showed a "read-only" banner but still offered an enabled Publish button. The original PR hid Publish for read-only posts. A maintainer then picked up the PR, which had nearly been closed as stale, and widened the fix. They gated the whole action bar, added server-side guards against rewriting published posts, and added 19 regression tests. It was merged as PR #157 and closed issue #116 .

The problem

Issue #116 showed the banner "This post is Publishing and read-only. Use Clone to repost an editable copy." with the Publish button still visible and enabled.

What the PR proposed

The first commit changed two files (+12 / -6).…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.