Skip to content

OTWO-4919 Edit page search not working for enist and rss - #1919

Open
Niharika1117 wants to merge 1 commit into
stagingfrom
OTWO-4919
Open

OTWO-4919 Edit page search not working for enist and rss#1919
Niharika1117 wants to merge 1 commit into
stagingfrom
OTWO-4919

Conversation

@Niharika1117

Copy link
Copy Markdown
Contributor

No description provided.

@Niharika1117
Niharika1117 changed the base branch from main to staging July 13, 2026 04:44
@Niharika1117
Niharika1117 requested a review from Copilot July 13, 2026 04:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes edit-page search behavior for edits that don’t populate key/value (notably CreateEdit rows for targets like Enlistments and RSS subscriptions) by allowing searches to match against edits.target_type.

Changes:

  • Expand Edit.filterable_by to include target_type, enabling queries like “rsssubscription” to match CreateEdit rows.
  • Add a controller test ensuring the edits index can find RSS subscription edits via target_type search.
  • Fix a helper test assertion to compare the current year as a string.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
test/helpers/edits_helper_test.rb Fixes year-matching assertion to compare against a string.
test/controllers/edits_controller_test.rb Adds coverage ensuring edits search can find RSS subscription CreateEdit records.
app/models/edit.rb Adds target_type to searchable attributes used by filter_by.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants