The archive importer still says which telephone numbers other accounts hold, with no allowance #890
Labels
No labels
accessibility
authentication
breaking change
bug
documentation
enhancement
interface
internationalisation
observability
performance
security
tier
1
tier
2
tier
3
tier/4
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Postulo/postulo#890
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?
_restore_phone_numbers(src/postulo/core/importer.py:828-860) callsphone_numbers.taken_elsewhere(number)for every number in an archive, skips the ones another account holds, and says so: Telephone number ending 78 …: already recorded on this instance, not restored.What exists today
POSTULO_NUMBER_RATE, 20/h) or, once it is spent, refuses free and held numbers alike: the form (phone_numbers.refusal), the API (api/routers/companies.py) and, since #735, the candidate file's review.taken_elsewheredirectly. It is not charged and not refused when the allowance is spent, and it names the last two digits of each number it skipped.What would change
phone_numbers.ensure_allowance(owner)before each lookup and charges a held answer withcollision_noticed, the way the candidate file does (resume/candidate.py,_somebody_elses). Once the allowance is spent a number is skipped with the told about a lot of numbers sentence whether or not it is held.tests/security/test_candidate_file.py's: spend the allowance, import an archive with a free and a held number, same outcome and words.Decisions
Found while fixing #735 (checked against
mainat8c3d03570plus that fix).Fixed in
e9f8a59e4on main.