Skip to content

[BUG] Backed up enabled repositories remain disabled on import when they already exist #1322

@kaoneko

Description

@kaoneko

Before you submit

  • I have searched the issue tracker for open and closed issues that are similar to the feature request I want to file, without success.
  • This issue contains only one bug.

What's going wrong?

Backed up enabled repositories remain disabled on import when they already exist. This might mean all backed up settings and metadata of existing repositories are ignored on import (i.e. description, mirrors).

How do we reproduce it?

  1. Install Droid-ify / Clear storage
  2. Enable some repositories that are disabled by default
  3. Export repositories
  4. Reinstall Droid-ify / Clear storage
  5. Import repositories

Previously enabled repositories remain disabled, even though we can see in the backup file that the selected repositories do have "enabled": true. If you first remove the existing repositories, they will be enabled after import though.

What did you expect?

Backed up repositories that already exist should either be restored with all of their metadata or the user should be given a choice to overwrite or skip them. When not providing a choice, warn the user beforehand with a message like "Existing repositories will be overwritten if they also exist in the backup".

Screenshots

No response

Your phone

All phones I've used in the past few years

Android version

All Android versions I've used in the past few years

Droid-ify version

All Droid-ify versions I've used in the past few years (currently 0.7.1)

Anything else?

This bug was mentioned in #1195 which describes multiple issues, so I thought it necessary to create this as a more detailed and actionable one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions