Skip to content

use clay %cult endpoint for more reliable sub count data#4

Open
sidnym-ladrut wants to merge 5 commits into
assemblycapital:masterfrom
sidnym-ladrut:sl/improve-install-data-reliability
Open

use clay %cult endpoint for more reliable sub count data#4
sidnym-ladrut wants to merge 5 commits into
assemblycapital:masterfrom
sidnym-ladrut:sl/improve-install-data-reliability

Conversation

@sidnym-ladrut
Copy link
Copy Markdown

Currently, %vita uses the /c/s/[our]/[desk]/[now]/subs endpoint in order to determine the number of ships that have downloaded the desk [desk] distributed by the host ship [our]. Mechanically, this is implemented by tallying the number of outstanding %clay subscriptions for various paths within this desk. Unfortunately, not all of these subscriptions represent full desk installs (e.g. %hits subscribes to just the docket file in a desk), causing this statistic to be greatly inflated.

This PR changes %vita to pull subscriptions from the /c/x/[our]//[now]/cult/[desk] endpoint, filtered by full desk subscriptions to the latest version of the desk. This data more accurately captures the current number of live subscribers. This PR also includes a couple of smaller changes, i.e. (1) renaming +share-usage to +toggle-vita and (2) removing the client-side "already sent data" debugging log statement.

Comment thread README.md
git clone -b 411k --depth 1 https://github.com/urbit/urbit.git urb
cp urb/pkg/arvo/lib/{agentio*,verb*,strand*} vita-full/lib/
cp urb/pkg/arvo/sur/{spider*,verb*} vita-full/sur/
git clone -b sl/server-schooner-z412k --depth 1 https://github.com/sidnym-ladrut/yard.git yar
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Quick note here: I need to follow up with @sigilante to get the 412k schooner fix into %yard proper and then this code can just pull from the master branch. Alternatively, I can just omit these more explicit install instructions.

@sidnym-ladrut sidnym-ladrut force-pushed the sl/improve-install-data-reliability branch from c87900b to fb5881d Compare November 12, 2024 16:38
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.

1 participant