Skip to content

[test]: select an AutoMapper suggestion - #8346

Merged
CarolineDenis merged 4 commits into
mainfrom
issue-8345
Jul 28, 2026
Merged

[test]: select an AutoMapper suggestion#8346
CarolineDenis merged 4 commits 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

Warning

Review limit reached

@maxpatiiuk, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 59 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 9e3f4d9e-5f4e-4324-a271-7d7bc534e74d

📥 Commits

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

📒 Files selected for processing (4)
  • specifyweb/frontend/js_src/lib/components/Errors/ErrorDialog.tsx
  • specifyweb/frontend/js_src/lib/components/SetupTool/setupResources.ts
  • specifyweb/frontend/js_src/lib/components/WbUtils/datasetVariants.tsx
  • specifyweb/frontend/js_src/lib/localization/utils/validateWeblate.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

github-actions Bot commented Jul 22, 2026

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=-89

--- 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=826

--- 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=-112

--- 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.

@CarolineDenis
CarolineDenis merged commit ce41005 into main Jul 28, 2026
19 checks passed
@CarolineDenis
CarolineDenis deleted the issue-8345 branch July 28, 2026 08:42
@github-project-automation github-project-automation Bot moved this from 📋Back Log to ✅Done in General Tester Board Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅Done

Development

Successfully merging this pull request may close these issues.

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

2 participants