Add PhoneLookupMode config and phone-lookup annotations#509
Conversation
- Add PhoneLookupMode (disabled/log/enabled) to RegistrationServiceVerificationConfig - Add six phone-lookup annotation key constants to UserSignup - Regenerate deepcopy, openapi, CRD docs Co-authored-by: Cursor <cursoragent@cursor.com> Signed-off-by: Feny Mehta <fbm3307@gmail.com>
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
WalkthroughThis PR adds a new optional ChangesPhone Lookup Feature
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
- Add UserSignupPhoneLookupPhoneHashAnnotationKey for retry optimization (stores MD5 hash of last looked-up phone to skip redundant Lookup calls) Co-authored-by: Cursor <cursoragent@cursor.com> Signed-off-by: Feny Mehta <fbm3307@gmail.com>
- Set default: "log" in CRD schema via +kubebuilder:default marker - Addresses CodeRabbit review: documented default now enforced in schema Co-authored-by: Cursor <cursoragent@cursor.com> Signed-off-by: Feny Mehta <fbm3307@gmail.com>
Signed-off-by: Feny Mehta <fbm3307@gmail.com> Co-authored-by: Cursor <cursoragent@cursor.com>
- Replace 7 individual phone-lookup annotations with 3: carrier-risk, number-blocked, and a JSON details blob for supplementary data - Add PhoneLookupExcludedCountries field (ISO 3166-1 alpha-2 codes) for configurable country exclusion from Twilio Lookup - Regenerate deepcopy, openapi, and CRD reference docs Co-authored-by: Cursor <cursoragent@cursor.com> Signed-off-by: Feny Mehta <fbm3307@gmail.com>
- Remove unnecessary implementation detail comment from details annotation - Simplify PhoneLookupExcludedCountries comment per reviewer suggestion - Change listType from atomic to set for PhoneLookupExcludedCountries - Regenerate openapi and docs Co-authored-by: Cursor <cursoragent@cursor.com> Signed-off-by: Feny Mehta <fbm3307@gmail.com>
|



related Prs:
Registration-Service: codeready-toolchain/registration-service#595
toolchain-Common: codeready-toolchain/toolchain-common#532
host operator: codeready-toolchain/host-operator#1268
toolchain-e2e: codeready-toolchain/toolchain-e2e#1285
Description
Part of the Twilio Lookup api feature — see [sandbox-sre#3192]
Checks
Did you run
make generatetarget? yesDid
make generatechange anything in other projects (host-operator, member-operator)? yesIn case of new CRD, did you the following? no
resources/setup/roles/host.yamlin the sandbox-sre repositoryPROJECTfile: https://github.com/codeready-toolchain/host-operator/blob/master/PROJECTCSVfile: https://github.com/codeready-toolchain/host-operator/blob/master/config/manifests/bases/host-operator.clusterserviceversion.yamlIn case other projects are changed, please provides PR links.
Assisted by : Cursor
Summary by CodeRabbit
New Features
Documentation