Skip to content

Fix: exclude inactive apps from search index#125

Open
kushvinth wants to merge 1 commit intocytoscape:masterfrom
kushvinth:fix/exclude-inactive-apps-from-search-index
Open

Fix: exclude inactive apps from search index#125
kushvinth wants to merge 1 commit intocytoscape:masterfrom
kushvinth:fix/exclude-inactive-apps-from-search-index

Conversation

@kushvinth
Copy link
Copy Markdown

Overview

This pull request introduces a small but important change to the AppIndex search index. The change ensures that only active App objects are included in the search index.

  • Modified the AppIndex class in apps/search_indexes.py to filter the queryset so that only App objects with active=True are indexed.

Related Issues

The search index was including all apps regardless of their active status,
but the detail view requires active=True. This caused search results for
inactive apps (e.g. keggscape, cytokegg) to link to 404 pages.

Override index_queryset() in AppIndex to restrict indexing to active apps
only, ensuring search results only contain apps that can be viewed.
@kushvinth
Copy link
Copy Markdown
Author

PTAL @coleslaw481

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.

1 participant