Skip to content

fix: update consequences to match mehari 0.43.2 (#2630)#2633

Open
stolpeo wants to merge 5 commits into
mainfrom
2630-update-consequenecs-to-match-mehari-0432
Open

fix: update consequences to match mehari 0.43.2 (#2630)#2633
stolpeo wants to merge 5 commits into
mainfrom
2630-update-consequenecs-to-match-mehari-0432

Conversation

@stolpeo
Copy link
Copy Markdown
Contributor

@stolpeo stolpeo commented May 15, 2026

Summary by CodeRabbit

  • New Features

    • Expanded variant consequence filters and presets: in-frame insertion/deletion, selenocysteine gain/loss, incomplete terminal codon, 5′/3′ UTR variants, and aggregate non-coding transcript variant; UI labels and presets updated.
  • Tests

    • Updated snapshots, unit, and integration tests to reflect the expanded consequence coverage and new filter fields.
  • Chores

    • Updated developer tooling invocation and pinned dev tooling versions to improve reproducible builds.

Review Change Stack

@stolpeo stolpeo linked an issue May 15, 2026 that may be closed by this pull request
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 15, 2026

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 73c9ed1d-a94d-457d-a76a-1d17ba76c334

📥 Commits

Reviewing files that changed from the base of the PR and between 826177e and 9afc617.

⛔ Files ignored due to path filters (1)
  • backend/Pipfile.lock is excluded by !**/*.lock
📒 Files selected for processing (27)
  • backend/Makefile
  • backend/Pipfile
  • backend/protos/seqvars/protos/query.proto
  • backend/seqvars/factory_defaults.py
  • backend/seqvars/models/base.py
  • backend/seqvars/models/protobufs.py
  • backend/seqvars/protos/output_pb2.py
  • backend/seqvars/protos/output_pb2.pyi
  • backend/seqvars/protos/query_pb2.py
  • backend/seqvars/protos/query_pb2.pyi
  • backend/seqvars/tests/snapshots/snap_test_factory_defaults.py
  • backend/varfish/tests/drf_openapi_schema/varfish_api_schema.yaml
  • backend/variants/forms.py
  • backend/variants/query_presets.py
  • backend/variants/query_schemas.py
  • backend/variants/schemas/case-query-v1.json
  • backend/variants/tests/data/query_settings.py
  • backend/variants/tests/factories.py
  • backend/variants/tests/test_queries.py
  • backend/variants/tests/test_query_presets.py
  • backend/variants/tests/test_ui.py
  • backend/variants/tests/test_views_api.py
  • frontend/ext/varfish-api/src/lib/types.gen.ts
  • frontend/src/seqvars/components/PresetsEditor/lib/consequence.ts
  • frontend/src/seqvars/components/QueryResults/QueryResultsTable.vue
  • frontend/src/variants/components/FilterForm/EffectPane.fields.js
  • frontend/tests/variants/unit/components/FilterForm/EffectPane.spec.js
✅ Files skipped from review due to trivial changes (3)
  • frontend/ext/varfish-api/src/lib/types.gen.ts
  • backend/seqvars/protos/output_pb2.py
  • backend/seqvars/protos/query_pb2.py

📝 Walkthrough

Walkthrough

Adds eight new variant consequence types and propagates them from the protobuf contract through regenerated Python protobufs, backend enums/mappings/presets, JSON schemas and forms, frontend types/labels/UI fields, pinned build deps, and updated tests/snapshots.

Changes

Variant Consequence Expansion

Layer / File(s) Summary
Build system and dependencies
backend/Makefile, backend/Pipfile
Makefile now runs protobuf generation via pipenv run python -m grpc_tools.protoc; grpcio-tools==1.68.1 and mypy-protobuf==3.6.0 were pinned in Pipfile.
Protobuf consequence enum definition
backend/protos/seqvars/protos/query.proto
Consequence enum extended with new values (IDs 49–56) for in-frame indels, selenocysteine gain/loss, incomplete terminal codon, and UTR/non-coding transcript variants.
Generated protobuf Python code
backend/seqvars/protos/query_pb2.py, query_pb2.pyi, output_pb2.py, output_pb2.pyi
Regenerated artifacts: added protobuf runtime validation, switched descriptor-building to _globals, updated non-C-descriptor conditional, and refreshed typing (typing.Literal, @typing.final) across stubs.
Backend consequence enums and mappings
backend/seqvars/models/base.py, backend/seqvars/models/protobufs.py
Added new SeqvarsVariantConsequenceChoice members and extended SEQVARS_VARIANT_CONSEQUENCE_MAPPING_TO_PB to map them to protobuf Consequence values.
Backend query schema and form translation
backend/variants/query_schemas.py, backend/variants/schemas/case-query-v1.json, backend/variants/forms.py
Effects enum and JSON Schema effects.items.enum updated to include new effect strings; FILTER_FORM_TRANSLATE_EFFECTS extended for new form fields.
Backend presets and factory defaults
backend/variants/query_presets.py, backend/seqvars/factory_defaults.py
Preset effects lists and factory default variant_consequences arrays updated to include new consequence terms across multiple presets.
Frontend TypeScript types
frontend/ext/varfish-api/src/lib/types.gen.ts
Generated TypeScript unions for SeqvarsVariantConsequenceChoice and list types expanded with new consequence string literals.
Frontend consequence labels and groups
frontend/src/seqvars/components/PresetsEditor/lib/consequence.ts, frontend/src/seqvars/components/QueryResults/QueryResultsTable.vue
Extended coding/non-coding consequence catalogs, updated CONSEQUENCE_GROUP_INFOS, and added display labels for new consequence types.
Frontend effect filter fields
frontend/src/variants/components/FilterForm/EffectPane.fields.js
Added new effect field entries (coding and non-coding) and updated _effectGroups to categorize them into existing groups.
Tests and snapshots
backend/seqvars/tests/snapshots/*, backend/varfish/tests/drf_openapi_schema/*, backend/variants/tests/*, frontend/tests/*
Snapshots, OpenAPI schema, test factories, and multiple tests updated to expect expanded consequence lists and new UI inputs.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

Suggested reviewers

  • tedil
  • varfish-bot

Poem

🐰 In burrows deep where variants play,
New consequence types hop into day.
From proto roots to UI bloom,
In-frame, seleno, UTR make room.
The rabbit cheers this tidy groom.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 4.92% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately captures the main purpose of the PR: updating consequences to match mehari 0.43.2, and the changes across 30+ files consistently focus on extending consequence/effect enums and updating preset configurations to support new variant consequence types.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch 2630-update-consequenecs-to-match-mehari-0432

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 and usage tips.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 15, 2026

deps-report 🔍

Commit scanned: 9afc617
ℹ️ Python version 3.11 is used by your project but the latest version is 3.14.

Vulnerable dependencies

8 dependencies have vulnerabilities 😱
Dependency Advisory Versions impacted
black (dev) Affected versions of the black package are vulnerable to Path Traversal due to unsanitized user input in a cache file name. The vulnerability exists because Black incorporates the --python-cell-magics option value into the cache filename without sanitizing path elements, allowing the computed cache path to escape the intended cache directory. <26.3.1
markdown (transitive) Affected versions of the Markdown package are vulnerable to an Uncaught Exception due to improper handling of malformed HTML-like input during Markdown parsing. Python-Markdown 3.8 passes crafted HTML-like sequences to Python’s html.parser.HTMLParser, and when HTMLParser raises an AssertionError, the parsing flow does not catch the exception. <3.8.1
requests Affected versions of the requests package are vulnerable to Insecure Temporary File reuse due to predictable temporary filename generation in extract_zipped_paths(). The requests.utils.extract_zipped_paths() utility extracts files from zip archives into the system temporary directory using a deterministic path, and if that file already exists, the function reuses it without validating that it is the expected extracted content. <2.33.0
setuptools (transitive) Affected versions of Setuptools are vulnerable to Path Traversal via PackageIndex.download(). The impact is Arbitrary File Overwrite: An attacker would be allowed to write files to arbitrary locations on the filesystem with the permissions of the process running the Python code, which could escalate to RCE depending on the context. <78.1.1
social-auth-app-django (transitive) Affected versions of the social-auth-app-django package are vulnerable to Authentication Bypass due to unintended email-based account association during the authentication pipeline. In social_django.storage.create_user (invoked by social_core.pipeline.user.create_user), an IntegrityError during user creation triggers a fallback that returns an existing User looked up by e-mail, effectively performing social_core.pipeline.social_auth.associate_by_email even when that step is disabled. <5.6.0
sqlalchemy Sqlalchemy 2.0.0b1 avoids leaking cleartext passwords to the open for careless uses of str(engine.URL()) in logs and prints. sqlalchemy/sqlalchemy#8563 <2.0.0b1
wheel (transitive) Affected versions of the wheel package are vulnerable to Path Traversal due to applying extracted file permissions using an unsanitized archive pathname. The vulnerable logic is in wheel.cli.unpack.unpack (and setuptools._vendor.wheel.cli.unpack.unpack), where the code calls wf.extract(zinfo, destination) but then performs destination.joinpath(zinfo.filename).chmod(permissions) using zinfo.filename directly, allowing dot-dot-slash sequences to escape the intended directory. >=0.40.0,<=0.46.1
xmltodict (transitive) Affected versions of the xmltodict package are vulnerable to Improper Input Validation due to insufficient validation of XML element, attribute, and xmlns prefix names. The xmltodict._validate_name function did not reject the ", ', and = characters, allowing unparse to serialize keys into tag or attribute names containing illegal tokens and produce ill-formed XML. <0.15.1

Outdated dependencies

68 outdated dependencies found (including 22 outdated major versions)😢
Dependency Installed version Latest version
alabaster (transitive) 0.7.16 1.0.0
aldjemy 2.6 3.2
argon2-cffi (transitive) 21.3.0 25.1.0
attrs 25.4.0 26.1.0
black (dev) 25.12.0 26.5.1
crispy-bootstrap4 (transitive) 2024.1 2026.2
django 4.2.30 6.0.5
django-autocomplete-light (transitive) 3.11.0 4.0.0
django-model-utils (transitive) 4.4.0 5.0.0
django-rest-knox (transitive) 4.2.0 5.0.4
isort (dev) 7.0.0 8.0.1
mypy-protobuf (dev) 3.6.0 5.1.0
packaging (transitive) 23.2 26.2
pandas 2.3.3 3.0.3
protobuf 5.29.6 7.35.0
setuptools (transitive) 70.0.0 82.0.1
simplejson 3.20.2 4.1.1
sphinx (transitive) 7.2.6 9.1.0
sphinx-rtd-theme (transitive) 2.0.0 3.1.0
sqlalchemy 1.4.54 2.0.49
unidecode (transitive) 0.4.21 1.4.0
xmltodict (transitive) 0.13.0 1.0.4
Dependency Installed version Latest version
aiobotocore (transitive) 3.6.0 3.7.0
botocore (transitive) 1.43.0 1.43.11
celery (transitive) 5.3.6 5.6.3
certifi (transitive) 2026.4.22 2026.5.20
click 8.3.3 8.4.0
coverage (dev,transitive) 7.13.5 7.14.0
decorator (dev,transitive) 5.2.1 5.3.1
django-coverage-plugin (dev) 3.1.1 3.2.2
django-crispy-forms (transitive) 2.1 2.6
django-environ (transitive) 0.11.2 0.13.0
django-iconify (transitive) 0.3 0.5.0
django-postgres-copy 2.3.7 2.8.0
django-sodar-core 1.0.6 1.3.2
django-test-plus (dev) 2.3.0 2.4.1
djangorestframework 3.15.2 3.17.1
docutils (transitive) 0.20.1 0.22.4
faker 40.15.0 40.18.0
greenlet (transitive) 3.5.0 3.5.1
grpcio-tools (dev) 1.68.1 1.80.0
idna (transitive) 3.13 3.15
jedi (dev) 0.19.2 0.20.0
lxml 6.1.0 6.1.1
markdown (transitive) 3.5.2 3.10.2
markdown-it-py (transitive) 4.0.0 4.2.0
matplotlib-inline (dev,transitive) 0.2.1 0.2.2
mistune (transitive) 3.0.2 3.2.1
numpy 2.4.4 2.4.6
propcache (transitive) 0.4.1 0.5.2
pydantic 2.13.3 2.13.4
pydantic-core (transitive) 2.46.3 2.46.4
regex (transitive) 2026.4.4 2026.5.9
reportlab 4.5.0 4.5.1
requests 2.32.5 2.34.2
requests-http-signature 0.2.0 0.7.1
rules (transitive) 3.3 3.5
selenium (dev) 4.43.0 4.44.0
sentry-sdk 2.59.0 2.60.0
social-auth-app-django (transitive) 5.4.3 5.9.0
social-auth-core (transitive) 4.8.7 4.9.1
traitlets (dev,transitive) 5.14.3 5.15.0
types-protobuf (dev) 7.34.1.20260508 7.34.1.20260518
types-psycopg2 (dev,transitive) 2.9.21.20260422 2.9.21.20260518
urllib3 (transitive) 2.6.3 2.7.0
vcfpy 0.13.8 0.14.2
wheel (transitive) 0.42.0 0.47.0
yarl (transitive) 1.23.0 1.24.2

Logs

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 3

🧹 Nitpick comments (1)
backend/Pipfile (1)

98-99: ⚡ Quick win

Add a floor constraint to protobuf runtime matching the generated code requirement.

The generated code explicitly requires protobuf 5.28.1 (via ValidateProtobufRuntimeVersion calls), but the source Pipfile leaves protobuf unconstrained (* at line 35). While the lock file currently resolves to 5.29.6, constraining the source (e.g., protobuf = ">=5.28.1") prevents import-time errors across different dependency resolution scenarios.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@backend/Pipfile` around lines 98 - 99, The Pipfile currently leaves the
protobuf runtime unconstrained while the generated code calls
ValidateProtobufRuntimeVersion and requires protobuf >= 5.28.1; update the
Pipfile's protobuf entry to add a floor constraint (e.g., set protobuf =
">=5.28.1") so the runtime matches what the generated code
(ValidateProtobufRuntimeVersion) expects and avoids import-time version errors.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@backend/variants/tests/data/query_settings.py`:
- Around line 1-3: The file currently contains a Git LFS pointer (the lines
starting with "version https://git-lfs.github.com/spec/v1" and the oid/size
entries) which is not valid Python and causes a SyntaxError; replace those LFS
pointer lines with the original Python fixture content that was intended to live
in backend/variants/tests/data/query_settings.py, or if the fixture is a
binary/large asset, move it out of a .py file (e.g., to
backend/variants/tests/data/query_settings.json or .txt) and update any
loader/tests that import or open query_settings.py to point to the new file;
ensure the resulting file contains valid Python (or update imports to parse the
new format) and remove the LFS pointer lines entirely.

In `@frontend/src/variants/components/FilterForm/EffectPane.fields.js`:
- Around line 283-288: Update the three non-coding consequence field objects to
include the correct Sequence Ontology IDs and explanations: for the object with
id '3_prime_UTR_variant' set so to 'SO:0001624' and explanation to "A UTR
variant of the 3' UTR"; for '5_prime_UTR_variant' set so to 'SO:0001623' and
explanation to "A UTR variant of the 5' UTR"; and for
'non_coding_transcript_variant' set so to 'SO:0001619' (retain or add an
appropriate explanation if missing). Ensure you update the objects identified by
those id values in EffectPane.fields.js.
- Around line 76-82: Update the Sequence Ontology (SO) metadata for the coding
consequence entries: set the so value for the entry with id
'incomplete_terminal_codon_variant' to "SO:0001626" instead of the placeholder
"SO:", and for the entries with ids 'selenocysteine_gain' and
'selenocysteine_loss' either replace them with appropriate SO terms (e.g., use
"SO:0000885" for stop_codon_redefined_as_selenocysteine or "SO:0002054" for
loss_of_function_variant) or explicitly mark those two ids as custom/non-SO
labels in the UI metadata so it’s clear they are not official SO terms.

---

Nitpick comments:
In `@backend/Pipfile`:
- Around line 98-99: The Pipfile currently leaves the protobuf runtime
unconstrained while the generated code calls ValidateProtobufRuntimeVersion and
requires protobuf >= 5.28.1; update the Pipfile's protobuf entry to add a floor
constraint (e.g., set protobuf = ">=5.28.1") so the runtime matches what the
generated code (ValidateProtobufRuntimeVersion) expects and avoids import-time
version errors.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: a34ba5fd-00e8-44af-bb08-a192c8d97540

📥 Commits

Reviewing files that changed from the base of the PR and between f20182a and 566322a.

⛔ Files ignored due to path filters (1)
  • backend/Pipfile.lock is excluded by !**/*.lock
📒 Files selected for processing (26)
  • backend/Makefile
  • backend/Pipfile
  • backend/protos/seqvars/protos/query.proto
  • backend/seqvars/factory_defaults.py
  • backend/seqvars/models/base.py
  • backend/seqvars/models/protobufs.py
  • backend/seqvars/protos/output_pb2.py
  • backend/seqvars/protos/output_pb2.pyi
  • backend/seqvars/protos/query_pb2.py
  • backend/seqvars/protos/query_pb2.pyi
  • backend/seqvars/tests/snapshots/snap_test_factory_defaults.py
  • backend/varfish/tests/drf_openapi_schema/varfish_api_schema.yaml
  • backend/variants/forms.py
  • backend/variants/query_presets.py
  • backend/variants/query_schemas.py
  • backend/variants/schemas/case-query-v1.json
  • backend/variants/tests/data/query_settings.py
  • backend/variants/tests/factories.py
  • backend/variants/tests/test_queries.py
  • backend/variants/tests/test_query_presets.py
  • backend/variants/tests/test_ui.py
  • backend/variants/tests/test_views_api.py
  • frontend/ext/varfish-api/src/lib/types.gen.ts
  • frontend/src/seqvars/components/PresetsEditor/lib/consequence.ts
  • frontend/src/seqvars/components/QueryResults/QueryResultsTable.vue
  • frontend/src/variants/components/FilterForm/EffectPane.fields.js

Comment thread backend/variants/tests/data/query_settings.py
Comment thread frontend/src/variants/components/FilterForm/EffectPane.fields.js
Comment thread frontend/src/variants/components/FilterForm/EffectPane.fields.js
@codecov
Copy link
Copy Markdown

codecov Bot commented May 15, 2026

Codecov Report

❌ Patch coverage is 21.91781% with 114 lines in your changes missing coverage. Please review.
✅ Project coverage is 89%. Comparing base (f852be1) to head (9afc617).

Files with missing lines Patch % Lines
backend/seqvars/protos/output_pb2.py 7% 73 Missing ⚠️
backend/seqvars/protos/query_pb2.py 12% 41 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff          @@
##            main   #2633   +/-   ##
=====================================
  Coverage     89%     89%           
=====================================
  Files        692     692           
  Lines      40727   40753   +26     
=====================================
+ Hits       36576   36602   +26     
  Misses      4151    4151           
Files with missing lines Coverage Δ
backend/seqvars/factory_defaults.py 85% <ø> (ø)
backend/seqvars/models/base.py 95% <100%> (+<1%) ⬆️
backend/seqvars/models/protobufs.py 52% <ø> (ø)
...vars/tests/snapshots/snap_test_factory_defaults.py 100% <ø> (ø)
backend/variants/forms.py 100% <ø> (ø)
backend/variants/query_presets.py 96% <ø> (ø)
backend/variants/query_schemas.py 88% <100%> (+<1%) ⬆️
backend/variants/tests/data/query_settings.py 100% <ø> (ø)
backend/variants/tests/factories.py 97% <100%> (+<1%) ⬆️
backend/variants/tests/test_queries.py 99% <ø> (ø)
... and 5 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
frontend/tests/variants/unit/components/FilterForm/EffectPane.spec.js (1)

129-361: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Add test coverage for untested effect fields.

The "effects detailed" test covers 43 of the 51 defined detailed effect fields. Eight fields are missing test coverage:

  • feature_elongation
  • gene_variant
  • incomplete_terminal_codon_variant
  • non_coding_transcript_variant
  • protein_altering_variant
  • rare_amino_acid_variant
  • selenocysteine_gain
  • selenocysteine_loss

Add wrapper.get(), setValue(), and assertion statements for these fields to ensure comprehensive coverage and prevent regressions.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@frontend/tests/variants/unit/components/FilterForm/EffectPane.spec.js` around
lines 129 - 361, Add wrapper.get(), setValue(), and expect assertions for the
eight missing detailed effect fields inside the "effects detailed" test: call
wrapper.get('#detailed-effect-feature_elongation'),
wrapper.get('#detailed-effect-gene_variant'),
wrapper.get('#detailed-effect-incomplete_terminal_codon_variant'),
wrapper.get('#detailed-effect-non_coding_transcript_variant'),
wrapper.get('#detailed-effect-protein_altering_variant'),
wrapper.get('#detailed-effect-rare_amino_acid_variant'),
wrapper.get('#detailed-effect-selenocysteine_gain'), and
wrapper.get('#detailed-effect-selenocysteine_loss'), assign them to variables
following the existing naming convention (e.g.,
detailedEffectFeatureElongation), await each .setValue(), and add
expect(<variable>.element.checked).toBeTruthy() assertions to match the other
detailedEffect checks.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@frontend/tests/variants/unit/components/FilterForm/EffectPane.spec.js`:
- Line 18: The test in EffectPane.spec.js asserts
expect(wrapper.findAll('input').length).toBe(67) but EffectPane.fields.js
defines 66 field IDs; update the test assertion to .toBe(66) unless you
intentionally added a new field—if so, add the missing field definition to
EffectPane.fields.js to bring the runtime input count to 67; locate the
assertion in EffectPane.spec.js and verify against the list in
EffectPane.fields.js to keep numbers consistent.

---

Outside diff comments:
In `@frontend/tests/variants/unit/components/FilterForm/EffectPane.spec.js`:
- Around line 129-361: Add wrapper.get(), setValue(), and expect assertions for
the eight missing detailed effect fields inside the "effects detailed" test:
call wrapper.get('#detailed-effect-feature_elongation'),
wrapper.get('#detailed-effect-gene_variant'),
wrapper.get('#detailed-effect-incomplete_terminal_codon_variant'),
wrapper.get('#detailed-effect-non_coding_transcript_variant'),
wrapper.get('#detailed-effect-protein_altering_variant'),
wrapper.get('#detailed-effect-rare_amino_acid_variant'),
wrapper.get('#detailed-effect-selenocysteine_gain'), and
wrapper.get('#detailed-effect-selenocysteine_loss'), assign them to variables
following the existing naming convention (e.g.,
detailedEffectFeatureElongation), await each .setValue(), and add
expect(<variable>.element.checked).toBeTruthy() assertions to match the other
detailedEffect checks.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 0df23e91-49d5-442a-a3f8-8272cf53bd33

📥 Commits

Reviewing files that changed from the base of the PR and between 566322a and fe11f5d.

📒 Files selected for processing (2)
  • frontend/src/variants/components/FilterForm/EffectPane.fields.js
  • frontend/tests/variants/unit/components/FilterForm/EffectPane.spec.js
🚧 Files skipped from review as they are similar to previous changes (1)
  • frontend/src/variants/components/FilterForm/EffectPane.fields.js

@stolpeo stolpeo force-pushed the 2630-update-consequenecs-to-match-mehari-0432 branch from 826177e to 9afc617 Compare May 20, 2026 13:47
@stolpeo stolpeo enabled auto-merge (squash) May 20, 2026 13:48
@stolpeo stolpeo disabled auto-merge May 20, 2026 13:48
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.

update consequenecs to match mehari 0.43.2

1 participant