Problem/Motivation

Hello project maintainers,

This is an automated issue to help make this module compatible with Drupal 11.

Changes will periodically be added to this issue that remove deprecated API uses. To stop further changes from being posted, change the status to anything other than Active, Needs review, Needs work or Reviewed and tested by the community. Alternatively, you can remove the "ProjectUpdateBotD11" tag from the issue to stop the bot from posting updates.

The changes will be posted by the Project Update Bot official user account. This account will not receive any issue credit contributions for itself or any company.

Proposed resolution

You have a few options for how to use this issue:

  1. Accept automated changes until this issue is closed

    If this issue is left open (status of Active, Needs review, Needs work or Reviewed and tested by the community) and the "ProjectUpdateBotD11" tag is left on this issue, new changes will be posted periodically if new deprecation fixes are needed.

    As the Drupal Rector project improves and is able to fix more deprecated API uses, the changes posted here will cover more of the deprecated API uses in the module.

    Patches and/or merge requests posted by others are ignored by the bot, and general human interactions in the issue do not stop the bot from posting updates, so feel free to use this issue to refine bot changes. The bot will still post new changes then if there is a change in the new generated patch compared to the changes that the bot posted last. Those changes are then up to humans to integrate.

  2. Leave open but stop new automated changes.

    If you want to use this issue as a starting point to remove deprecated API uses but then don't want new automated changes, remove the "ProjectUpdateBotD11" tag from the issue and use it like any other issue (the status does not matter then). If you want to receive automated changes again, add back the "ProjectUpdateBotD11" tag.

  3. Close it and don't use it

    If the maintainers of this project don't find this issue useful, they can close this issue (any status besides Active, Needs review, Needs work and Reviewed and tested by the community) and no more automated changes will be posted here.

    If the issue is reopened, then new automated changes will be posted.

    If you are using another issue(s) to work on Drupal 11 compatibility it would be very useful to other contributors to add those issues as "Related issues" when closing this issue.

Remaining tasks

Using the patches

  1. Apply the latest patch in the comments by Project Update Bot or human contributors that made it better.
  2. Thoroughly test the patch. These patches are automatically generated so they haven't been tested manually or automatically.
  3. Provide feedback about how the testing went. If you can improve the patch, post an updated patch here.

Using the merge request

  1. Review the merge request and test it.
  2. Thoroughly test the changes. These changes are automatically generated so they haven't been tested manually or automatically.
  3. Provide feedback about how the testing went. If you can improve the merge request, create a new branch and merge request and work from there.

Warning: The 'project-update-bot-only' branch will always be overwritten. Do not work in that branch!

Providing feedback

If there are problems with one of the changes posted by the Project Update Bot, such as it does not correctly replace a deprecation, you can file an issue in the Drupal Rector issue queue. For other issues with the bot, for instance if the issue summary created by the bot is unclear, use the Project analysis issue queue.

Issue fork quickedit-3434080

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Project Update Bot created an issue. See original summary.

project update bot’s picture

Status: Active » Needs review
StatusFileSize
new2.58 KB
new10 KB

This is an automated patch generated using Upgrade Status and Drupal Rector. Please see the issue summary for more details. A merge request (MR) is also openend and updated.

It is important that any automated tests available are run and that you manually test the changes.

Drupal 11 Compatibility

According to the Upgrade Status module, even with these changes, this module is not yet compatible with Drupal 11.

Currently Drupal Rector, version 0.20.1, cannot fix all Drupal 11 compatibility problems.

Therefore these changes did not update the info.yml file for Drupal 11 compatibility.

The compatibility issues that Upgrade Status found after the Drupal Rector fixes were applied are attached to help you resolve them manually.

Leaving this issue open, even after committing the current patch or merging the MR, will allow the Project Update Bot to post additional Drupal 11 compatibility fixes as they become available in Drupal Rector.

Debug information

Bot run #11-127659

These packages were used to generate the fixes:

  1. drupal/upgrade_status: 4.1.0
  2. mglaman/phpstan-drupal: 1.2.9
  3. palantirnet/drupal-rector: 0.20.1

Status: Needs review » Needs work

The last submitted patch, 2: quickedit.1.0.3.rector.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

project update bot’s picture

Version: 1.0.3 » 1.0.x-dev
Status: Needs work » Needs review
StatusFileSize
new1.8 KB
new4.66 KB
new9.2 KB

This is an automated patch generated using Upgrade Status and Drupal Rector. Please see the issue summary for more details. A merge request (MR) is also openend and updated.

It is important that any automated tests available are run and that you manually test the changes.

Drupal 11 Compatibility

According to the Upgrade Status module, even with these changes, this module is not yet compatible with Drupal 11.

Currently Drupal Rector, version 0.20.3, cannot fix all Drupal 11 compatibility problems.

Therefore, these changes did not update the info.yml file for Drupal 11 compatibility.

The compatibility issues that Upgrade Status found after the Drupal Rector fixes were applied are attached to help you resolve them manually.

Leaving this issue open, even after committing the current patch or merging the MR, will allow the Project Update Bot to post additional Drupal 11 compatibility fixes as they become available in Drupal Rector.

Debug information

Bot run #11-199781

These packages were used to generate the fixes:

  1. drupal/upgrade_status: 4.3.2
  2. mglaman/phpstan-drupal: 1.2.11
  3. palantirnet/drupal-rector: 0.20.3

Rajeshreeputra made their first commit to this issue’s fork.

VladimirAus made their first commit to this issue’s fork.

VladimirAus changed the visibility of the branch 3434080-automated-drupal-11 to hidden.

ankitv18 changed the visibility of the branch 3434080-automated-drupal-11 to active.

ankitv18 changed the visibility of the branch project-update-bot-only to hidden.

vladimiraus’s picture

Issue summary: View changes
Status: Needs review » Needs work

@ankitv18 why would you remove upgrade status ci pipeline?
Also, phpstan pipelines need more love.

ankitv18’s picture

Status: Needs work » Needs review

Basically upgrade_status reports same as phpstan so it's ideal to avoid running extra jobs and just focusing on to fix phpunit first then I'll restore the upgrade_status in the pipeline.

ankitv18’s picture

Status: Needs review » Needs work
ankitv18’s picture

Status: Needs work » Needs review
vladimiraus’s picture

Status: Needs review » Needs work

Need to fix phpunit errors and the following phpstan errors

 ------ --------------------------------------------------------------- 
  Line   tests/src/Unit/Access/QuickEditEntityFieldAccessCheckTest.php  
 ------ --------------------------------------------------------------- 
  83     Trying to mock an undefined method get() on class              
         Drupal\Core\Entity\EntityInterface.                            
  87     Trying to mock an undefined method hasTranslation() on class   
         Drupal\Core\Entity\EntityInterface.                            
 ------ --------------------------------------------------------------- 

chandu7929 made their first commit to this issue’s fork.

chandu7929’s picture

The remaining tests are failing because the library quickedit.inPlaceEditor.formattedText is not attached during testing. I will investigate further to determine the root cause.

chandu7929’s picture

I have fixed most of the failing tests only 2 similar test are failing.

  1. Drupal\Tests\quickedit\FunctionalJavascript\LayoutBuilderIntegrationTest::testArticleNode - This caused by empty body field value
  2. Drupal\Tests\quickedit\FunctionalJavascript\CKEditor5IntegrationTest::testArticleNode - Not sure why saving state isn't available for body field
deepakkm’s picture

Status: Needs work » Needs review

Created a separate issue to cover the 2 pipeline issue and require a fresh set of eyes on them as that has dependency on ckeditor 5 module. Hence moving this ticket into review.

darrenwh’s picture

Status: Needs review » Needs work

I'm trying to apply this patch agains version 1.0.3 and it does not work, it only seems to work with 1.0.x, should this be the case?
I'm currently just adding the patch under extra, patches in my composer.json file.
Setting as needs review as I would expect it to apply.

deepakkm’s picture

Status: Needs work » Needs review

Yes @darrenwh , you cannot apply a patch for this module for an older version, you need to apply against dev [1.0.x].

Note: You can update your composer.json to load quickedit module dev version and then apply the patch in extra section and it will work fine.

pfolk’s picture

With these patches is quickedit working in Drupal 11?

albert volkman’s picture

Status: Needs review » Reviewed & tested by the community

Works great!

abhinesh’s picture

Thanks — works flawlessly! RTBC +1. Eagerly awaiting the release.

jatinkumar1989’s picture

Thanks this works Great !!

igorgoncalves’s picture

StatusFileSize
new57.41 KB

RTBC + 2

Works great on my Drupal 11.2.0 clean install.

I will leave below the steps that i had to follow, maybe can help someone else in the future too.

Check it out this page

I ran this commands to start from stratch, using ddev:

ddev composer create-project drupal/recommended-project
ddev config --project-type drupal --docroot web
ddev start
ddev composer create-project drupal/recommended-project
** ddev composer require mglaman/composer-drupal-lenient **
ddev composer config --merge --json extra.drupal-lenient.allowed-list '["drupal/quickedit"]'
ddev composer require cweagans/composer-patches
ddev composer require --dev drush/drush
ddev drush site:install --account-name=admin --account-pass=admin -y
ddev composer require drupal/ctools; ddev drush en ctools
ddev composer require drupal/entity; ddev drush en entity
ddev composer require drupal/libraries; ddev drush en libraries
ddev composer require drupal/quickedit; ddev drush en quickedit 

[here we added the libraries required and the merge request patch]

ddev composer update drupal/quickedit
ddev launch

** This was done to remove a barrier with getting extensions installed via Composer to work on making modules Drupal 11 ready.

After that i created a test article and the result works as expected i could change the title of my article.

screenshot

murilohp’s picture

StatusFileSize
new40.86 KB

Just a static patch of the MR to be used on composer.

igorgoncalves’s picture

Hey Murilo,

you could just add ".diff" at the end of the MR link, and we are go to go on composer. :)

Like: https://git.drupalcode.org/project/quickedit/-/merge_requests/18.diff

brahmjeet789’s picture

StatusFileSize
new116.44 KB

@mutilohp: i am not able to apply patch , please check my screenshot for the same , please let me know if am doing anything wrong in the project.

brahmjeet789’s picture

Status: Reviewed & tested by the community » Needs work
igorgoncalves’s picture

Hi @brahmjeet789, Murilo just tried to give us another way to fix with the MR we currently have.

did you tried to check the proposal MR with the steps at #27?

murilohp’s picture

Status: Needs work » Reviewed & tested by the community

@igorgoncalves the issue with using a direct link to the merge request (MR) is that I can't lock it to a specific version. If someone updates the MR, I'll always receive the latest version. This means if someone commits something incorrect, I'll end up with that version.

@brahmjeet789, the patch is basically the content of the merge request, since the MR is pointing to the dev branch, you'll have to use it, here I'm applying it to the dev-1.0.x#62e8dd618, my composer has the following requirement

"drupal/quickedit": "dev-1.0.x#62e8dd618516b8f177615cac26d6ccefe21e067a",

I hope this helps you. And moving this back to RTBC

igorgoncalves’s picture

You're right Murilo.
Thanks for the update.

brahmjeet789’s picture

StatusFileSize
new125.39 KB

@murilohp : still ihave got an errro when i am using dev branch , could you please check it , please help me to resolve this issue .

brahmjeet789’s picture

StatusFileSize
new39.09 KB

@murilohp : i have created patch for the same , please look into it , if it is fine , please let me know.

brahmjeet789’s picture

Status: Reviewed & tested by the community » Needs review
brahmjeet789’s picture

StatusFileSize
new32.08 KB

@Murilohp: added new revised patch for the same. please check and let us know if it is fine with latest branch.

brahmjeet789’s picture

brahmjeet789’s picture

StatusFileSize
new32.06 KB
brahmjeet789’s picture

StatusFileSize
new30.56 KB

@Murilohp: added new revised patch for the same. please check and let us know if it is fine with latest branch.

rahul_’s picture

Hello Team,

When we will get the Drupal 11 compatible release ?

Thanks

keshavv’s picture

Can we get the D11 version released, please?

vladimiraus’s picture

Status: Needs review » Reviewed & tested by the community

Looks good. Tested on D11.

albert volkman’s picture

Please create a Drupal 11 release.

vladimiraus’s picture

Version: 1.0.x-dev » 2.0.x-dev
Status: Reviewed & tested by the community » Fixed

Thank you. Committed. 🍻

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • vladimiraus committed fa38b366 on 2.0.x
    feat: #3434080 Automated Drupal 11 compatibility fixes for quickedit
    
    By...

  • vladimiraus committed 2d79ce19 on 2.0.x
    feat: #3434080 Automated Drupal 11 compatibility fixes for quickedit
    
    By...

Status: Fixed » Closed (fixed)

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