[pr-fix][startup] Preserve the logging filter when migrating settings #362

Open
andrewpozdnakov7-jpg wants to merge 2 commits from andrewpozdnakov7-jpg/Darner:fix/359-keep-log-filter into main
First-time contributor

Contributor role (optional)

  • Fluxer ID:

What it changes

On main, migrating an older settings file removes DARNER_LOG as an engine switch. This loses saved preferences such as DARNER_LOG=warn and lets the launcher use its default filter again. Preserve DARNER_LOG alongside the other player settings. The launcher can then apply that filter on the next start.

Refs #359.

How it was tested

  • Tested revision: c17ef58 on f3840d7.
  • Commands and results: An isolated Windows Rust fixture used the production migration and settings parser from both revisions. Main dropped a severity, a per-target filter and an empty value. The patch kept all three and both revisions removed an obsolete engine switch. The existing migration regression passed with the filter added to its fixture. Scoped cargo check --offline --locked -p darner --bin darner --tests, asset policy and diff check passed.
  • Changes a default: no.
  • Gates run on that revision: no workspace-wide gates.
  • Hardware dependence: the change affects settings text migration.
  • Coverage gaps: in-game log volume remains unmeasured.

Checklist

  • I ran this change in the game.
  • This PR contains one change based on main.
  • The diff follows docs/asset-policy.md.
  • I recorded this PR's dependencies below.
    • Depends on: none

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches.
  • Related PRs: #278 handles another launcher preference, #302 changes the launcher, and #316 tests the logger. A local Git merge tree of c17ef58 and the #278 follow-up 0450b2c resolved cleanly.
  • Replaces or overlaps: none found
## Contributor role (optional) - Fluxer ID: <!-- optional --> ## What it changes On main, migrating an older settings file removes `DARNER_LOG` as an engine switch. This loses saved preferences such as `DARNER_LOG=warn` and lets the launcher use its default filter again. Preserve `DARNER_LOG` alongside the other player settings. The launcher can then apply that filter on the next start. Refs #359. ## How it was tested - Tested revision: `c17ef58` on `f3840d7`. - Commands and results: An isolated Windows Rust fixture used the production migration and settings parser from both revisions. Main dropped a severity, a per-target filter and an empty value. The patch kept all three and both revisions removed an obsolete engine switch. The existing migration regression passed with the filter added to its fixture. Scoped `cargo check --offline --locked -p darner --bin darner --tests`, asset policy and diff check passed. - Changes a default: no. - Gates run on that revision: no workspace-wide gates. - Hardware dependence: the change affects settings text migration. - Coverage gaps: in-game log volume remains unmeasured. ## Checklist - [ ] I ran this change in the game. - [x] This PR contains one change based on main. - [x] The diff follows docs/asset-policy.md. - [x] I recorded this PR's dependencies below. - Depends on: none ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. - Related PRs: #278 handles another launcher preference, #302 changes the launcher, and #316 tests the logger. A local Git merge tree of c17ef58 and the #278 follow-up 0450b2c resolved cleanly. - Replaces or overlaps: none found
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'fix/359-keep-log-filter:andrewpozdnakov7-jpg-fix/359-keep-log-filter'
git switch 'andrewpozdnakov7-jpg-fix/359-keep-log-filter'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'andrewpozdnakov7-jpg-fix/359-keep-log-filter'
git switch 'andrewpozdnakov7-jpg-fix/359-keep-log-filter'
git rebase 'main'
git switch 'main'
git merge --ff-only 'andrewpozdnakov7-jpg-fix/359-keep-log-filter'
git switch 'andrewpozdnakov7-jpg-fix/359-keep-log-filter'
git rebase 'main'
git switch 'main'
git merge --no-ff 'andrewpozdnakov7-jpg-fix/359-keep-log-filter'
git switch 'main'
git merge --squash 'andrewpozdnakov7-jpg-fix/359-keep-log-filter'
git switch 'main'
git merge --ff-only 'andrewpozdnakov7-jpg-fix/359-keep-log-filter'
git switch 'main'
git merge 'andrewpozdnakov7-jpg-fix/359-keep-log-filter'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
TrustNo1/Darner!362
No description provided.