Dynamic version scoring #13
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The health scoring function
health_score_after_probe
atinclude/site-health.php
attributes scores to older versions. However this is hard-coded.The database keeps track of what versions sites are running though. As can be seen for example in http://dir.friendi.ca/versions which comes from the
site-health
table'sversion
column.Since this follows a semver-like pattern it could be parsed and used to determine which stable major and minor versions are released. Meaning the scoring algorithm won't have to be updated every time.
Alternatively we could ask the Friendica devs to move the version number from
boot.php
to a separate file, likeVERSION
so we can request this file directly from the github master branch.The version of a node is available via the API, cant you use that?
@tobiasd this is what the current code does. It gets the version per server from
/friendica/json
. The difference is that you could use the code's master branch as your reference. Versus looking at servers in the wild.Yes, ok
I've added a VERSION file with the 3.5.1 release.
The next version is checking for the current stable and develop version stored on https://git.friendi.ca to compute health score.