ENG-2875: Add questionnaire_tone_prompt to privacy assessment config#7563
ENG-2875: Add questionnaire_tone_prompt to privacy assessment config#7563
Conversation
…s to fidesplus Add a nullable questionnaire_tone_prompt column to privacy_assessment_config for custom tone configuration. Move DEFAULT_ASSESSMENT_MODEL and DEFAULT_CHAT_MODEL constants plus their accessor classmethods to fidesplus service layer where they belong. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR adds a nullable Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Greptile SummaryThis PR adds a Changes are clean and minimal:
Safe to merge — changes are minimal, reversible, and well-scoped. Confidence Score: 5/5
Last reviewed commit: f60a844 |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/fides/api/models/privacy_assessment_config.py (1)
64-69: Consider updating the class docstring bullets to include tone configuration.This helps keep the model’s top-level documentation in sync with the new persisted setting.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/fides/api/models/privacy_assessment_config.py` around lines 64 - 69, Update the class docstring for PrivacyAssessmentConfig to document the new persisted tone setting: add a bullet describing questionnaire_tone_prompt (Text, nullable) and its behavior (custom tone prompt for questionnaire messages, falls back to default when null), so the top-level model docs reflect the new persisted setting.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@src/fides/api/models/privacy_assessment_config.py`:
- Around line 64-69: Update the class docstring for PrivacyAssessmentConfig to
document the new persisted tone setting: add a bullet describing
questionnaire_tone_prompt (Text, nullable) and its behavior (custom tone prompt
for questionnaire messages, falls back to default when null), so the top-level
model docs reflect the new persisted setting.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 533ac511-c656-4b7f-a53d-18cc474eea76
📒 Files selected for processing (4)
changelog/7563-questionnaire-tone-prompt.yamlsrc/fides/api/alembic/migrations/versions/xx_2026_03_03_1000_ca2c622bad39_questionnaire_tone_prompt.pysrc/fides/api/models/privacy_assessment_config.pytests/api/models/test_privacy_assessment_config.py
💤 Files with no reviewable changes (1)
- tests/api/models/test_privacy_assessment_config.py
Add column comment to migration to match model definition and add data category annotation for the new column in db_dataset.yml. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
lucanovera
left a comment
There was a problem hiding this comment.
Confirmed with steps to reproduce.
…7563) Co-authored-by: Adrian Galvan <galvana@uci.edu> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Ticket ENG-2875
Description Of Changes
Add a
questionnaire_tone_promptcolumn to theprivacy_assessment_configtable for configurable questionnaire tone. MoveDEFAULT_ASSESSMENT_MODELandDEFAULT_CHAT_MODELconstants and their accessor classmethods from the fides OSS model to the fidesplus service layer, where the business logic belongs.Code Changes
src/fides/api/models/privacy_assessment_config.py- Addquestionnaire_tone_promptText column, remove default model constants and accessor classmethods (moved to fidesplus)src/fides/api/alembic/migrations/versions/xx_2026_03_03_1000_ca2c622bad39_questionnaire_tone_prompt.py- Migration to add the new columntests/api/models/test_privacy_assessment_config.py- Removed (tests for deleted classmethods; replacement tests in fidesplus)Steps to Confirm
alembic upgrade headquestionnaire_tone_promptcolumn exists onprivacy_assessment_configtablePre-Merge Checklist
CHANGELOG.mdupdatedmaindowngrade()migration is correct and worksSummary by CodeRabbit
New Features
Chores
Documentation
Tests