Skip to content

chore(wip-identifier-list-filter): fix typo - #130

Open
KoloMenek wants to merge 1 commit into
mainfrom
marutk/chore/fix_typo
Open

chore(wip-identifier-list-filter): fix typo#130
KoloMenek wants to merge 1 commit into
mainfrom
marutk/chore/fix_typo

Conversation

@KoloMenek

Copy link
Copy Markdown
Member

PR Summary

Signed-off-by: Kamil MARUT <kamil.marut@rte-france.com>
@KoloMenek KoloMenek self-assigned this Aug 12, 2026
@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The list-filter report key changed from equipementType to equipmentType. Java report construction, English and French templates, and related test assertions now use the corrected key.

Changes

Equipment Type Report Key

Layer / File(s) Summary
Report key and generation
src/main/java/org/gridsuite/filter/wip/IdentifierListFilter.java
Renames EQUIPEMENT_TYPE to EQUIPMENT_TYPE and updates empty-result, not-found, and all-found reports.
Localized messages and assertions
src/main/resources/org/gridsuite/filter/report.properties, src/main/resources/org/gridsuite/filter/report_fr.properties, src/test/java/org/gridsuite/filter/wip/IdentifierListFilterTest.java
Updates message placeholders and test assertions to equipmentType. Corrects “éléments” in the French all-found message.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Description check ❓ Inconclusive The description contains only a generic template comment and does not explain the typo fix. Add a brief summary that identifies the corrected equipment-type key and updated report messages.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies a typo fix in the affected filter component.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.

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.

@sonarqubecloud

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 2

🤖 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 `@src/main/resources/org/gridsuite/filter/report_fr.properties`:
- Line 1: Update the filter.evaluation.listFilter.allFound French message to use
the accented “éléments” in the count phrase after ${searchCount}, matching the
wording already used later in the same message.

In `@src/main/resources/org/gridsuite/filter/report.properties`:
- Line 2: Update the filter.evaluation.listFilter.emptyResult message to remove
the duplicated “elements” and use the consistent separator before “no elements
found”; update the corresponding exact expected text in IdentifierListFilterTest
to match.
🪄 Autofix

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: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: b7e6b2c1-caa2-4905-94c3-127ee4ecf46d

📥 Commits

Reviewing files that changed from the base of the PR and between 223073f and b207515.

📒 Files selected for processing (4)
  • src/main/java/org/gridsuite/filter/wip/IdentifierListFilter.java
  • src/main/resources/org/gridsuite/filter/report.properties
  • src/main/resources/org/gridsuite/filter/report_fr.properties
  • src/test/java/org/gridsuite/filter/wip/IdentifierListFilterTest.java

filter.evaluation.listFilter.allFound=Application d'un filtre par nommage avec ${searchCount} elements (type ${equipementType}) : tous les éléments ont pu être trouvés
filter.evaluation.listFilter.emptyResult=Application d'un filtre par nommage avec ${searchCount} éléments (type ${equipementType}) : aucun élément trouvé
filter.evaluation.listFilter.notFound=Application d'un filtre par nommage avec ${searchCount} éléments (type ${equipementType}) : ${notFoundCount} éléments n'ont pas pu être trouvés
filter.evaluation.listFilter.allFound=Application d'un filtre par nommage avec ${searchCount} elements (type ${equipmentType}) : tous les éléments ont pu être trouvés

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Use the accented form in the count phrase.

The all-found message still renders elements without the accent in avec ${searchCount} elements. Use éléments there, as already used later in the same message.

This finding is based on the supplied French template.

🤖 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 `@src/main/resources/org/gridsuite/filter/report_fr.properties` at line 1,
Update the filter.evaluation.listFilter.allFound French message to use the
accented “éléments” in the count phrase after ${searchCount}, matching the
wording already used later in the same message.

filter.evaluation.listFilter.emptyResult=Applying list filter of ${searchCount} elements (type ${equipementType}) elements no elements found
filter.evaluation.listFilter.notFound=Applying list filter of ${searchCount} elements (type ${equipementType}) : ${notFoundCount} elements not found
filter.evaluation.listFilter.allFound=Applying list filter of ${searchCount} elements (type ${equipmentType}) : all elements found
filter.evaluation.listFilter.emptyResult=Applying list filter of ${searchCount} elements (type ${equipmentType}) elements no elements found

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Fix the empty-result English message.

The message currently renders ... (type ${equipmentType}) elements no elements found. Remove the duplicated elements and keep the separator consistent, for example ... (type ${equipmentType}) : no elements found. Update the exact assertion in IdentifierListFilterTest.java if the text changes.

This finding is based on the supplied English template and its existing test assertion.

🤖 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 `@src/main/resources/org/gridsuite/filter/report.properties` at line 2, Update
the filter.evaluation.listFilter.emptyResult message to remove the duplicated
“elements” and use the consistent separator before “no elements found”; update
the corresponding exact expected text in IdentifierListFilterTest to match.

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.

1 participant