Skip to content

Dendencies: Update DOMPurify to 3.4.17 - #8731

Merged
CarolineDenis merged 1 commit into
mainfrom
issue-8730
Oct 30, 2026
Merged

CarolineDenis merged 1 commit into
mainfrom
issue-8730

Conversation

@CarolineDenis

@CarolineDenis CarolineDenis commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #8730

Checklist

  • Self-review the PR after opening it to make sure the changes look good and
    self-explanatory (or properly documented)
  • Add relevant issue to release milestone
  • Add pr to documentation list
  • Add automated tests
  • Add a reverse migration if a migration is present in the PR
  • Add migration function to
    def fix_schema_config(stdout: WriteToStdOut | None = None):

Testing instructions

  • Some workbench general testing

Summary by CodeRabbit

  • Chores
    • Updated the version range for an internal package dependency.

@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 94afa3d1-98b2-460c-955f-7ab3095e1136
Commits

Reviewing files that changed from the base of the PR and between ab907ee and 0f021f5.

Files ignored due to path filters: 1
  • specifyweb/frontend/js_src/package-lock.json is excluded by !**/package-lock.json
Files selected for processing: 1
  • specifyweb/frontend/js_src/package.json

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review.

Walkthrough

The frontend package manifest updates the DOMPurify dependency range from ^3.4.14 to ^3.4.17.

Changes: DOMPurify update

Layer / File(s) Summary
Update DOMPurify dependency range
specifyweb/frontend/js_src/package.json
The manifest changes the DOMPurify dependency range from ^3.4.14 to ^3.4.17.

Suggested reviewers: g1rly-c0d3r, jdam2k4, kwhuber

Priority: Low

Change: Other

Merge Risk: Minimal · up to 0f021

The dependency update has no identified merge-blocking issue and is mergeable subject to normal checks.

Pre-merge checks: Passed 5 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Testing Instructions Warning The PR changes the frontend dependency and lockfile from DOMPurify 3.4.14 to 3.4.17, but the PR description provides no testing steps. The affected component is specifyweb/frontend/js_src; its packa… Add clear testing instructions. State that commands run from specifyweb/frontend/js_src, install the locked dependencies with npm ci, run npm test, and perform a frontend smoke test of the DOM-sanitization paths that use DOMPurify. Re…
Passed Passed checks: 5 passed
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the change: updating the DOMPurify dependency to 3.4.17. The raw summary confirms that the only changed file, package.json, moves the dompurify range from ^3.4.14 to ^3.4.17. The title…
Linked Issues check Passed Issue #8730 directly requests an update to DOMPurify. The PR changes specifyweb/frontend/js_src/package.json from ^3.4.14 to ^3.4.17. Issue #8730 provides no additional bug details, acceptance c…
Out of Scope Changes check Passed The reviewed change is limited to the dompurify dependency declaration in specifyweb/frontend/js_src/package.json. This change directly supports issue #8730. No unrelated change is shown. `package…
Automatic Tests Passed PASS. The PR only updates the DOMPurify version in package.json and package-lock.json. It does not change application logic or introduce a new behavior that requires an automatic test. The frontend al…
Full details: Title check

Explanation

The title names the change: updating the DOMPurify dependency to 3.4.17. The raw summary confirms that the only changed file, package.json, moves the dompurify range from ^3.4.14 to ^3.4.17. The title matches the main change. It contains a typo: "Dendencies" should read "Dependencies". The PR objectives also use the misspelled form, so the typo is in the title itself. The typo does not change the meaning, so the check passes.

Full details: Linked Issues check

Explanation

Issue #8730 directly requests an update to DOMPurify. The PR changes specifyweb/frontend/js_src/package.json from ^3.4.14 to ^3.4.17. Issue #8730 provides no additional bug details, acceptance criteria, or test requirements.

Full details: Out of Scope Changes check

Explanation

The reviewed change is limited to the dompurify dependency declaration in specifyweb/frontend/js_src/package.json. This change directly supports issue #8730. No unrelated change is shown. package-lock.json is intentionally excluded from review, so its contents are not assessed.

Full details: Automatic Tests

Explanation

PASS. The PR only updates the DOMPurify version in package.json and package-lock.json. It does not change application logic or introduce a new behavior that requires an automatic test. The frontend already provides an automatic test command through the existing npm test script.

Full details: Testing Instructions

Explanation

The PR changes the frontend dependency and lockfile from DOMPurify 3.4.14 to 3.4.17, but the PR description provides no testing steps. The affected component is specifyweb/frontend/js_src; its package defines npm test for type checking, unit tests, and localization tests. The testing section contains only an empty placeholder, so it does not clearly cover the changed frontend dependency.

Resolution

Add clear testing instructions. State that commands run from specifyweb/frontend/js_src, install the locked dependencies with npm ci, run npm test, and perform a frontend smoke test of the DOM-sanitization paths that use DOMPurify. Record the result and any relevant environment details.

Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@CarolineDenis
CarolineDenis requested a review from a team October 29, 2026 14:05

@g1rly-c0d3r g1rly-c0d3r left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Testing instructions

  • Some workbench general testing

Looks good! I did not notice any regressions.

@g1rly-c0d3r
g1rly-c0d3r requested a review from a team October 29, 2026 16:22
@rijulpoudel
rijulpoudel self-requested a review October 29, 2026 17:18

@rijulpoudel rijulpoudel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Testing instructions

  • Some workbench general testing

Everything seems to be working good as before.

@JDAM2k4 JDAM2k4 left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Testing instructions

  • Some workbench general testing

When I use the Fill Up button it seems to not update the first two rows in the column. This behavior seems to be present in v7.12.2, so I'm not sure if it's an error or the expected behavior.

Live.Validation.Errors.mp4

Live validation doesn't seem to actually remove errors without selecting Validate manually. This is not in v7.12.2, so it is likely an issue.

@github-project-automation github-project-automation Bot moved this from 📋Back Log to Dev Attention Needed in General Tester Board Oct 29, 2026
@JDAM2k4
JDAM2k4 self-requested a review October 29, 2026 18:17

@JDAM2k4 JDAM2k4 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Updating my review to a comment, as it seems this behavior is present in v7.12.2.

@g1rly-c0d3r

Copy link
Copy Markdown
Contributor

@JDAM2k4 this is actually a known issue! (#4923) So this is consistent and expected behavior.

@CarolineDenis
CarolineDenis merged commit 46d112d into main Oct 30, 2026
20 checks passed
@CarolineDenis
CarolineDenis deleted the issue-8730 branch October 30, 2026 08:27
@github-project-automation github-project-automation Bot moved this from Dev Attention Needed to ✅Done in General Tester Board Oct 30, 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.

Update DOMPurify

5 participants