feat(power): adapt dconfig
gsettings -> dconfig
pms: TASK-374909
Summary by Sourcery
Migrate power module configuration from GSettings to DConfig
Enhancements:
- Replace GSettings-based configuration with DConfig for power management settings
- Update property handling to work with DConfig instead of GSettings
Chores:
- Remove GSettings-related imports and dependencies
- Update constant definitions to use DConfig keys
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: mhduiy
The full list of commands accepted by this bot can be found here.
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
Reviewer's Guide by Sourcery
This pull request migrates the power management daemon from using gsettings to dconfig for managing configuration settings. This involves replacing gio.Settings and gsprop with dconfig and direct property access, updating initialization and reset logic, and adjusting property change signals.
No diagrams generated as the changes look simple and do not need a visual representation.
File-Level Changes
| Change | Details | Files |
|---|---|---|
Replaced gsettings with dconfig for managing power settings. |
|
session/power1/manager.gosession/power1/power_dbusutil.gosession/power1/warn_level_config.gosession/power1/power_save_plan.gosession/power1/constant.gosession/power1/utils.gosession/power1/manager_events.go |
| Refactored WarnLevelConfigManager to directly manage settings and use callbacks. |
|
session/power1/warn_level_config.gosession/power1/manager.go |
| Updated power save plan to use dconfig for settings. |
|
session/power1/power_save_plan.go |
Modified property setters and emitters in power_dbusutil.go. |
|
session/power1/power_dbusutil.go |
| Updated constants to use dconfig keys. |
|
session/power1/constant.go |
| Updated utils to use dconfig. |
|
session/power1/utils.go |
| Updated manager events to use dconfig. |
|
session/power1/manager_events.go |
Tips and commands
Interacting with Sourcery
-
Trigger a new review: Comment
@sourcery-ai reviewon the pull request. - Continue discussions: Reply directly to Sourcery's review comments.
-
Generate a GitHub issue from a review comment: Ask Sourcery to create an
issue from a review comment by replying to it. You can also reply to a
review comment with
@sourcery-ai issueto create an issue from it. -
Generate a pull request title: Write
@sourcery-aianywhere in the pull request title to generate a title at any time. You can also comment@sourcery-ai titleon the pull request to (re-)generate the title at any time. -
Generate a pull request summary: Write
@sourcery-ai summaryanywhere in the pull request body to generate a PR summary at any time exactly where you want it. You can also comment@sourcery-ai summaryon the pull request to (re-)generate the summary at any time. -
Generate reviewer's guide: Comment
@sourcery-ai guideon the pull request to (re-)generate the reviewer's guide at any time. -
Resolve all Sourcery comments: Comment
@sourcery-ai resolveon the pull request to resolve all Sourcery comments. Useful if you've already addressed all the comments and don't want to see them anymore. -
Dismiss all Sourcery reviews: Comment
@sourcery-ai dismisson the pull request to dismiss all existing Sourcery reviews. Especially useful if you want to start fresh with a new review - don't forget to comment@sourcery-ai reviewto trigger a new review! -
Generate a plan of action for an issue: Comment
@sourcery-ai planon an issue to generate a plan of action for it.
Customizing Your Experience
Access your dashboard to:
- Enable or disable review features such as the Sourcery-generated pull request summary, the reviewer's guide, and others.
- Change the review language.
- Add, remove or edit custom review instructions.
- Adjust other review settings.
Getting Help
- Contact our support team for questions or feedback.
- Visit our documentation for detailed guides and information.
- Keep in touch with the Sourcery team by following us on X/Twitter, LinkedIn or GitHub.
TAG Bot
New tag: 6.1.27 DISTRIBUTION: unstable Suggest: synchronizing this PR through rebase #767
TAG Bot
New tag: 6.1.28 DISTRIBUTION: unstable Suggest: synchronizing this PR through rebase #769
TAG Bot
New tag: 6.1.29 DISTRIBUTION: unstable Suggest: synchronizing this PR through rebase #775
TAG Bot
New tag: 6.1.30 DISTRIBUTION: unstable Suggest: synchronizing this PR through rebase #780
TAG Bot
New tag: 6.1.31 DISTRIBUTION: unstable Suggest: synchronizing this PR through rebase #784
TAG Bot
New tag: 6.1.32 DISTRIBUTION: unstable Suggest: synchronizing this PR through rebase #786
TAG Bot
New tag: 6.1.33 DISTRIBUTION: unstable Suggest: synchronizing this PR through rebase #793
TAG Bot
New tag: 6.1.35 DISTRIBUTION: unstable Suggest: synchronizing this PR through rebase #803
TAG Bot
New tag: 6.1.36 DISTRIBUTION: unstable Suggest: synchronizing this PR through rebase #809
TAG Bot
New tag: 6.1.37 DISTRIBUTION: unstable Suggest: synchronizing this PR through rebase #811
TAG Bot
New tag: 6.1.38 DISTRIBUTION: unstable Suggest: synchronizing this PR through rebase #815
TAG Bot
New tag: 6.1.39 DISTRIBUTION: unstable Suggest: synchronizing this PR through rebase #817
TAG Bot
New tag: 6.1.40 DISTRIBUTION: unstable Suggest: synchronizing this PR through rebase #819
TAG Bot
New tag: 6.1.41 DISTRIBUTION: unstable Suggest: synchronizing this PR through rebase #822
TAG Bot
New tag: 6.1.42 DISTRIBUTION: unstable Suggest: synchronizing this PR through rebase #828
TAG Bot
New tag: 6.1.43 DISTRIBUTION: unstable Suggest: synchronizing this PR through rebase #834
TAG Bot
New tag: 6.1.44 DISTRIBUTION: unstable Suggest: synchronizing this PR through rebase #837
TAG Bot
New tag: 6.1.45 DISTRIBUTION: unstable Suggest: synchronizing this PR through rebase #843
TAG Bot
New tag: 6.1.46 DISTRIBUTION: unstable Suggest: synchronizing this PR through rebase #852
TAG Bot
New tag: 6.1.47 DISTRIBUTION: unstable Suggest: synchronizing this PR through rebase #853
TAG Bot
New tag: 6.1.48 DISTRIBUTION: unstable Suggest: synchronizing this PR through rebase #856
TAG Bot
New tag: 6.1.49 DISTRIBUTION: unstable Suggest: synchronizing this PR through rebase #857
TAG Bot
New tag: 6.1.50 DISTRIBUTION: unstable Suggest: synchronizing this PR through rebase #862
TAG Bot
New tag: 6.1.51 DISTRIBUTION: unstable Suggest: synchronizing this PR through rebase #871
TAG Bot
New tag: 6.1.52 DISTRIBUTION: unstable Suggest: synchronizing this PR through rebase #881
TAG Bot
New tag: 6.1.53 DISTRIBUTION: unstable Suggest: synchronizing this PR through rebase #888