Skip to content

Conversation

@cjlawson02
Copy link
Collaborator

This pull request adds an automated audit feature to help administrators detect and report duplicate user ratings. The main changes include a new backend mutation to scan for duplicate ratings based on anonymous identifiers and a corresponding frontend button to trigger this audit from the admin interface.

Audit feature implementation:

  • Added a new protected backend mutation autoReportDuplicateUsers to the adminRouter in admin.ts. This mutation scans all professors' reviews for duplicate ratings submitted by the same anonymous user and automatically creates reports for each duplicate.

Frontend integration:

  • Added a new mutation hook in Admin.tsx to call the autoReportDuplicateUsers backend mutation and refresh the reports list on success.
  • Added a "Run Audit" button to the admin page UI, allowing admins to trigger the duplicate user audit with a single click.

@cjlawson02 cjlawson02 requested a review from Copilot September 7, 2025 10:19
@nx-cloud
Copy link

nx-cloud bot commented Sep 7, 2025

View your CI Pipeline Execution ↗ for commit e77df6f

Command Status Duration Result
lerna run deploy:dev --stream ✅ Succeeded 17s View ↗
lerna run test --stream ✅ Succeeded 2s View ↗
lerna run build ✅ Succeeded 15s View ↗
lerna run lint --stream ✅ Succeeded 6s View ↗

☁️ Nx Cloud last updated this comment at 2025-12-18 05:45:47 UTC

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Sep 7, 2025

Deploying polyratings with  Cloudflare Pages  Cloudflare Pages

Latest commit: e77df6f
Status: ✅  Deploy successful!
Preview URL: https://1a5ae9e8.polyratings.pages.dev
Branch Preview URL: https://dedupe.polyratings.pages.dev

View logs

This comment was marked as outdated.

@cjlawson02 cjlawson02 requested a review from Copilot November 9, 2025 02:34
Copy link

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

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


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

@cjlawson02
Copy link
Collaborator Author

@copilot I have merged in the upstream so this PR's diff is more relevant. Given this update, please analyze which comments are still relevant to the core PR, and fix them in a new PR that merges into the dedupe branch

Copy link
Contributor

Copilot AI commented Nov 9, 2025

@cjlawson02 I've opened a new pull request, #155, to work on those changes. Once the pull request is ready, I'll request review from you.

@cjlawson02
Copy link
Collaborator Author

@mfish33 ready for re-review

cjlawson02 and others added 4 commits November 8, 2025 21:21
* feat: switch to OpenAI omni-moderation model

* fix: admin score presentation backwards compatibility

* fix: less pollution in analyzed scores

* fix: address some comments

* fix: address other comments

* fix: lint
Base automatically changed from moderation to beta November 17, 2025 00:36
Copy link

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

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


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

@cjlawson02 cjlawson02 force-pushed the dedupe branch 2 times, most recently from 2ba3871 to 960451d Compare November 17, 2025 01:39
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.

3 participants