Move load() function of ProjectBrowser.svelte into a new window-scoped class

Created on 24 February 2025, about 1 month ago

Problem/Motivation

Steps to reproduce

Proposed resolution

๐Ÿ“Œ Task
Status

Active

Version

2.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia narendraR Jaipur, India

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @narendraR
  • Pipeline finished with Failed
    about 1 month ago
    Total: 1724s
    #432540
  • Pipeline finished with Failed
    about 1 month ago
    Total: 485s
    #432627
  • Pipeline finished with Success
    about 1 month ago
    Total: 6602s
    #432630
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia narendraR Jaipur, India
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia narendraR Jaipur, India
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States phenaproxima Massachusetts

    That's pretty much exactly what I imagined! I have a couple of questions, and I think we need to be sure we're documenting this design properly, or it won't be clear to anyone why we have this window-scoped singleton.

  • Pipeline finished with Success
    about 1 month ago
    Total: 463s
    #433150
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia narendraR Jaipur, India

    Thanks for the review, @phenaproxima! Iโ€™ve addressed the feedback and made some refinements.

  • Pipeline finished with Success
    about 1 month ago
    Total: 428s
    #433952
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States phenaproxima Massachusetts
  • Pipeline finished with Success
    about 1 month ago
    Total: 698s
    #433981
  • Pipeline finished with Success
    about 1 month ago
    Total: 489s
    #433997
  • Pipeline finished with Success
    about 1 month ago
    #434008
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States phenaproxima Massachusetts

    Okay - tentatively RTBCing. I think this is the final step before we need to do the bigger front-end lift, which is...somehow make all project objects react automatically to changes in the centralized cache. That's going to take some thinking and probably a fair amount of refactoring.

    But, once this lands, all the other pieces are in place.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States phenaproxima Massachusetts

    I analyzed this a bit more and decided to proceed with turning QueryManager into a store (i.e., it fulfills Svelte's "store contract" by implementing a subscribe() method in a particular way). The idea is that it should invoke callbacks whenever project data in the centralized cache has changed.

  • Pipeline finished with Success
    about 1 month ago
    Total: 766s
    #434188
  • Pipeline finished with Success
    about 1 month ago
    Total: 965s
    #434268
  • Pipeline finished with Failed
    about 1 month ago
    Total: 593s
    #434616
  • Pipeline finished with Failed
    about 1 month ago
    Total: 429s
    #434642
  • Pipeline finished with Failed
    about 1 month ago
    Total: 380s
    #434649
  • Pipeline finished with Success
    about 1 month ago
    Total: 499s
    #434660
  • Pipeline finished with Success
    about 1 month ago
    Total: 476s
    #434676
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States chrisfromredfin Portland, Maine

    A few comments:

    1. This introduces quite a bit of flickering in the UI that I think is a UI regression/bug.
    2. When activating multiple projects in one fell swoop, it seems to only mark the first one as "Installed." However, the front-end seems to be reacting to the correct statuses from the backend, since the `/activate?_wrapper_format=drupal_ajax` being returned is showing "active" for the first result, but only "present" for the remainder in the list. Note that if you mix-and-match; that is, if you pick two that are already in the filesystem and two that need to be required in, then it activates the local ones first (in the same way, only first one is reflected correctly in the UI), then it activates the required ones (and again shows same behavior, only the first one of that "batch" is reflected correctly in the UI). And again, this is because of what's coming back from the AJAX system. I believe the UI is properly doing "what it's told," but it's being told wrong.
  • Pipeline finished with Failed
    about 1 month ago
    Total: 414s
    #434815
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States phenaproxima Massachusetts

    OK, I think this will improve things.

    • I can't quite reproduce the flickering, but I suspect that using Svelte's indexing to help reduce diffing will improve it. So I tried that.
    • The module activation bug is legitimate and was related to the fact that ModuleActivator is holding on to an outdated container. I fixed this by forcing it to pull the new module handler and module list from the global service wrapper. This is a known pitfall of the container being changeable during a single request (and indeed, if activating multiple projects at once, that is likely to happen). I confirmed that it is fixed in manual testing, but added a low-level test for good measure.
  • Pipeline finished with Failed
    about 1 month ago
    Total: 563s
    #434844
  • Pipeline finished with Failed
    about 1 month ago
    Total: 517s
    #434849
  • Pipeline finished with Failed
    about 1 month ago
    Total: 380s
    #434870
  • Pipeline finished with Success
    about 1 month ago
    Total: 380s
    #434885
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States tim.plunkett Philadelphia

    tim.plunkett โ†’ made their first commit to this issueโ€™s fork.

  • Pipeline finished with Failed
    about 1 month ago
    Total: 490s
    #434899
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States tim.plunkett Philadelphia

    Reverted my commit, will address in follow-up. This is good to go

  • Pipeline finished with Success
    about 1 month ago
    Total: 370s
    #434964
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States tim.plunkett Philadelphia

    Saving credit

  • Pipeline finished with Skipped
    about 1 month ago
    #434970
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States tim.plunkett Philadelphia

    Merged !747

  • Pipeline finished with Failed
    about 1 month ago
    Total: 281s
    #439107
  • Pipeline finished with Success
    28 days ago
    Total: 1404s
    #441706
  • Pipeline finished with Failed
    27 days ago
    Total: 1383s
    #441951
  • Pipeline finished with Success
    23 days ago
    Total: 1362s
    #445104
  • Pipeline finished with Success
    21 days ago
    Total: 1388s
    #446473
  • Automatically closed - issue fixed for 2 weeks with no activity.

  • Pipeline finished with Success
    20 days ago
    Total: 1616s
    #447335
  • Pipeline finished with Success
    20 days ago
    Total: 1432s
    #447373
Production build 0.71.5 2024