Er zijn geen zichtbare groepen

AI-generated summary

After a recent upgrade, user k4rtik reported that group pages are not visible and return a 500 error when accessed as an admin, with logs showing a NoMethodError related to notification_level on a tag named “category-theory”. This issue appears tied to a recent code change (5ef9d4d) that attempted to serialize group notifications. jomaxro confirmed that the problematic commit was reverted (86764f3), and advised waiting for tests to pass before updating. tgxworld acknowledged the reversion and noted that a new fix is being developed. The issue affects group visibility and access for logged-in admins, while unauthenticated users can still view group pages.

After I upgraded/rebuilt less than an hour ago. I am seeing the message in the title on visiting the group index page at /g.

I also can’t visit individual group pages as admin (they work okay in a private window without logging in). I get

Server Error

while trying to load [/groups/CTRG.json](https://domain.com/groups/CTRG.json)

Error code: 500 error

I see the following in logs:

NoMethodError (undefined method `notification_level' for "category-theory":String)
app/serializers/basic_group_serializer.rb:152:in `block (3 levels) in <class:BasicGroupSerializer>'
app/serializers/basic_group_serializer.rb:151:in `filter'
app/serializers/basic_group_serializer.rb:151:in `block (2 levels) in <class:BasicGroupSerializer>'
(eval):53:in `_fast_attributes'
app/controllers/application_controller.rb:438:in `serialize_data'
app/controllers/groups_controller.rb:93:in `index'
app/controllers/application_controller.rb:340:in `block in with_resolved_locale'
app/controllers/application_controller.rb:340:in `with_resolved_locale'
lib/middleware/omniauth_bypass_middleware.rb:68:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:336:in `call'
config/initializers/100-quiet_logger.rb:23:in `call'
config/initializers/100-silence_logger.rb:31:in `call'
lib/middleware/enforce_hostname.rb:22:in `call'
lib/middleware/request_tracker.rb:176:in `call'

where category-theory is the name of a tag. I had set up group level notifications for that tag a few days ago.

Probably because of the recent change at PERF: Use 1 query to load group and tag notification default. · discourse/discourse@5ef9d4d · GitHub cc: @tgxworld

1 like

Per @tgxworld (it’s too late for him to investigate right now), the commit has been reverted.
https://github.com/discourse/discourse/commit/86764f3aac9297e0638cb0843d5f401b5e8f4205

Give it a bit for tests to run, once you see it on GitHub - discourse/discourse at tests-passed · GitHub, go ahead and update!

5 likes

The commit has been reverted and we’re working on another fix.

5 likes