Skip to content

Sai Sandeep - Fix Warnings in PeopleTableDetails Unit Tests #3467#5170

Open
saisandeepkoritala wants to merge 1 commit intodevelopmentfrom
saisandeep_update_Reports/PeopleTableDetails_unit_test_fix_warnings
Open

Sai Sandeep - Fix Warnings in PeopleTableDetails Unit Tests #3467#5170
saisandeepkoritala wants to merge 1 commit intodevelopmentfrom
saisandeep_update_Reports/PeopleTableDetails_unit_test_fix_warnings

Conversation

@saisandeepkoritala
Copy link
Copy Markdown
Contributor

@saisandeepkoritala saisandeepkoritala commented Apr 18, 2026

Description

Change data structure usage in PeopleTableDetails.jsx to fix warnings from running unit tests.
Previously, running PeopleTableDetails.test.js would generate a warning message: each child in a list should have a unique "key" prop. The warning is not caused by unit tests code, but indexing in PeopleTableDetails.jsx.

Related PRS (if any):

This PR resolves issues in PR #3467

Main changes explained:

Making key prop unique for all loops

### How to test:
check into current branch
do npm install
do npm test PeopleTableDetails.test.js to run the tests
verify that all tests pass without warning messages

### Run this PR locally
Clear site data/cache
log as admin user
go to dashboard→ Reports → People, select an user
verify task filtering works the same as the development branch

@netlify
Copy link
Copy Markdown

netlify bot commented Apr 18, 2026

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit 426eebb
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/69e369edb6e7410008b4e413
😎 Deploy Preview https://deploy-preview-5170--highestgoodnetwork-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown

@Rajasrivatsansrinivasan Rajasrivatsansrinivasan left a comment

Choose a reason for hiding this comment

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

Reviewed PR #5170 by Sai Sandeep. Checked out the branch locally, verified the PeopleTableDetails tests, and confirmed the previous unique key warning is resolved. Also tested the People report flow by selecting a user and checking that task-related details and filtering still behave as expected. Approving.

Image Image Image Image

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.

2 participants