Skip to content

[OSDEV-2293] ISIC-4 section displayed for non-ISIC-4 data#833

Merged
roman-stolar merged 3 commits intomainfrom
OSDEV-2293-isic-4-section-display-non-isic-4-data
Dec 5, 2025
Merged

[OSDEV-2293] ISIC-4 section displayed for non-ISIC-4 data#833
roman-stolar merged 3 commits intomainfrom
OSDEV-2293-isic-4-section-display-non-isic-4-data

Conversation

@roman-stolar
Copy link
Contributor

@roman-stolar roman-stolar commented Dec 4, 2025

OSDEV-2293 ISIC-4 section displayed for non-ISIC-4 data

  • Fixed the ISIC-4 section displaying on production location profiles when submitted objects contained no valid ISIC-4 fields (section, division, group, class). Enhanced filtering logic to only render the ISIC-4 section when at least one valid field contains data.

@roman-stolar roman-stolar self-assigned this Dec 4, 2025
@roman-stolar roman-stolar temporarily deployed to Quality Environment December 4, 2025 15:00 — with GitHub Actions Inactive
@roman-stolar roman-stolar temporarily deployed to Quality Environment December 4, 2025 15:00 — with GitHub Actions Inactive
@roman-stolar roman-stolar temporarily deployed to Quality Environment December 4, 2025 15:00 — with GitHub Actions Inactive
@roman-stolar roman-stolar temporarily deployed to Quality Environment December 4, 2025 15:00 — with GitHub Actions Inactive
@roman-stolar roman-stolar temporarily deployed to Quality Environment December 4, 2025 15:00 — with GitHub Actions Inactive
@roman-stolar roman-stolar temporarily deployed to Quality Environment December 4, 2025 15:00 — with GitHub Actions Inactive
@roman-stolar roman-stolar temporarily deployed to Quality Environment December 4, 2025 15:00 — with GitHub Actions Inactive
@roman-stolar roman-stolar temporarily deployed to Quality Environment December 4, 2025 15:00 — with GitHub Actions Inactive
@roman-stolar roman-stolar temporarily deployed to Quality Environment December 4, 2025 15:00 — with GitHub Actions Inactive
@roman-stolar roman-stolar temporarily deployed to Quality Environment December 4, 2025 15:00 — with GitHub Actions Inactive
@roman-stolar roman-stolar temporarily deployed to Quality Environment December 4, 2025 15:00 — with GitHub Actions Inactive
@roman-stolar roman-stolar temporarily deployed to Quality Environment December 4, 2025 15:00 — with GitHub Actions Inactive
@roman-stolar roman-stolar temporarily deployed to Quality Environment December 4, 2025 15:00 — with GitHub Actions Inactive
@roman-stolar roman-stolar temporarily deployed to Quality Environment December 4, 2025 15:00 — with GitHub Actions Inactive
@roman-stolar roman-stolar temporarily deployed to Quality Environment December 4, 2025 15:03 — with GitHub Actions Inactive
@barecheck
Copy link

barecheck bot commented Dec 4, 2025

React App | Jest test suite - Code coverage report

Total: 39.16%

Your code coverage diff: 0.06% ▴

✅ All code changes are covered

@barecheck
Copy link

barecheck bot commented Dec 4, 2025

Dedupe Hub App | Unittest test suite - Code coverage report

Total: 55.73%

Your code coverage diff: 0.00% ▴

✅ All code changes are covered

@roman-stolar roman-stolar temporarily deployed to Quality Environment December 4, 2025 15:07 — with GitHub Actions Inactive
@roman-stolar roman-stolar temporarily deployed to Quality Environment December 4, 2025 15:07 — with GitHub Actions Inactive
@barecheck
Copy link

barecheck bot commented Dec 4, 2025

Contricleaner App | Unittest test suite - Code coverage report

Total: 98.75%

Your code coverage diff: 0.00% ▴

✅ All code changes are covered

@barecheck
Copy link

barecheck bot commented Dec 4, 2025

Countries App | Unittest test suite - Code coverage report

Total: 100%

Your code coverage diff: 0.00% ▴

✅ All code changes are covered

@roman-stolar roman-stolar temporarily deployed to Quality Environment December 4, 2025 15:17 — with GitHub Actions Inactive
@barecheck
Copy link

barecheck bot commented Dec 4, 2025

Django App | Unittest test suite - Code coverage report

Total: 81.57%

Your code coverage diff: 0.00% ▴

✅ All code changes are covered

@coderabbitai
Copy link

coderabbitai bot commented Dec 4, 2025

📝 Walkthrough

Walkthrough

This PR addresses OSDEV-2293 by refining ISIC-4 section rendering logic in FacilityDetailsGeneralFields. The component now filters out ISIC-4 groups with no valid field data instead of rendering them with empty values. Changes include filtering logic refinement, corresponding test cases, and release notes documentation.

Changes

Cohort / File(s) Change Summary
Release Notes
doc/release/RELEASE-NOTES.md
Added bugfix entry for OSDEV-2293 documenting that ISIC-4 section no longer renders on production location profiles when submitted objects contain no valid ISIC-4 fields
ISIC-4 Filtering Logic
src/react/src/components/FacilityDetailsGeneralFields.jsx
Refined filtering of formatted field entries in isic_4 extended field handling to discard entries with empty arrays or falsy non-array values, preventing rendering of groups with no meaningful content
Test Cases
src/react/src/__tests__/components/FacilityDetailsGeneralFields.test.js
Added two new test cases verifying ISIC-4 section is not rendered when containing invalid field data or when all ISIC-4 fields have empty values

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

  • Focused, cohesive changes all addressing the same bug
  • Simple filtering logic modification without architectural impact
  • New tests directly validate the bugfix with straightforward assertions
  • Low logic density with minimal file scope

Possibly related PRs

Suggested reviewers

  • mazursasha1990
  • vladsha-dev
  • VadimKovalenkoSNF

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main bug fix: ISIC-4 section was displayed for non-ISIC-4 data, which is directly addressed by the changeset.
Description check ✅ Passed The description clearly relates to the changeset, explaining the bug fix and enhanced filtering logic that directly corresponds to the code changes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch OSDEV-2293-isic-4-section-display-non-isic-4-data

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8b7f637 and d774775.

📒 Files selected for processing (1)
  • doc/release/RELEASE-NOTES.md (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • doc/release/RELEASE-NOTES.md
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (13)
  • GitHub Check: run-integration-test-code-quality
  • GitHub Check: run-eslint-linter-and-prettier-formatter
  • GitHub Check: run-django-code-quality
  • GitHub Check: run-dd-code-quality
  • GitHub Check: get-base-branch-countries-cov
  • GitHub Check: run-countries-code-quality
  • GitHub Check: run-flake8-linter
  • GitHub Check: get-base-branch-contricleaner-cov
  • GitHub Check: get-base-branch-dd-cov
  • GitHub Check: get-base-branch-django-cov
  • GitHub Check: run-contricleaner-code-quality
  • GitHub Check: run-fe-code-quality
  • GitHub Check: get-base-branch-fe-cov

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.

@roman-stolar roman-stolar temporarily deployed to Quality Environment December 5, 2025 10:52 — with GitHub Actions Inactive
@roman-stolar roman-stolar temporarily deployed to Quality Environment December 5, 2025 10:52 — with GitHub Actions Inactive
@roman-stolar roman-stolar temporarily deployed to Quality Environment December 5, 2025 10:52 — with GitHub Actions Inactive
@roman-stolar roman-stolar temporarily deployed to Quality Environment December 5, 2025 10:52 — with GitHub Actions Inactive
@roman-stolar roman-stolar temporarily deployed to Quality Environment December 5, 2025 10:52 — with GitHub Actions Inactive
@roman-stolar roman-stolar temporarily deployed to Quality Environment December 5, 2025 10:52 — with GitHub Actions Inactive
@roman-stolar roman-stolar temporarily deployed to Quality Environment December 5, 2025 10:52 — with GitHub Actions Inactive
@roman-stolar roman-stolar temporarily deployed to Quality Environment December 5, 2025 10:52 — with GitHub Actions Inactive
@roman-stolar roman-stolar temporarily deployed to Quality Environment December 5, 2025 10:52 — with GitHub Actions Inactive
@roman-stolar roman-stolar temporarily deployed to Quality Environment December 5, 2025 10:52 — with GitHub Actions Inactive
@roman-stolar roman-stolar temporarily deployed to Quality Environment December 5, 2025 10:52 — with GitHub Actions Inactive
@roman-stolar roman-stolar temporarily deployed to Quality Environment December 5, 2025 10:52 — with GitHub Actions Inactive
@roman-stolar roman-stolar temporarily deployed to Quality Environment December 5, 2025 10:52 — with GitHub Actions Inactive
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 5, 2025

@roman-stolar roman-stolar temporarily deployed to Quality Environment December 5, 2025 11:12 — with GitHub Actions Inactive
Copy link
Contributor

@VadimKovalenkoSNF VadimKovalenkoSNF left a comment

Choose a reason for hiding this comment

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

LGTM

@roman-stolar roman-stolar temporarily deployed to Quality Environment December 5, 2025 11:28 — with GitHub Actions Inactive
@roman-stolar roman-stolar merged commit 68b3810 into main Dec 5, 2025
39 of 40 checks passed
@roman-stolar roman-stolar deleted the OSDEV-2293-isic-4-section-display-non-isic-4-data branch December 5, 2025 11:29
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.

3 participants