Skip to content

Improve handling of large diffs in WebUI#19320

Open
Sahitya0805 wants to merge 1 commit intoopenSUSE:masterfrom
Sahitya0805:fix/issue-17856-large-diff-handling
Open

Improve handling of large diffs in WebUI#19320
Sahitya0805 wants to merge 1 commit intoopenSUSE:masterfrom
Sahitya0805:fix/issue-17856-large-diff-handling

Conversation

@Sahitya0805
Copy link
Contributor

@Sahitya0805 Sahitya0805 commented Feb 19, 2026

Improve handling of large diffs in WebUI

This PR addresses the issue where large diffs are truncated by providing a "full diff" expansion option.

Key Improvements

  • Full Diff Support: The backend RequestController now supports a full_diff parameter to load complete diffs.
  • Enhanced Visibility: Replaced the manual alert with the standard truncated_diff_hint in the redesigned WebUI.
  • Component Support: Added truncated? method to SourcediffComponent to correctly detect and signal truncated diffs in the view.

Verification Plan

Automated Tests

  • bundle exec rspec spec/controllers/webui/request_controller_spec.rb

Manual Verification

  1. Navigate to a request action with a large file diff.
  2. Confirm the truncation warning is visible.
  3. Click the link to "Show full diff".
  4. Confirm the complete diff is rendered without truncation.

Closes #17856

@github-actions github-actions bot added the Frontend Things related to the OBS RoR app label Feb 19, 2026
@Sahitya0805 Sahitya0805 force-pushed the fix/issue-17856-large-diff-handling branch 5 times, most recently from c1dc953 to fcdf2e3 Compare February 23, 2026 16:46
@github-actions github-actions bot added the Documentation 📖 Things regarding our documentation label Feb 23, 2026
@Sahitya0805 Sahitya0805 marked this pull request as draft February 24, 2026 09:44
@Sahitya0805 Sahitya0805 force-pushed the fix/issue-17856-large-diff-handling branch 2 times, most recently from 6410e3c to 543112c Compare February 24, 2026 16:17
@github-actions github-actions bot added Backend Things regarding the OBS backend Test Suite / CI 💉 Things related to our tests/CI labels Feb 24, 2026
@Sahitya0805 Sahitya0805 force-pushed the fix/issue-17856-large-diff-handling branch 2 times, most recently from f54f0a4 to 04e1c1f Compare February 24, 2026 17:04
@Sahitya0805 Sahitya0805 changed the title Improve handling of large diffs in WebUI Minimal fix for handling large diffs Feb 24, 2026
@Sahitya0805 Sahitya0805 changed the title Minimal fix for handling large diffs Improve handling of large diffs in WebUI Feb 24, 2026
@Sahitya0805 Sahitya0805 marked this pull request as ready for review February 24, 2026 18:03
@Sahitya0805 Sahitya0805 marked this pull request as draft February 24, 2026 18:07
@Sahitya0805 Sahitya0805 force-pushed the fix/issue-17856-large-diff-handling branch 4 times, most recently from f25002b to 728d370 Compare February 25, 2026 04:21
- Add full_diff param support to set tarlimit to 0 in RequestController
- Add truncated? to SourcediffComponent to detect truncated diffs
- Replace manual alert with standard truncated_diff_hint in SourcediffComponent
- Add coverage specs for truncated? and full_diff param
@Sahitya0805 Sahitya0805 force-pushed the fix/issue-17856-large-diff-handling branch from 728d370 to c5d0168 Compare February 25, 2026 04:51
@Sahitya0805 Sahitya0805 marked this pull request as ready for review February 25, 2026 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backend Things regarding the OBS backend Documentation 📖 Things regarding our documentation Frontend Things related to the OBS RoR app Test Suite / CI 💉 Things related to our tests/CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

better handling of large diffs in requests

1 participant