Skip to content

Sai Sandeep taking over for Kristin - Fix Warnings in PeopleTableDetails Unit Tests#3467

Closed
KH07 wants to merge 4 commits intodevelopmentfrom
Kristin_update_Reports/PeopleTableDetails_unit_test_fix_warnings
Closed

Sai Sandeep taking over for Kristin - Fix Warnings in PeopleTableDetails Unit Tests#3467
KH07 wants to merge 4 commits intodevelopmentfrom
Kristin_update_Reports/PeopleTableDetails_unit_test_fix_warnings

Conversation

@KH07
Copy link
Copy Markdown
Contributor

@KH07 KH07 commented May 2, 2025

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 frontend PR is related to the #2102 frontend PR and the #3175 frontend PR.

Main changes explained:

  • Add a unique key for the outer .map()

How to test:

  1. check into current branch
  2. do npm install
  3. do npm test PeopleTableDetails.test.js to run the tests
  4. verify that all tests pass without warning messages
  5. run this PR locally
  6. Clear site data/cache
  7. log as admin user
  8. go to dashboard→ Reports → People, select an user
  9. verify task filtering works the same as the development branch

Screenshots or videos of changes:

Friday - Unit Test Friday - Test Task Filtering

Note:

Kindly take a look at the code differences and suggest if they impact the feature negatively.

@netlify
Copy link
Copy Markdown

netlify bot commented May 2, 2025

Deploy Preview for highestgoodnetwork-dev failed.

Name Link
🔨 Latest commit ee11657
🔍 Latest deploy log https://app.netlify.com/sites/highestgoodnetwork-dev/deploys/68201d13184a24000881ccda

nikhilpittala16
nikhilpittala16 previously approved these changes May 3, 2025
Copy link
Copy Markdown

@nikhilpittala16 nikhilpittala16 left a comment

Choose a reason for hiding this comment

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

I have tested the PR and everything works as expected.
image

Copy link
Copy Markdown

@linkhanthtel linkhanthtel left a comment

Choose a reason for hiding this comment

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

All test cases passed. Nice work!

#3467

@one-community one-community added the High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible label Oct 3, 2025
Copy link
Copy Markdown

@rohanrastogi311 rohanrastogi311 left a comment

Choose a reason for hiding this comment

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

Hi Kristin,

Launch Error due to incorrect node version. 14 instead of 20.

Image

@one-community one-community changed the title Kristin - Fix Warnings in PeopleTableDetails Unit Tests Sai Sandeep taking over for Kristin - Fix Warnings in PeopleTableDetails Unit Tests Mar 31, 2026
@saisandeepkoritala
Copy link
Copy Markdown
Contributor

Created new PR to resolve failing test cases. Please follow below link.
#5170

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

Labels

High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants