[haiku-bugs] Re: [Haiku] #11890: [HaikuDepot] Refresh depots resets current selection

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Fri, 22 May 2020 22:02:35 -0000

#11890: [HaikuDepot] Refresh depots resets current selection
--------------------------------------+----------------------------
  Reporter:  diver                    |      Owner:  stippi
      Type:  bug                      |     Status:  new
  Priority:  normal                   |  Milestone:  R1
 Component:  Applications/HaikuDepot  |    Version:  R1/Development
Resolution:                           |   Keywords:
Blocked By:                           |   Blocking:
  Platform:  All                      |
--------------------------------------+----------------------------
Comment (by apl-haiku):

 For the search / filtering this is exactly what it is doing now -- it is
 adding and removing items and this is very performant.

 The "reload everything" function (effectively what "Refresh Repositories"
 is doing) is needing to reset HD's state against the package manager and
 so it is easiest to remove everything and start again in this case.  To
 diff the in-memory state against the package manager's state would be
 quite a bit of work to orchestrate.

 This is why the view is first blanked out and a reload happens.  It is
 akin to restarting the application.
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/11890#comment:6>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: