-
Notifications
You must be signed in to change notification settings - Fork 8
Add preferred_name support to ALIndividual.familiar() method #972
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: nonprofittechy <[email protected]>
|
@copilot using existing test_feature.yml as a model, can you add a test_preferred_name.yml that goes through the iterations for an interactive confirmation of the behavior:
|
… functionality Co-authored-by: nonprofittechy <[email protected]>
I've created
The test allows manual verification of all the preferred name logic paths, including edge cases like business entities ignoring preferred names and conflict resolution when multiple people have similar names. Commit: 40eed61 |
nonprofittechy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implementation tested and works as designed
|
Will slow down and figure out unit tests |
|
| GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
|---|---|---|---|---|---|
| 21945278 | Triggered | Generic Password | ee65db4 | docassemble/AssemblyLine/data/sources/fr-words.yml | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secret safely. Learn here the best practices.
- Revoke and rotate this secret.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
The
familiar()method inALIndividualnow usespreferred_name.firstwhen available, providing better support for individuals who go by a name different from their legal first name.Changes Made
Updated
ALIndividual.familiar()methodpreferred_name.firstand use it when available and non-emptyname.firstbehavior whenpreferred_nameis not set, empty, or Nonename.firstas before (no behavior change)Implementation
Added comprehensive tests
Added interactive test file
test_preferred_name.yml: Interactive docassemble test that includes assembly_line.yml and provides manual verification of preferred name functionality.familiar()behavior for each test caseBehavior Examples
Backward Compatibility
This change is fully backward compatible. Existing code using
.familiar()will continue to work exactly as before unlesspreferred_nameis explicitly set.Fixes #688.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.