Skip to content

Conversation

@MatMoore
Copy link
Contributor

@MatMoore MatMoore commented Dec 1, 2025

Description

While working on something else, I noticed this linter failed to catch existing issues with related objects. This PR switches from deny listing to allow listing so that it lints new model calls by default, and it's explicit what we're ignoring.

In future commits we can properly scope these models:

  • BreastAugmentationHistoryItem
  • CystHistoryItem
  • ImplantedMedicalDeviceHistoryItem
  • MastectomyOrLumpectomyHistoryItem
  • ParticipantReportedMammogram

Jira link

Review notes

Review checklist

  • Check database queries are correctly scoped to current_provider

"CystHistoryItem",
"ImplantedMedicalDeviceHistoryItem",
"MastectomyOrLumpectomyHistoryItem",
"ParticipantReportedMammogram",
Copy link
Contributor

Choose a reason for hiding this comment

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

Worth putting a comment here to indicate that these last five items are temporarily allowlisted.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@MatMoore MatMoore merged commit 2b4b044 into main Dec 4, 2025
12 checks passed
@MatMoore MatMoore deleted the improve-linter branch December 4, 2025 11:34
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