Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.

Conversation

@whitdog47
Copy link
Contributor

@whitdog47 whitdog47 commented Aug 5, 2025

Adds a refresh button to the search filter expression edit dialog to allow users to re-fetch the search filter expression when edits need to be reverted or when the expression doesn't load initially.

  • Adds a new get action to the search store for fetching individual search filters
  • Implements a refresh button in the EditDialog component that calls the new get action
  • Creates a new API endpoint to retrieve a specific search filter by ID
image

@whitdog47 whitdog47 requested a review from Copilot August 5, 2025 20:32
@whitdog47 whitdog47 self-assigned this Aug 5, 2025
@whitdog47 whitdog47 added the bug Something isn't working label Aug 5, 2025

This comment was marked as outdated.

@whitdog47 whitdog47 requested a review from Copilot August 5, 2025 20:46
Copy link
Contributor

Copilot AI left a comment

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 adds a refresh button to the search filter expression edit dialog to allow users to re-fetch search filter data when edits need to be reverted or when the expression doesn't load initially.

  • Creates a new API endpoint /detail/{search_filter_id} to retrieve a specific search filter by ID
  • Adds a get action to the search store for fetching individual search filters
  • Implements a refresh button in the EditDialog component that calls the new get action

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/dispatch/search_filter/views.py Adds new API endpoint for retrieving search filter by ID with proper error handling
src/dispatch/static/dispatch/src/search/api.js Updates API client to use new detail endpoint URL
src/dispatch/static/dispatch/src/search/store.js Adds new get action for fetching individual search filters
src/dispatch/static/dispatch/src/search/EditDialog.vue Implements refresh button UI and reloadExpression method

whitdog47 and others added 3 commits August 5, 2025 15:48
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: David Whittaker <84562015+whitdog47@users.noreply.github.com>
@whitdog47 whitdog47 requested a review from nathanmyee August 12, 2025 18:07
Copy link
Contributor

@nathanmyee nathanmyee left a comment

Choose a reason for hiding this comment

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

:shipit:

@whitdog47 whitdog47 merged commit deceef0 into main Aug 12, 2025
14 checks passed
@whitdog47 whitdog47 deleted the fix/search-filter-edit branch August 12, 2025 20:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants