messages-from-the-stars / messages-from-the-stars-be

2 stars 1 forks source link

Discover Page - User Story #4 #12

Closed tig-o closed 2 years ago

tig-o commented 2 years ago

As a user, when I visit the discover page, I see all the satellites that are in range so that I can see all messages attached. All satellites will be ordered by message amount attached or brightness.

tig-o commented 2 years ago

Prioritized with Philip and Mike on zoom call.

tig-o commented 2 years ago

After looking at this ticket, api/v1/satellite/above can be consumed from FE. I believe there might be other things required from the BE repo. Thoughts below. I am down to pair up on this, this might be the order for discover page:

  1. I am a user logged in and looking at the discover page.
  2. Who is my current user? find user with Consuming internal GET "/api/v1/users/find_or_create_user?username=#{username}&name=#{name}"
  3. Consume geocoder to determine users current location
  4. Consume api/v1/satellite/above based on passed through: 1. manipulated cone degree and 2. users location
  5. Send collection of above satellites to internal POST "/user_satellite/create_user_satellite"? Because only the norad id needs to be saved to a user?
  6. Display satellites to user based on # of days out

I might be missing something here but this is the basic understanding in my brain right now. We can discuss on retro/project time tomorrow

@mikekoul @alepbloyd