-
-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subscriptions #61
Comments
gofeed will be used for RSS, Atom, and JSON feed parsing. Development is on the |
The name for this needs to be unified before merging. Feeds are "subscribed" to, pages are "tracked", but also feeds are "tracked", etc. The name "feeds" is used throughout the code, but this is not representative due to the page tracking functionality. Maybe just "Subscriptions"?
|
The "gemini feed format" (
|
Sometimes corrupted JSON files are being written. This is critical error that must be discovered and fixed before merging into master. Here is an example of the bottom of a corrupted file: },
"gemini://republic.circumlunar.space/users/xkp/gemlog/": {
"hash": "24860ed36333d360817b5d35614fdd714266df360c54e35a2f1ac1ce7375d82a",
"changed": "2020-11-24T18:34:49.418540845Z"
}
}
}
r.space/users/xkp/gemlog/": {
"hash": "24860ed36333d360817b5d35614fdd714266df360c54e35a2f1ac1ce7375d82a",
"changed": "2020-11-24T18:34:49.418540845Z"
}
}
}
.space/users/xkp/gemlog/": {
"hash": "24860ed36333d360817b5d35614fdd714266df360c54e35a2f1ac1ce7375d82a",
"changed": "2020-11-24T18:34:49.418540845Z"
}
}
} The corrupted part begins on line 8. The entries don't have preceding quotes, and are also not inside the final closing brace on line 7. The hash and times are the same, suggesting this is maybe some sort of double write issue. Maybe mutexes are not being used in some function where they should be. Another issue was discovered where the entire file was appended to itself a second time. Even after adding
This appears to have been solved (not committed yet) by replacing In any case, it seems to be fixed. The errors were quite regular and now have not occurred at all when updating, adding, and removing subscriptions. This fix should be fully confirmed through more testing before merging to master. This was all resolved in 1a2fba9. |
More info on corrupt reads and writes: #61 (comment) The panic was occuring due to lines like: if u[:6] == "about:" These would cause panics for URIs that were shorter than 6, like "docs/". strings.HasPrefix was used instead to fix this.
See #61 for details on this feature.
Merged in 6d8e823! 😄 |
Other issues related to subscription: #144 |
atom.xml
,feed.xml
,*.rss
,*.atom
,feed.json
application/atom+xml
,application/rss+xml
,application/json+feed
When should the feed view be regenerated?
On hard-reload of the feed viewerOn every X load of the feed viewerThe text was updated successfully, but these errors were encountered: