Skip to content

feat(registrar): auto-load service-point worklist on search page open - #89

Draft
gkbishnoi07 wants to merge 1 commit into
angular-zard-migrationfrom
feat/registrar-worklist-on-load
Draft

feat(registrar): auto-load service-point worklist on search page open#89
gkbishnoi07 wants to merge 1 commit into
angular-zard-migrationfrom
feat/registrar-worklist-on-load

Conversation

@gkbishnoi07

Copy link
Copy Markdown

What

On the registrar Search page, auto-load the beneficiaries already registered at the current service point when the page opens, instead of showing an empty "No Records Found" table until a manual search.

  • registrar.service.ts: getRegistrarWorklist(spID)POST registrarWorkListData.
  • search.component.ts: ngOnInit calls loadRegistrarWorklist() — reads servicePointID from session storage, maps the worklist records to the table row shape (restructWorklist), and populates the table. Failures stay silent (falls back to the usual empty table).

Why

QA reported that previously registered beneficiaries were not visible on the registration page. (The old MMU-UI behaved the same — search-only, never auto-listed — so this is a new enhancement, agreed with the mentor.)

⚠️ Blocked — do not merge yet

This depends on the backend registrar/registrarWorkListData endpoint, which is currently broken: it returns Table 'db_iemr.i_beneficiary' doesn't exist (beneficiary data moved to the Identity service, so that legacy query is orphaned). The UI is complete and verified to call the endpoint correctly, but the list will only render once the backend endpoint is fixed to read beneficiaries by service point from the Identity source.

Paired PR

Requires the matching MMU-UI PR that adds the registrarWorkListDataUrl environment endpoint and bumps this Common-UI pointer.

the registrar search page opened empty ("No Records Found") until a manual
search. on init, load the beneficiaries already registered at the current
service point via getRegistrarWorklist(spID) and show them in the results
table. the worklist API returns lighter records than search, so rows are
mapped to the table shape and failures stay silent (empty table fallback).
@coderabbitai

coderabbitai Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

sonarqubecloud Bot commented Sep 9, 2026

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
3.3% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant