Skip to content
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

fix: Improve parsing of Friendica (and other server) version formats #376

Merged
merged 3 commits into from
Jan 23, 2024

Conversation

nikclayton
Copy link
Contributor

@nikclayton nikclayton commented Jan 23, 2024

Previous code could return an error on Friendica version strings like 2024.03-dev-1547.

Fix this:

  • Extend the list of explicitly supported servers to include Fedibird, Friendica, Glitch, Hometown, Iceshrimp, Pixelfed, and Sharkey.

  • Add version parsing routines for these servers.

  • Test the version parsing routines fetching every server and version seen by Fediverse Observer (~ 2,000 servers) and ensuring that the server and version information can be parsed.

Improve the error message:

  • Show the hostname with a ServerRepository error

Clean up the code:

  • Remove the custom resultOf and mapResult functions, they have equivalents in newer versions of the library (like runSuspendCatching)

Fixes #372

fix: Improve parsing of Friendica (and other server) version formats

Previous code could return an error on Friendica version strings like
`2024.03-dev-1547`.

Fix this:

- Extend the list of explicitly supported servers to include
  Fedibird, Friendica, Glitch, Hometown, Iceshrimp, Pixelfed, and
  Sharkey.

- Add version parsing routines for these servers.

- Test the version parsing routines fetching every server and
  version seen by Fediverse Observer (~ 2,000 servers) and ensuring
  that the server and version information can be parsed.

Improve the error message:

- Show the hostname with a `ServerRepository` error

Clean up the code:

- Remove the custom `resultOf` and `mapResult` functions, they have
  equivalents in newer versions of the library (like
  `runSuspendCatching`)

Fixes pachli#372
@nikclayton nikclayton merged commit 5cfe6d0 into pachli:main Jan 23, 2024
6 checks passed
@nikclayton nikclayton deleted the 372-friendica-version branch January 23, 2024 19:27
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.

recent change introduced incompatibility with version format used in friendica
1 participant