home-assistant / home-assistant/android

SettingsDAO should be split in two part app settings and server specifc settings

Open
#5,549 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Kotlin
Stars
3.9k
Forks
1.1k
Avg merge
1d 12h
Merged PRs (30d)
81

Description

Today we are using server ID 0 to store the app settings. We should have a dedicated model for the app settings and one other for the server.

This will also need migration from the single table to two within room to not loose any settings.

Contributor guide

Open the contributing guide

Research direction

Start by locating SettingsDAO and the Room entities and tables it uses. Trace how server ID 0 currently stores app settings, then identify the migration path that separates app settings from server-specific settings. Done means both models exist and the migration preserves all existing settings without loss.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
databases, mobile-dev
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.