Skip to content

Partially revert: ErrorActivity: Kotlin-fy buildMarkdown method#13247

Merged
TobiGr merged 1 commit intodevfrom
unknown repository
Feb 19, 2026
Merged

Partially revert: ErrorActivity: Kotlin-fy buildMarkdown method#13247
TobiGr merged 1 commit intodevfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Feb 13, 2026

Fix the bug where collapse container for several crashlogs is created when only crash log exists

What is it?

  • Bugfix (user facing)
  • Meta improvement to the project (dev facing)

Description of the changes in your PR

  • Fix the bug where collapse container for several crashlogs is created when only one crash log present
  • Partially reverts changes from #13225

APK testing

The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR. You can find more info and a video demonstration on this wiki page.

Due diligence

@github-actions github-actions Bot added the size/small PRs with less than 50 changed lines label Feb 13, 2026
@ghost
Copy link
Copy Markdown
Author

ghost commented Feb 13, 2026

Before (bugged)

Exception

  • User Action: ui error
  • Request: Dummy
  • ...
Exceptions (1)

Crash log 1

...


@ghost
Copy link
Copy Markdown
Author

ghost commented Feb 13, 2026

After (fixed)

Exception

  • User Action: ui error
  • Request: Dummy
  • ...
Crash log

...

@ghost ghost force-pushed the crashlog_fix branch 2 times, most recently from 5796e1d to 544ce52 Compare February 13, 2026 11:41
Partially reverts c3dbed5
Fix the bug where collapse container for several crashlogs is created
when only one crash log present
@ghost ghost force-pushed the crashlog_fix branch from 544ce52 to 70cdaf5 Compare February 13, 2026 11:44
@TobiGr TobiGr added the regression A bug that didn't exist in prior versions but appeared after a certain change label Feb 14, 2026
@TobiGr
Copy link
Copy Markdown
Contributor

TobiGr commented Feb 14, 2026

thank you. Coulld you add tests for buildMarkdown() while you are at it? (UI tests should be added with compose migration)

@AudricV AudricV added the bug Issue is related to a bug label Feb 15, 2026
@ghost
Copy link
Copy Markdown
Author

ghost commented Feb 15, 2026

I kinda can't make tests because I face two problems:

  1. Can't mock normally osString
  2. Can't mock exceptions stacktrace

Mockito doesn't want to mock it for some reason. Mockk even doesn't want to build/run/import. I can't write the tests, I am too stupid... Sorry

Copy link
Copy Markdown
Contributor

@TobiGr TobiGr left a comment

Choose a reason for hiding this comment

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

No problem. We will do it later

@TobiGr TobiGr merged commit 834f136 into TeamNewPipe:dev Feb 19, 2026
6 checks passed
@ghost ghost deleted the crashlog_fix branch February 19, 2026 09:10
@TobiGr TobiGr mentioned this pull request Feb 28, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Issue is related to a bug regression A bug that didn't exist in prior versions but appeared after a certain change size/small PRs with less than 50 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants