Phones, addresses and social profiles: one behaviour for companies, contacts and Your details #934
Labels
No labels
accessibility
authentication
breaking change
bug
documentation
enhancement
interface
internationalisation
observability
performance
security
tier
1
tier
2
tier
3
tier/4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Postulo/postulo#934
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Telephone numbers, postal addresses and social profiles are stored in the same tables for a company, a contact and the user's own details. But they are edited, shown, exported and offered through the API slightly differently for each. They should behave the same everywhere, and any difference should be on purpose and written down.
What exists today
content_type+object_id):PhoneNumber,PostalAddressandWebLinkincore/models.py. The fields and choices are the same for every owner, and so are the partials that edit them (partials/phone_numbers.html,postal_addresses.html,web_links.html).Where they differ (verified on
main)How rows are edited
remove_at_onceandcard_help, which give it the star for primary (<c-primary-choice>), a bin that removes a row at once, and a help mark. A company and a contact get a plain "Primary" radio and a Remove checkbox (phone_numbers.html:69-77). The profile also builds its numbers and addresses itself (accounts/views.py:71-105) rather than through the mixins incore/mixins.py:158-314that companies and contacts use.Phones
has_notes,core/phone_numbers.py:666), while the profile is only told to leave it out. None of the three owners has an extension field.TELwhen a card is imported (jobs/vcards.py:111-122, 266-270). The profile exports only its printed primary number.phone_numberslist. A contact takes a singlephone+phone_country(api/routers/companies.py:303-322).Addresses
addresses_pinnable=False,jobs/views.py:1134, 1162). Contacts and the profile get the choice when Maps is on.autocomplete="off"(core/postal.py:388).company_detail.html:478-511).postal_addresses.ContactIn/ContactOuthave no addresses at all (api/schemas.py:308-322, 413).Social profiles
/in/for every owner, so a company row suggests a personal address (#932).web_linkstakes only the social kind. A contact also still takes the old singlelinkedin_url(api/routers/companies.py:282-287).Company.websitecolumn. Contacts and the profile also get code repositories and websites. This difference may be deliberate, but it is not written down.Differences that are on purpose (keep, and document)
identifies_owner,phone_numbers.py:138, 284).What would change
get_numbers/get_addresses.phone_numbers,postal_addressesandweb_linkslists like companies. The singlephone/phone_countryandlinkedin_urlfields are deprecated and kept as aliases for a release.Related
#918, #919, #922, #923, #925, #931, #932.