question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

rename Follower.fetch_following_online/1

See original GitHub issue

Describe the bug Follower.fetch_following_online/1 seems to return follows that aren’t online

Expected behavior only online follows should be returned.

See test@ test/ad_hoc_user_test.exs:219

  1) test Kousa.Data.Follower fetch_following_online (KousaTest.AdHocUserTest)
     test/ad_hoc_user_test.exs:217
     match (=) failed
     code:  assert {[], _} = Follower.fetch_following_online(uid)
     left:  {[], _}
     right: {
              [
                %Beef.User{__meta__: #Ecto.Schema.Metadata<:loaded, "users">, avatarUrl: "https://example.com/abc.jpg", bio: "a dogehouse user", currentRoom: nil, currentRoomId: nil, displayName: "okey.veum", email: "duane.leannon@hotmail.com", followsYou: false, githubAccessToken: "ntoaunthanuheoh", githubId: "kaleb_walter", hasLoggedIn: false, id: "da235391-a1b3-434a-9f8f-fa8b389bf929", inserted_at: ~N[2021-03-01 05:48:25], lastOnline: nil, numFollowers: 0, numFollowing: 0, online: false, reasonForBan: nil, roomPermissions: nil, tokenVersion: 1, twitterId: "keeley2006", updated_at: ~N[2021-03-01 05:48:25], username: "titus_rau", youAreFollowing: nil},
                %Beef.User{__meta__: #Ecto.Schema.Metadata<:loaded, "users">, avatarUrl: "https://example.com/abc.jpg", bio: "a dogehouse user", currentRoom: nil, currentRoomId: nil, displayName: "trisha1912", email: "lisandro.balistreri@gmail.com", followsYou: false, githubAccessToken: "ntoaunthanuheoh", githubId: "georgianna_jacobi", hasLoggedIn: false, id: "fa642e30-55ab-4c08-a9bc-e91a72a10a41", inserted_at: ~N[2021-03-01 05:48:25], lastOnline: nil, numFollowers: 0, numFollowing: 0, online: false, reasonForBan: nil, roomPermissions: nil, tokenVersion: 1, twitterId: "alan1928", updated_at: ~N[2021-03-01 05:48:25], username: "pat1901", youAreFollowing: nil}
              ],
              nil
            }
     stacktrace:
       test/ad_hoc_user_test.exs:227: (test)

when you take @tag :skip off.

note that both of the returned structs have online: false

Posting here before actually fixing it just to see if this correlates with other unusual observations elsewhere.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ityonemocommented, Mar 1, 2021

huh, gh won’t let me de-escalate it, lol

1reaction
ityonemocommented, Mar 1, 2021

I’ll de-escalate from bug and make this a rename/refactor task.

Read more comments on GitHub >

github_iconTop Results From Across the Web

the elder scrolls v skyrim - Is there a way to rename a follower?
From what I have found, you cannot do it via a console command. You will need a mod to rename a NPC. You...
Read more >
Are we still allowed to rename followers? : r/OrnaRPG - Reddit
I previously renamed a pet. I went to rename a new pet, and I either can't find that option because I'm an old...
Read more >
Jaxonz Renamer at Skyrim Nexus - Mods and Community
Easily rename anything and anyone in game. ... Renamer is known to conflict with some follower mods. See FAQ below for patches and...
Read more >
Rename Japanese Name Follower? - Skyrim - LoversLab
So I recently downloaded a follower mod off Nexus, and it turns out the author forgot to localize the name of his follower....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found