Skip to content

Fix swapped verbose_name/help_text on Book salesforce fields#1743

Merged
mwvolo merged 1 commit into
mainfrom
fix-book-salesforce-field-labels
Jul 15, 2026
Merged

Fix swapped verbose_name/help_text on Book salesforce fields#1743
mwvolo merged 1 commit into
mainfrom
fix-book-salesforce-field-labels

Conversation

@mwvolo

@mwvolo mwvolo commented Jul 15, 2026

Copy link
Copy Markdown
Member

Summary

  • The Wagtail admin labels/help text on Book.salesforce_abbreviation and Book.salesforce_name were swapped, telling editors the opposite of what each field actually does.
  • salesforce_abbreviation is the field os-webview uses for form display/dedup and Partner filtering (see os-webview helpers/books.ts, after-form-submit.ts, partner-details.tsx).
  • salesforce_name is the field validated against the synced Salesforce Book__c list (BookAdminForm dropdown in books/models.py).
  • No field rename, no data migration — only verbose_name/help_text swapped, with the corresponding Django migration for that state change.

Test plan

  • python manage.py test books --settings=openstax.settings.test — 33/33 passing

salesforce_abbreviation is the field os-webview actually uses for form
display/dedup and Partner filtering; salesforce_name is the one synced
against the Salesforce Book__c list. Their admin labels/help text were
swapped, telling editors the opposite of what each field does.
Copilot AI review requested due to automatic review settings July 15, 2026 15:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This pull request corrects Wagtail admin editor guidance for two Book Salesforce-related fields by swapping their verbose_name and help_text to match each field’s actual purpose, and includes the corresponding Django migration to apply that metadata change.

Changes:

  • Swap verbose_name/help_text between Book.salesforce_abbreviation and Book.salesforce_name in books/models.py.
  • Add a Django migration altering both fields to persist the admin label/help-text fix.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
books/models.py Fixes the admin-facing labels/help text for the two Salesforce fields so editors get correct guidance.
books/migrations/0173_alter_book_salesforce_abbreviation_and_more.py Applies the field metadata changes via AlterField operations.

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

@mwvolo mwvolo merged commit 83fda6c into main Jul 15, 2026
9 checks passed
@mwvolo mwvolo deleted the fix-book-salesforce-field-labels branch July 15, 2026 16:14
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