Repository navigation
Document the multiline format of a string config entry - #505
Conversation
|
@Bot-MArley review |
Bot-MArley
left a comment
There was a problem hiding this comment.
Note
This comment was written by Claude and posted by Bot-MArley on behalf of the Music Assistant maintainers.
Thanks @marcelveldt! This documents the multiline value of ConfigEntry.format for STRING entries, right next to the existing pairing code notes. The comment matches how the companion server PR (music-assistant/server#8428) uses it: the troubleshooter's description entry is a STRING with format="multiline". Nothing in the models validates format for STRING entries, so no code change is needed here.
Looks good, no requested changes. Once it's out of draft, it's ready for a maintainer to merge together with the server PR.
|
@Bot-MArley approve |
|
Note This comment was posted by Bot-MArley on behalf of the Music Assistant maintainers. @marcelveldt |
# What does this implement/fix? When an AI engine is connected, the troubleshooter offers "Troubleshoot with the help of AI" for each player and music source, and on "Something else". You describe the problem in your own words, and the step tells you which AI engine it goes to. The answer explains what is likely going on and can suggest settings, which you check before anything is saved, or you report the problem with your description and the answer attached. ## Changes - New "Troubleshoot with the help of AI" card on the problem step of players and providers, and on "Something else", only when a default AI engine is set up - One step to describe the problem, which names the AI engine it goes to - The AI only gets the switches, numbers and fixed choices of that player or provider, its status and recent errors, never free text, passwords, or the names of players and accounts - Suggested settings are only offered when they are real settings with a value they take, and you confirm them in the usual change step - The report gets your own description and the AI analysis, for the `What happened?` and `AI analysis` fields of the bug form - New `get_recent_exceptions` on the diagnostics controller, sanitized ## Types of changes - [ ] Bugfix (non-breaking change which fixes an issue) — `bugfix` - [ ] New feature (non-breaking change which adds functionality) — `new-feature` - [x] Enhancement to an existing feature — `enhancement` - [ ] New music/player/metadata/plugin provider — `new-provider` - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) — `breaking-change` - [ ] Refactor (no behaviour change) — `refactor` - [ ] Documentation only — `documentation` - [ ] Maintenance / chore — `maintenance` - [ ] CI / workflow change — `ci` - [ ] Dependencies bump — `dependencies` ## Checklist - [x] The code change is tested and works locally. - [x] `pre-commit run --all-files` passes. - [x] `pytest` passes, and tests have been added/updated under `tests/` where applicable. - [x] For changes to shared models, the companion PR in `music-assistant/models` is linked. (music-assistant/models#505) - [x] For changes affecting the UI, the companion PR in `music-assistant/frontend` is linked. (music-assistant/frontend#3397) - [x] I have read and complied with the project's [AI Policy](https://github.com/music-assistant/.github/blob/main/AI_POLICY.md) for any AI-assisted contributions. - [ ] I have [raised a PR against the documentation repository](https://github.com/music-assistant/music-assistant.io/blob/main/CONTRIBUTING.md) targeting the main or beta branch as appropriate. (follows, with the troubleshooter docs)
Update music-assistant-models to version [1.1.257](https://github.com/music-assistant/models/releases/tag/1.1.257) ## 🚀 Features and enhancements - Tell clients whether crossfade can be switched on for a queue (by @marcelveldt in [music-assistant#506](music-assistant/models#506)) ## 🧰 Maintenance and dependency bumps - Document the multiline format of a string config entry (by @marcelveldt in [music-assistant#505](music-assistant/models#505)) - Let config actions mark themselves as destructive (by @marcelveldt in [music-assistant#504](music-assistant/models#504)) ## 🙇 Contributors @marcelveldt Co-authored-by: musicassistant-bot[bot] <304008617+musicassistant-bot[bot]@users.noreply.github.com>
What does this implement/fix?
The server now marks a text setting with
format="multiline"when it should be shown as a text area, for the description a user writes in the troubleshooter (server#8428). This documents that value next to the existing pairing code format.ConfigEntry.formatdescribesmultilinefor STRING entriesRelated issue (if applicable):
Types of changes
bugfixnew-featureenhancementbreaking-changerefactordocumentationmaintenancecidependenciesChecklist
pre-commit run --all-filespasses.pytestpasses, and tests have been added/updated undertests/where applicable. (no code change)music-assistant/serveris linked. (Troubleshoot with the help of AI server#8428)