Skip to content

feat: CMD-187 autocreate search page - #1216

Draft
wesleyboar wants to merge 2 commits into
mainfrom
epic/cmd-187
Draft

feat: CMD-187 autocreate search page#1216
wesleyboar wants to merge 2 commits into
mainfrom
epic/cmd-187

Conversation

@wesleyboar

@wesleyboar wesleyboar commented Jul 27, 2026

Copy link
Copy Markdown
Member

Overview

Adds an auto-generated Google Search page.

Warning

First run on a fresh database will crash manage.py migrate itself, because apps/search_page/apps.py's ready() hook queries cms_page before it exists. Workaround: set SEARCH_PAGE_AUTO_SETUP = False, migrate, then set it back to True and restart.

Important

Should instead use a custom migration. and/or install a new Core-CMS plugin (from TACC/Django-App) to do the heavy lifting.

Related

Changes

  • added search_page app
  • added SEARCH_PAGE_AUTO_SETUP setting
  • added GOOGLE_SEARCH_ENGINE_ID setting

Testing / UI

See #1129.

## Overview

Rebuilds the search feature on current `main` instead of stale
`release/v4.36.X`.

> [!WARNING]
> First run on a fresh database will crash `manage.py migrate` itself,
because `apps/search_page/apps.py`'s `ready()` hook queries `cms_page`
before it exists. Workaround: set `SEARCH_PAGE_AUTO_SETUP = False`,
migrate, then set it back to `True` and restart.
[Details.](#885 (review))

> [!IMPORTANT]
> Should instead:
> - [Use a custom
migration.](#885 (review))
> - (and/or) Create a [Core-CMS
plugin](https://github.com/search?q=org%3ATACC+%22Core-CMS-Plugin%22&type=repositories)
(from [TACC/Django-App](https://github.com/TACC/Django-App)).

## Related

- replaces #1129

## Changes

- **rebuilt** branch from `main` + cherry-picked search-only commits
- **dropped** unrelated inherited commits (favicons, breadcrumbs,
image-zoom, etc.)

## Testing / UI

See #1129.
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@wesleyboar
wesleyboar marked this pull request as draft July 27, 2026 21:46
@wesleyboar wesleyboar added enhancement Improvements or additions to existing features paused Started but not actively in progress priority ▼ Low priority labels Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Improvements or additions to existing features paused Started but not actively in progress priority ▼ Low priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant