Skip to content

[test]: select an AutoMapper suggestion#8346

Open
rijulpoudel wants to merge 1 commit into
mainfrom
issue-8345
Open

[test]: select an AutoMapper suggestion#8346
rijulpoudel wants to merge 1 commit into
mainfrom
issue-8345

Conversation

@rijulpoudel

@rijulpoudel rijulpoudel commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

Fixes #8345

Summary by CodeRabbit

  • Tests
    • Added coverage for selecting AutoMapper suggestions in the Data Mapper.
    • Verified that selections update the mapping path, mark changes as made, and close the suggestion interface.

@coderabbitai

coderabbitai Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 7cb9ee48-ff1b-4832-a82f-297c8fe93e5f

📥 Commits

Reviewing files that changed from the base of the PR and between 7c0e603 and 6917f24.

📒 Files selected for processing (1)
  • specifyweb/frontend/js_src/lib/components/WbPlanView/__tests__/autoMapperSuggestions.test.ts

📝 Walkthrough

Walkthrough

Adds a Jest test covering AutoMapper suggestion selection in WbPlanView, including mapping updates, change tracking, and clearing of suggestion-related UI state.

Changes

AutoMapper selection validation

Layer / File(s) Summary
AutoMapper suggestion selection test
specifyweb/frontend/js_src/lib/components/WbPlanView/__tests__/autoMapperSuggestions.test.ts
Exercises the reducer through selector opening, suggestion loading, and suggestion selection, asserting the updated mappingPath, changesMade, openSelectElement, and autoMapperSuggestions state.
🚥 Pre-merge checks | ✅ 6
✅ Passed checks (6 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: adding a test for selecting an AutoMapper suggestion.
Linked Issues check ✅ Passed The new test directly addresses issue #8345 by verifying AutoMapper suggestion selection in WorkBench Data Mapper.
Out of Scope Changes check ✅ Passed The changes are limited to the requested test coverage and do not introduce unrelated functionality.
Automatic Tests ✅ Passed The PR adds a new Jest test file covering AutoMapper suggestion selection and the expected state updates.
Testing Instructions ✅ Passed PASS: The new test clearly targets WbPlanView Data Mapper AutoMapper suggestion selection and matches the reducer’s open/select suggestion flow.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch issue-8345

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.

@github-actions

Copy link
Copy Markdown

Warning

One or more dependencies are approaching or past End-of-Life.
Please plan upgrades accordingly.

STATUS=WARNING
NODE_VERSION=20
NODE_CYCLE=20
EOL_DATE=2026-04-30
DAYS_REMAINING=-83

--- Node.js ---
Version: 20
EOL: 2026-04-30
Status: WARNING

STATUS=OK
PYTHON_VERSION=3.12
PYTHON_CYCLE=3.12
EOL_DATE=2028-10-31
DAYS_REMAINING=832

--- Python ---
Version: 3.12
EOL: 2028-10-31
Status: OK

STATUS=WARNING
DJANGO_VERSION=4.2
DJANGO_CYCLE=4.2
EOL_DATE=2026-04-07
DAYS_REMAINING=-106

--- Django ---
Version: 4.2
EOL: 2026-04-07
Status: WARNING


@rijulpoudel

Copy link
Copy Markdown
Collaborator Author

@CodeRabbit Full Review

@coderabbitai

coderabbitai Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor
✅ Action performed

Full review finished.

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

Labels

None yet

Projects

Status: 📋Back Log

Development

Successfully merging this pull request may close these issues.

[test]: Select an AutoMapper suggestion in the WorkBench Data Mapper

2 participants