RequestBuilder / Core Refactor #326

Merged
v0l merged 5 commits from relay-lb into main 2023-03-29 12:16:34 +00:00
v0l commented 2023-02-17 14:08:57 +00:00 (Migrated from github.com)

This PR has been hijacked by the RequestBuilder rewrite, the Gossip code is not used atm and will be hooked up to the new system in another PR.

Process goes like this:

  1. Cache relay lists (ContactLists + 10002 Relay List) in LoginFeed
  2. Use custom hook useRelaysForFollows which gives you pickRelays for a set of PubKeys
    1. Here we look at all pubkeys and count the number of pubkeys on each relay
    2. After this we pick the top 3 relays for each pubkey (relays are sorted by most popular first)
    3. Next we select all distinct relays in the list and get the pubkeys on each relay which we want to fetch
  3. Expand Subscriptions by relay and pubkey set, for timeline subject pubkey we return a list of subs for each relay we want to query and by which pubkeys
  4. Everything else works the same
This PR has been hijacked by the `RequestBuilder` rewrite, the Gossip code is not used atm and will be hooked up to the new system in another PR. Process goes like this: 1. Cache relay lists (ContactLists + 10002 Relay List) in `LoginFeed` 2. Use custom hook `useRelaysForFollows` which gives you `pickRelays` for a set of PubKeys 1. Here we look at all pubkeys and count the number of pubkeys on each relay 2. After this we pick the top 3 relays for each pubkey (relays are sorted by most popular first) 3. Next we select all distinct relays in the list and get the pubkeys on each relay which we want to fetch 4. Expand `Subscriptions` by relay and pubkey set, for timeline subject `pubkey` we return a list of subs for each relay we want to query and by which pubkeys 5. Everything else works the same
verbiricha (Migrated from github.com) reviewed 2023-02-17 14:08:57 +00:00
cloudflare-pages[bot] commented 2023-02-17 14:10:27 +00:00 (Migrated from github.com)

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: c731c65
Status:   Deploy successful!
Preview URL: https://16eb9cf7.snort-social.pages.dev
Branch Preview URL: https://relay-lb.snort-social.pages.dev

View logs

## Deploying with &nbsp;<a href="https://pages.dev"><img alt="Cloudflare Pages" src="https://user-images.githubusercontent.com/23264/106598434-9e719e00-654f-11eb-9e59-6167043cfa01.png" width="16"></a> &nbsp;Cloudflare Pages <table><tr><td><strong>Latest commit:</strong> </td><td> <code>c731c65</code> </td></tr> <tr><td><strong>Status:</strong></td><td>&nbsp;✅&nbsp; Deploy successful!</td></tr> <tr><td><strong>Preview URL:</strong></td><td> <a href='https://16eb9cf7.snort-social.pages.dev'>https://16eb9cf7.snort-social.pages.dev</a> </td></tr> <tr><td><strong>Branch Preview URL:</strong></td><td> <a href='https://relay-lb.snort-social.pages.dev'>https://relay-lb.snort-social.pages.dev</a> </td></tr> </table> [View logs](https://dash.cloudflare.com/?to=/:account/pages/view/snort-social/16eb9cf7-e205-4775-b9ba-6a10d5d7baa2)
verbiricha (Migrated from github.com) reviewed 2023-02-17 17:03:03 +00:00
verbiricha (Migrated from github.com) reviewed 2023-02-21 17:21:16 +00:00
verbiricha (Migrated from github.com) left a comment

tested ACK

tested ACK
v0l commented 2023-02-21 17:32:38 +00:00 (Migrated from github.com)

Needs more work

Needs more work
verbiricha commented 2023-03-05 08:49:00 +00:00 (Migrated from github.com)

I'm not getting any search results even with frequently used keywords such as "zap".

I'm not getting any search results even with frequently used keywords such as "zap".
verbiricha commented 2023-03-05 11:26:49 +00:00 (Migrated from github.com)
Following this pubkey https://relay-lb.snort-social.pages.dev/p/npub1n0sturny6w9zn2wwexju3m6asu7zh7jnv2jt2kx6tlmfhs7thq0qnflahe but can't find any notes.
v0l commented 2023-03-28 15:55:22 +00:00 (Migrated from github.com)

Posting a reply doesn't show in thread, data is seen on feed though

Posting a reply doesn't show in thread, data is seen on feed though
Sign in to join this conversation.
No description provided.