Skip to content

Refactor SFD update handling in check-details.controller.js#840

Merged
DavidBarker-EE merged 10 commits intomainfrom
feature/TGC-1160
Apr 29, 2026
Merged

Refactor SFD update handling in check-details.controller.js#840
DavidBarker-EE merged 10 commits intomainfrom
feature/TGC-1160

Conversation

@DavidBarker-EE
Copy link
Copy Markdown
Contributor

  • Streamlined SFD update link logic and conditional redirects.
  • Refactored config handling for detailsPage.
  • Added getSFDUpdateUrl method for URL generation.
  • Updated tests to mock SFD-related config values.

- Streamlined SFD update link logic and conditional redirects.
- Refactored config handling for `detailsPage`.
- Added `getSFDUpdateUrl` method for URL generation.
- Updated tests to mock SFD-related config values.
@DavidBarker-EE DavidBarker-EE requested a review from a team April 28, 2026 08:24
- Renamed `config` to `detailsConfig` for improved clarity.
- Updated associated method parameters and references consistently.
- Added logic to handle conditional redirects based on SFD configuration.
- Implemented `getSFDUpdateUrl` method for generating SFD update URLs.
- Enhanced test scenarios to cover SFD-enabled and SFD-disabled cases.
- Incorporated tolerated failure paths in `fetchAndProcessData` tests.
- Added logic to handle conditional redirects based on SFD configuration.
- Implemented `getSFDUpdateUrl` method for generating SFD update URLs.
- Enhanced test scenarios to cover SFD-enabled and SFD-disabled cases.
- Incorporated tolerated failure paths in `fetchAndProcessData` tests.
Comment thread src/server/details-page/check-details.controller.js Outdated
Comment thread src/server/details-page/check-details.controller.js Outdated
- Improved conditional redirect handling for missing SFD update URLs.
- Updated debug logs with refined log codes.
- Added new test cases for scenarios with missing SFD URLs.
@sonarqubecloud
Copy link
Copy Markdown

@DavidBarker-EE DavidBarker-EE merged commit 1cd76c0 into main Apr 29, 2026
6 checks passed
@DavidBarker-EE DavidBarker-EE deleted the feature/TGC-1160 branch April 29, 2026 09:46
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.

2 participants