Remove the ability for the project_browser.browse route to take a project ID

Created on 20 December 2024, 2 months ago

The project_browser.browse route has two route parameters:

  • source (required) -- the ID of the source plugin we're looking at
  • id (optional) -- the ID of a project, within the given source plugin, that we're examining on its own page

"Its own page", you say?

Now that project details are displayed in a modal, it's not at all clear that this route parameter needs to exist. If not, we should remove it outright, along with the ProjectBrowser render element's support for it.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇺🇸United States phenaproxima Massachusetts

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

Merge Requests

Comments & Activities

  • Issue created by @phenaproxima
  • 🇺🇸United States phenaproxima Massachusetts
  • I have created the patch apply changes according to issue .please review it .

  • 🇺🇸United States phenaproxima Massachusetts

    That looks like a good start, but we will need it as a merge request (we're no longer using patches) and I think there is at least one other place where the #id property is used in the ProjectBrowser render element that has to be removed.

  • First commit to issue fork.
  • 🇮🇳India lavanyatalwar

    Working on it.

  • Pipeline finished with Failed
    2 months ago
    Total: 376s
    #378750
  • 🇮🇳India lavanyatalwar

    Created a MR.

  • 🇮🇳India shalini_jha

    Patch is converted to MR but Feedback is not addressed mentioned in #5,

    According to #5, there is another place where the #id is being used, which needs to be removed. Upon reviewing the code, I found that in the attachProjectBrowserSettings method, the #id is being attached to Drupal settings. Additionally, in the getDrupalSettings method, the $id parameter is passed and used in a condition (empty($id)) to determine the behaviour of the $package_manager array. Since the $id argument has already been removed from the route, should this parameter and its associated logic also be removed from the getDrupalSettings method?

  • 🇺🇸United States phenaproxima Massachusetts

    Thanks for asking. We should probably keep the logic from that if block, but remove the if itself. In other words, what's in there should always run.

  • Pipeline finished with Failed
    2 months ago
    Total: 502s
    #378990
  • 🇮🇳India shalini_jha

    I have updated the getDrupalSettings method for #id, removing the id condition while keeping the inner logic unchanged.
    Additionally, since the $id parameter has been removed from the method, I have also removed the following doc block comment.
    During testing, I noticed that ?id was being appended to the URL for all the tabs. After debugging, I removed the id from the Local task, and it is now working fine. Moving this for your review. Kindly review and let me know if anything else needs to be updated.

  • 🇺🇸United States phenaproxima Massachusetts

    That looks good to me. The test failures do not appear to be related. Thanks!

  • First commit to issue fork.
  • Pipeline finished with Failed
    about 2 months ago
    Total: 395s
    #387712
  • Pipeline finished with Failed
    about 2 months ago
    Total: 410s
    #387726
  • Pipeline finished with Skipped
    about 2 months ago
    #387735
  • 🇺🇸United States chrisfromredfin Portland, Maine

    This feels good to remove cruft from a feature we no longer have! 💪

  • Automatically closed - issue fixed for 2 weeks with no activity.

  • Pipeline finished with Success
    16 days ago
    Total: 1076s
    #423170
  • Pipeline finished with Failed
    16 days ago
    Total: 1025s
    #423247
  • Pipeline finished with Failed
    11 days ago
    Total: 971s
    #427837
  • Pipeline finished with Running
    11 days ago
    #428119
  • Pipeline finished with Failed
    10 days ago
    Total: 979s
    #428770
  • Pipeline finished with Failed
    9 days ago
    Total: 1001s
    #430015
  • Pipeline finished with Success
    8 days ago
    Total: 2002s
    #431069
  • Pipeline finished with Canceled
    7 days ago
    Total: 1098s
    #431477
  • Pipeline finished with Success
    7 days ago
    Total: 1226s
    #431488
  • Pipeline finished with Canceled
    7 days ago
    Total: 515s
    #431545
  • Pipeline finished with Success
    7 days ago
    Total: 1304s
    #431558
  • Pipeline finished with Failed
    6 days ago
    Total: 974s
    #432092
  • Pipeline finished with Failed
    6 days ago
    Total: 691s
    #432096
  • Pipeline finished with Failed
    6 days ago
    Total: 988s
    #432099
  • Pipeline finished with Failed
    6 days ago
    Total: 974s
    #432141
  • Pipeline finished with Failed
    6 days ago
    Total: 261s
    #432169
  • Pipeline finished with Failed
    6 days ago
    Total: 1298s
    #432172
  • Pipeline finished with Failed
    6 days ago
    Total: 1078s
    #432285
  • Pipeline finished with Success
    6 days ago
    Total: 1198s
    #432297
  • Pipeline finished with Failed
    5 days ago
    Total: 1831s
    #432356
  • Pipeline finished with Success
    5 days ago
    Total: 1462s
    #432391
  • Pipeline finished with Canceled
    5 days ago
    Total: 65s
    #432461
  • Pipeline finished with Canceled
    5 days ago
    Total: 1125s
    #432463
  • Pipeline finished with Success
    5 days ago
    Total: 1296s
    #432481
Production build 0.71.5 2024