Skip to content

SDKS-4679 & SDKS-4681: Add Polling and QR Code collectors for DaVinci flows#152

Open
witrisna wants to merge 1 commit intodevelopfrom
SDKS-4679
Open

SDKS-4679 & SDKS-4681: Add Polling and QR Code collectors for DaVinci flows#152
witrisna wants to merge 1 commit intodevelopfrom
SDKS-4679

Conversation

@witrisna
Copy link
Contributor

JIRA Ticket

SDKS-4679
SDKS-4681

Description

  • Implement PollingCollector to handle asynchronous operations like push notifications and OOB authentication, supporting both simple delays and active challenge status polling.
  • Implement QRCodeCollector to handle Base64-encoded QR code images for device pairing and MFA setup.
  • Add Compose UI components (Polling.kt, QRCode.kt) and integrate them into ContinueNode.
  • Register new collectors in CollectorRegistry.
  • Add comprehensive unit tests for PollingCollector and QRCodeCollector logic.

… flows

- Implement `PollingCollector` to handle asynchronous operations like push notifications and OOB authentication, supporting both simple delays and active challenge status polling.
- Implement `QRCodeCollector` to handle Base64-encoded QR code images for device pairing and MFA setup.
- Add Compose UI components (`Polling.kt`, `QRCode.kt`) and integrate them into `ContinueNode`.
- Register new collectors in `CollectorRegistry`.
- Add comprehensive unit tests for `PollingCollector` and `QRCodeCollector` logic.
@witrisna witrisna self-assigned this Jan 19, 2026
@codecov
Copy link

codecov bot commented Jan 19, 2026

Codecov Report

❌ Patch coverage is 65.00000% with 28 lines in your changes missing coverage. Please review.
✅ Project coverage is 27.62%. Comparing base (c862e33) to head (0b5591e).
⚠️ Report is 3 commits behind head on develop.

Files with missing lines Patch % Lines
...pingidentity/davinci/collector/PollingCollector.kt 60.60% 2 Missing and 24 partials ⚠️
.../pingidentity/davinci/collector/QRCodeCollector.kt 83.33% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             develop     #152      +/-   ##
=============================================
+ Coverage      27.26%   27.62%   +0.36%     
- Complexity       833      853      +20     
=============================================
  Files            287      289       +2     
  Lines           8305     8385      +80     
  Branches        1132     1163      +31     
=============================================
+ Hits            2264     2316      +52     
- Misses          5799     5801       +2     
- Partials         242      268      +26     
Flag Coverage Δ
unit-tests 27.62% <65.00%> (+0.36%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@vibhorgoswami vibhorgoswami left a comment

Choose a reason for hiding this comment

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

One comment related to bitmap extraction.

Copy link
Contributor

@spetrov spetrov left a comment

Choose a reason for hiding this comment

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

LGTM! 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants