Skip to content

feat: upgraded export format so saved articles can be imported again#1131

Merged
spacecowboy merged 9 commits into
spacecowboy:masterfrom
edd255:master
May 19, 2026
Merged

feat: upgraded export format so saved articles can be imported again#1131
spacecowboy merged 9 commits into
spacecowboy:masterfrom
edd255:master

Conversation

@edd255

@edd255 edd255 commented May 9, 2026

Copy link
Copy Markdown
Contributor

Similarly to the user who created issue #913, I have noticed that Feeder is not able to import saved articles, which is a bit annoying when you switch devices. This PR should fix it. I have build this in Android Studio and tested it in a Google Pixel 9a emulator, and it seems to work.

Fixes #913

@spacecowboy

Copy link
Copy Markdown
Owner

Thanks for the PR @edd255 . I'm afraid this only solves a very small part of the overall feature.

Consider the following:

  • User subscribes to a feed which only contains the 10 latest articles.
  • User saves one of the articles.
  • Time passes, and now the saved article is no longer part of the 10 items in the feed. But it has been marked as saved so Feeder does not autodelete it.
  • User exports saved articles
  • User reinstalls Feeder and wishes to reimport saved articles

At this point, the acceptance criteria is:

  • The saved article which is no longer part of the feed is present in Feeder

And a major obstacle to this is that the existing import does not contain enough information to fully resurrect the item in the database. All the metadata comes from the original feed entry which is no longer available, and Feeder's export is just of the link.

To actually solve this, the exported data would need to be amended and contain the necessary metadata.

@edd255

edd255 commented May 10, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the feedback! :) I will take a look at this in a few days.

This will break backwards-compatibility to some extent, as old exports cannot be imported then. But that seems like a reasonable trade-off.

@spacecowboy

Copy link
Copy Markdown
Owner

This will break backwards-compatibility to some extent, as old exports cannot be imported then. But that seems like a reasonable trade-off.

Not much to break. Existing exports of saved articles can't be imported at all. They only exist to allow people to extract their data.

@edd255

edd255 commented May 14, 2026

Copy link
Copy Markdown
Contributor Author

I built it and tested it on a real device. It should work now. Importing saved articles from feeds you are not subscribed to also works.

@spacecowboy spacecowboy left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

This is great @edd255 . Nice work!

I added a small nit-question inline

@spacecowboy spacecowboy changed the title Import saved articles (#913) feat: upgraded export format so saved articles can be imported again May 19, 2026
@spacecowboy spacecowboy merged commit 28e236e into spacecowboy:master May 19, 2026
12 checks passed
@spacecowboy

Copy link
Copy Markdown
Owner

Thanks again @edd255

@Aga-C

Aga-C commented May 19, 2026

Copy link
Copy Markdown
Contributor

@spacecowboy Can you unblock translations on Weblate?

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.

Import saved articles.

3 participants