Skip to content

Conversation

@mike10010100
Copy link
Contributor

@mike10010100 mike10010100 commented Oct 6, 2025

📝 Description

Added an admin “Force recheck” action that clears Plex watchlist errors, triggers an immediate import, and tests the new service logic.

🔗 Related Issues

#5246 (comment)

🧪 Testing

  • Unit tests pass
  • Integration tests pass
  • Manual testing completed
  • No breaking changes

📸 Screenshots (if applicable)

image image

📋 Checklist

  • My code follows the project's coding standards
  • I have mentioned if this is a vibe coded PR
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

🎯 Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Performance improvement
  • Code refactoring

📚 Additional Notes

This change was AI assisted but reviewed and validated by me.

    Add a backend endpoint and UI control to clear stale watchlist errors
    and retrigger the Plex import job on demand. Update the Angular watchlist
    view to show progress while the recheck runs, and cover the new service
    logic with unit tests to verify we only delete existing errors when
    needed.
Copilot AI review requested due to automatic review settings October 6, 2025 22:29
@tidusjar
Copy link
Member

tidusjar commented Oct 6, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

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 an admin "Force recheck" action for Plex watchlist functionality that clears existing watchlist errors and triggers an immediate import. The feature addresses issues where users experience authentication errors syncing their Plex watchlists.

  • Adds a new API endpoint to clear watchlist errors and trigger job execution
  • Implements a frontend button with loading state to trigger the recheck action
  • Includes comprehensive unit tests for the new service functionality

Reviewed Changes

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

Show a summary per file
File Description
PlexController.cs Adds new admin endpoint for revalidating watchlist users
plex-watchlist.component.ts Implements force recheck functionality with loading state
plex-watchlist.component.html Adds UI button and progress bar for force recheck
plex.service.ts Adds HTTP service method for revalidation API call
PlexService.cs Implements core logic to clear watchlist errors
IPlexService.cs Adds interface method for force revalidation
PlexServiceTests.cs Adds unit tests for the new revalidation functionality

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 6, 2025

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