Skip to content

feat: Refactor device management functions to use Result type for error handling#311

Open
egalvis27 wants to merge 18 commits into
mainfrom
refactor/device-backend-module
Open

feat: Refactor device management functions to use Result type for error handling#311
egalvis27 wants to merge 18 commits into
mainfrom
refactor/device-backend-module

Conversation

@egalvis27
Copy link
Copy Markdown

What is Changed / Added


A few months ago, several issues were detected around device creation. During that period, the debugging process was especially difficult because the flow concentrated too much logic in a few places, error handling was not fully consistent, and test coverage was limited in critical paths.

This refactor aims to improve the internal quality of the device module so it becomes easier to understand, maintain, and debug, while also reducing the risk of regressions in future changes.

@egalvis27 egalvis27 changed the base branch from main to feat/go-fuse-daemon April 21, 2026 02:19

const result = folder.children.map((backup) => ({
name: backup.plainName,
pathname: '' as AbsolutePath,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

is there any other way to infer the type without forcing it?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Done

@egalvis27 egalvis27 force-pushed the refactor/device-backend-module branch from 25b4f0e to e5c8eab Compare April 27, 2026 15:14
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 5, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
70.3% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

Base automatically changed from feat/go-fuse-daemon to main June 1, 2026 15:20
AlexisMora and others added 16 commits June 5, 2026 14:18
* feat: Get Attributes operation + Electron 21

* fix: node: http
* feat: golang lint

* feat: golang test pipeline

* chore: go daemon testing

* chore: testing for virtual drive module

* fix: go lint workflow

* fix: go lint workflow bump version

* chore: lint issues in golang

* fix: pr comments

* fix: format
…d improve type imports

Co-authored-by: Copilot <copilot@github.com>
* feat: Implement Open and OpenDir FUSE opeartions

* fix:format

* fix: linting warnings

* fix: simplification of fuse status transport betweeen daemon and electron

* chore:tests

* fix:format

* chore: skip unused fuseApp class test + fix test

* Fix lint warning
…nge-backup-path tests; remove unused lodash import in getBackupsFromDevice
@egalvis27 egalvis27 force-pushed the refactor/device-backend-module branch from c7750c2 to 5a3f46a Compare June 5, 2026 20:40
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 5, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
51.3% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants