Fix changelog page crash when GitHub release notes are unavailable #2314
Reference in New Issue
Block a user
Delete Branch "fix/changelog-nil-release-notes-error"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug: Avatar Missing Causes Layout Glitch
On the changelog page, the avatar image is not rendered when
@release_notes[:avatar]is nil or empty due to the conditional. This leaves an emptydivwith fixed dimensions (w-9 h-9), creating a visually broken empty box in the layout.app/views/pages/changelog.html.erb#L7-L8803d22a2f6/app/views/pages/changelog.html.erb (L7-L8)Fix in Cursor
Was this report helpful? Give feedback by reacting with 👍 or 👎
Bug: Changelog View Fails on Incomplete Release Notes
The changelog view crashes when
@release_notescontains nil values forpublished_atorbody(due to callingstrftimeorhtml_safeon nil). The controller's fallback only handles@release_notesbeing entirely nil, not a hash with nil fields, which contradicts the test expecting incomplete data to render successfully.app/controllers/pages_controller.rb#L31-L416bf6adc9fd/app/controllers/pages_controller.rb (L31-L41)test/controllers/pages_controller_test.rb#L31-L496bf6adc9fd/test/controllers/pages_controller_test.rb (L31-L49)app/views/pages/changelog.html.erb#L17-L186bf6adc9fd/app/views/pages/changelog.html.erb (L17-L18)Fix in Cursor
Bug: String Method Error in Changelog View
Calling
.firston a String object raises aNoMethodError. This occurs when attempting to get the first character of@release_notes[:username]in the changelog view when the avatar is missing.app/views/pages/changelog.html.erb#L12-L136bf6adc9fd/app/views/pages/changelog.html.erb (L12-L13)Fix in Cursor
Was this report helpful? Give feedback by reacting with 👍 or 👎
✅ BugBot reviewed your changes and found no bugs!
Was this report helpful? Give feedback by reacting with 👍 or 👎
Bug: Date Format Conversion Error
The onboarding preferences test selects "DD/MM/YYYY" for the date format but asserts the saved value is "%d/%m/%Y". This indicates the application is expected to convert the human-readable format selected in the form to a strftime pattern before saving, but the test failure suggests this conversion may not be happening correctly.
test/system/onboardings_test.rb#L128-L1295ab9c4a725/test/system/onboardings_test.rb (L128-L129)Fix in Cursor
Was this report helpful? Give feedback by reacting with 👍 or 👎