Get rid of jQuery in displace event

Created on 13 May 2024, about 1 year ago

Problem/Motivation

This is exact copy of https://www.drupal.org/project/drupal/issues/3390549 📌 Get rid of jQuery in dialog events. Needs review but for `drupalViewportOffsetChange` event.
And utilises same deprecation logic. It also required in jquery dialog replace so i marked it as beta target.

Remaining tasks

We need change record for this.

Feature request
Status

Active

Version

11.0 🔥

Component
Javascript 

Last updated about 14 hours ago

Created by

🇷🇸Serbia finnsky

Live updates comments and jobs are added and updated live.
  • JavaScript

    Affects the content, performance, or handling of Javascript.

  • Needs change record

    A change record needs to be drafted before an issue is committed. Note: Change records used to be called change notifications.

Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @finnsky
  • Merge request !8052#3446855 "Deprecate displace event" → (Open) created by finnsky
  • Status changed to Needs review about 1 year ago
  • Pipeline finished with Failed
    about 1 year ago
    #171693
  • Pipeline finished with Success
    about 1 year ago
    #171699
  • 🇷🇸Serbia finnsky

    finnsky changed the visibility of the branch 3446855-get-rid-of to hidden.

  • Pipeline finished with Success
    about 1 year ago
    #171709
  • Pipeline finished with Canceled
    about 1 year ago
    Total: 36s
    #178987
  • Pipeline finished with Canceled
    about 1 year ago
    Total: 59s
    #178988
  • Pipeline finished with Success
    about 1 year ago
    Total: 520s
    #178990
  • Status changed to Needs work about 1 year ago
  • The Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".

    This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.

    Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

  • Status changed to Needs review about 1 year ago
  • Pipeline finished with Success
    about 1 year ago
    Total: 569s
    #181384
  • Pipeline finished with Success
    about 1 year ago
    Total: 513s
    #191381
  • Status changed to Needs work 11 months ago
  • 🇺🇸United States smustgrave

    Wasn't entire sure how to test this one.

    I applied the MR and tested on a view page which has dialog and didn't see any issue
    If any other recommendation can try that.

    Did leave a comment on the MR for deprecation version.

  • First commit to issue fork.
  • Pipeline finished with Canceled
    11 months ago
    Total: 94s
    #267118
  • Pipeline finished with Success
    11 months ago
    Total: 467s
    #267122
  • Status changed to Needs review 11 months ago
  • 🇮🇳India shalini_jha

    I have addressed the mentioned feedback. While updating, I also noticed that the dialog-deprecation.js file had the same issue in line state 12.0.0, so I updated that as well. Please review.

  • Status changed to Needs work 11 months ago
  • Pipeline finished with Canceled
    11 months ago
    Total: 256s
    #268483
  • Status changed to Needs review 11 months ago
  • 🇷🇸Serbia finnsky

    RE: #11

    For test you may revert this MR changes in toolbar.js locally. and when you will open close toolbar on desktop it will trigger deprecation messages.
    Also you need to set drupalSettings.suppressDeprecationErrors to true. Easiest way to do it
    core/misc/drupal.js:564 in Drupal.deprecationError remove this condition

    `drupalSettings.suppressDeprecationErrors === false &&`

  • Pipeline finished with Failed
    11 months ago
    Total: 639s
    #268486
  • Status changed to Needs work 11 months ago
  • 🇺🇸United States smustgrave

    Seems to have a few test failures

    Thanks for taking care of that version update for the deprecation message.

  • Pipeline finished with Failed
    10 months ago
    #281844
  • Status changed to Needs review 10 months ago
  • 🇷🇸Serbia finnsky

    We have broken test in navigation module. If 2 or more data-once attributes presented. Fixed here.

  • Pipeline finished with Success
    10 months ago
    Total: 646s
    #281887
  • Status changed to RTBC 10 months ago
  • 🇺🇸United States smustgrave

    Believe feedback has been addressed. Tested same way as did in #11

  • 🇳🇿New Zealand quietone

    @finnsky, Thanks for the continued work on javaScript,

    The first thing I did was change the format of URL is issue summary so I can read the issue title. There is no proposed resolution to explain the scope of this change. Is it everywhere in core or not? But I am more concerned about the testing. There are steps for testing but they are different than the steps #15. And neither of those are what was done to test this issue. Because of that I am setting to NW for manual testing and updated the remaining steps.

    Also, I read the change record and changed some formatting. Why is it ticked that this impacts "Site builders, administrators, editors"?

  • 🇳🇿New Zealand quietone

    This is a child of a critical task.

  • Status changed to Needs work 3 months ago
  • 🇷🇸Serbia finnsky

    Now CR:
    Impacts:
    Module developers
    Themers
    Distribution developers

  • Pipeline finished with Failed
    3 months ago
    Total: 448s
    #477652
  • Pipeline finished with Failed
    3 months ago
    Total: 3851s
    #477669
  • 🇺🇸United States smustgrave

    Sorry for the delay, keeping the review queue below 200 has been a battle. But there appears to be test failures that when I re-run still fail.

  • Pipeline finished with Failed
    about 1 month ago
    Total: 398s
    #510877
  • 🇷🇸Serbia finnsky

    Pretty stupid test failure.
    We check

    [data-once="admin-toolbar-document-triggers-listener"]

    even though we should

    [data-once*="admin-toolbar-document-triggers-listener"]

    because in this task data-once has two values

    Please review!

  • Pipeline finished with Failed
    about 1 month ago
    Total: 3727s
    #510895
  • 🇺🇸United States smustgrave

    Again sorry for the delay, really been struggling with the queue lately. But the javascript failure seems related. re-ran 3 times.

  • 🇺🇸United States smustgrave

    Saving credit for @finnsky and @shalini_jha for the work

  • Pipeline finished with Failed
    22 days ago
    Total: 1414s
    #526765
  • Pipeline finished with Failed
    22 days ago
    Total: 1472s
    #526786
  • Pipeline finished with Failed
    22 days ago
    Total: 8355s
    #526795
  • 🇷🇸Serbia finnsky

    I don't get it.
    Nightwatch task fails at the end for a strange reason.

Production build 0.71.5 2024