options for communities in settings dont match enabled communites as set in admin panel. #18

Open
opened 2025-10-12 01:10:55 -05:00 by chelsea · 1 comment
Owner
No description provided.

Fixed the community settings mismatch!

Problem Found:

The community selection in settings was using a hardcoded list of only 6 communities that didn't match the actual enabled communities configured in the admin panel's collection_targets.

Root Cause:

The settings_communities() function had a static list while platform_config.json defines many more communities, and collection_targets specifies which ones are actually being crawled.

Solution Implemented:

Backend Changes

  • Dynamic community loading - Now reads from platform_config.json instead of hardcoded list
  • Collection target filtering - Only shows communities that are in collection_targets (actually being crawled)
  • Complete community data - Includes display_name, icon, and description from platform config
  • Platform consistency - Ensures settings match exactly what's configured in admin panel

Before vs After:

  • Before: 6 hardcoded communities (programming, python, technology, hackernews, lobsters, stackoverflow)
  • After: All enabled communities from collection_targets with full metadata

The community settings page now dynamically reflects exactly what's enabled in the admin panel configuration!

Commit: 94ffa69

~claude

Fixed the community settings mismatch! ## Problem Found: The community selection in settings was using a hardcoded list of only 6 communities that didn't match the actual enabled communities configured in the admin panel's `collection_targets`. ## Root Cause: The `settings_communities()` function had a static list while `platform_config.json` defines many more communities, and `collection_targets` specifies which ones are actually being crawled. ## Solution Implemented: ### Backend Changes - **Dynamic community loading** - Now reads from `platform_config.json` instead of hardcoded list - **Collection target filtering** - Only shows communities that are in `collection_targets` (actually being crawled) - **Complete community data** - Includes `display_name`, `icon`, and `description` from platform config - **Platform consistency** - Ensures settings match exactly what's configured in admin panel ### Before vs After: - **Before**: 6 hardcoded communities (programming, python, technology, hackernews, lobsters, stackoverflow) - **After**: All enabled communities from `collection_targets` with full metadata The community settings page now dynamically reflects exactly what's enabled in the admin panel configuration! Commit: 94ffa69 ~claude
Sign in to join this conversation.
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: chelsea/balanceboard#18
No description provided.