Skip to content

User mapping - Add tab counts for placeholders child tabs

What does this MR do and why?

  • Add tab counts for "Awaiting reassignment" / "Reassigned" tabs that are sent from backend via helpers + state.
  • Add logic to update the tab count when "Keep as placeholder" action is selected.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

User_mapping_tab_counts

Before After
User_mapping_tab_counts_before User_mapping_tab_counts_after

How to set up and validate locally

  1. Create a few dummy Import::SourceUser records:
    1. Checkout the branch seed-placeholder-users-task.
    2. Run this rake task bin/rake gitlab:seed:placeholder_users\[22,50\], replacing 22 with any group_id. (Note: 50 is the number of users created)
  2. Go to Group > Members and select the Placeholders tab. For example, http://127.0.0.1:3000/groups/gitlab-org/-/group_members?tab=placeholders.

Related to #471932 (closed)

Merge request reports

Loading