You are browsing as a guest. Sign up (or log in) to start making projects!

1h 3m 45s logged

  • All *Include enums are now chainable so doing ListNodesQueryInclude.SERVERS + ListServersQueryInclude.USER returns servers.user
    Also now instead of <enum>.toQueryString(...) (like ListServersQueryInclude.toQueryString(...)) i do listOf(...).toQueryString()
  • Used the new include enum chaining in 2 places:
  1. node servers tab: it now makes way less HTTP requests since the user, nest & egg are directly returned with the server, saving me from making multiple HTTP requests to fetch all users, nests & eggs (which would’ve taken a long time on a large server that for example has thousands of users, since it was fetching at a rate of 50 users per HTTP request, and it being a mobile app, internet might not be fast too)
  2. servers screen, now it fetches the egg variable together with the nest instead of having to fetch the egg’s data
  • Moved ApiErrorResponse in a models folder for better organization

this is a code only change so ig i’ll show pics of the code

0
6

Comments 0

No comments yet. Be the first!