Problem/Motivation

Following from #2908391: Add a rule for expected format of @deprecated and @trigger_error() text we need to fix core to adhere to the two new coding standards.

This issue will fix the @deprecated doc tag to adhere to the main Deprecated.IncorrectTextLayout standard. Follow-up issues will fix the version formats, missing @see tag and missing extra-info.

Proposed resolution

Do an automated conversion with a work-in-progress PHPCS fixer (see #3057988: Automatically fixing @deprecated doc text). This creates quite a huge patch and we want to commit this as a first chunk to make reviewing easier.

Remaining tasks

  1. Commit the first huge automated conversion chunk
  2. Follow-up with patches to fix the rest (manually)
  3. Enable the new Drupal.Commenting.Deprecated in phpcs.xml

See #3094454: Fix remaining @deprecated manually and enable the coding standard for stesp 2 and 3.


Process to check and fix this coding standard

Step 1: Preparation

Open the file core/phpcs.xml.dist and add a line for the sniff of this ticket. The sniff name is in the issue title. Make sure your patch will include the addition of this line.

Step 2: Install & configure PHPCS

Install PHP CodeSniffer and the ruleset from the Coder module:

$ composer install
$ ./vendor/bin/phpcs --config-set installed_paths ../../drupal/coder/coder_sniffer

Once you have installed the phpcs package, you can list all the sniffs available to you like this:

$ ./vendor/bin/phpcs --standard=Drupal -e

This will give you a big list of sniffs, and the Drupal-based ones should be present.

Step 3: Prepare the phpcs.xml file

To speed up the testing you should make a copy of the file phpcs.xml.dist (in the core/ folder) and save it as phpcs.xml. This is the configuration file for PHP CodeSniffer.

We only want this phpcs.xml file to specify the sniff we're interested in. So we need to remove all the rule items, and add only our own sniff's rule. Rule items look like this:

<rule ref="Drupal.Commenting.Deprecated"/>

Remove all of them, and add only the sniff from this issue title. This will make sure that our tests run quickly, and are not going to contain any output from unrelated sniffs.

Step 4: Run the test

Now you are ready to run the test! From within the core/ folder, run the following command to launch the test:

$ cd core/
$ ../vendor/bin/phpcs -p

This takes a couple of minutes. The -p flag shows the progress, so you have a bunch of nice dots to look at while it is running.

Step 5: Fix the failures

When the test is complete it will present you a list of all the files that contain violations of your sniff, and the line numbers where the violations occur. You could fix all of these manually, but thankfully phpcbf can fix many of them. You can call phpcbf like this:

$ ../vendor/bin/phpcbf

This will fix the errors in place. You can then make a diff of the changes using git. You can also re-run the test with phpcs and determine if that fixed all of them.

CommentFileSizeAuthor
#58 interdiff-3048498-50-57.txt15.95 KBLendude
#57 3048498-57.fix-@deprecated.patch274.21 KBjonathan1055
#56 3048498-56.fix-@deprecated.patch284.89 KBjonathan1055
#55 3048498-55.fix-@deprecated.patch284.74 KBjonathan1055
#54 3048498-54.generate_@deprecated_fixes.patch10.53 KBjonathan1055
#50 3048498-50.fix-@deprecated.patch259.35 KBjonathan1055
#49 3048498-49.fix-@deprecated.patch269.88 KBjonathan1055
#48 3048498-48.generate_@deprecated_fixes.patch10.53 KBjonathan1055
#42 3048498-42.auto_generated_patch.patch255.21 KBjonathan1055
#40 3048498-40.auto_generated_patch.patch266.49 KBjonathan1055
#39 3048498-39.generate_@deprecated_fixes.patch10.05 KBjonathan1055
#38 3048498-38.auto_generated_fixes.patch261.62 KBjonathan1055
#37 3048498-37.generate_@deprecated_fixes.patch10.05 KBjonathan1055
#36 3048498-36.generate_@deprecated_fixes.patch10.05 KBjonathan1055
#35 3048498-35.auto_generated_fixes.patch252.82 KBjonathan1055
#34 3048498-34.auto_generated_fixes.patch249.89 KBjonathan1055
#33 3048498-33.auto_generated_fixes.patch236.74 KBjonathan1055
#32 3048498-32.generate_@deprecated_fixes.patch9.71 KBjonathan1055
#27 3048498-27.deprecated_coding_standards.patch307.2 KBjonathan1055
#22 3048498-22.deprecated_coding_standards.patch306.89 KBjonathan1055
#20 3048498-20.deprecated_coding_standards.patch315.98 KBjonathan1055
#19 3048498-19.deprecated_coding_standards.patch9.61 KBjonathan1055
#18 3048498-18.deprecated_coding_standards.patch218.19 KBjonathan1055
#17 3048498-17.deprecated_coding_standards.patch175.35 KBjonathan1055
#16 3048498-16.deprecated_coding_standards.patch85.33 KBjonathan1055
#15 3048498-15.deprecated_coding_standards.patch9.61 KBjonathan1055
#14 3048498-14.deprecated_coding_standards.patch123.48 KBjonathan1055
#13 3048498-13.deprecated_coding_standards.patch9.27 KBjonathan1055
#12 3048498-12.deprecated_coding_standards.patch9.74 KBjonathan1055
#10 3048498-10.fix_deprecated_coding_standards.patch9.21 KBjonathan1055
#8 3048498-8.fix_deprecated_coding_standards.patch9.27 KBjonathan1055
#7 3048498-7.fix_deprecated_coding_standards.patch15.03 KBjonathan1055
#6 3048498-6.fix_deprecated_coding_standards.patch14.97 KBjonathan1055
#3 3048498-phpcs-xml-changes.txt538 bytesnaveenvalecha
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jonathan1055 created an issue. See original summary.

naveenvalecha’s picture

naveenvalecha’s picture

Title: Fix core for @deprecated coding standards » Fix Drupal.Commenting.Deprecated coding standard
Issue summary: View changes
Issue tags: +Coding standards
FileSize
538 bytes

Retitling to better reflect the issue.
Updating issue summary to add what needs to be done so that we could get more contributors
Attaching the file which only includes the coding standard rule change

naveenvalecha’s picture

Status: Active » Postponed
naveenvalecha’s picture

Status: Postponed » Active

back to Active #3048244: Update the stable version of drupal/coder to ˆ8.3.2 In the meanwhile, I updated the issue summary @alexpott committed the other issue.

jonathan1055’s picture

Status: Active » Needs review
FileSize
14.97 KB

Here is a patch which add the single new sniff and removes all others. Also I am going to see if this works, making a change to drupalci.yml to not run the phpunit tests, which take a long time.

Obviously, these big changes are only so we can get quick test results on d.o.. The full set of phpunit tests will need to be run once the bulk of the standards work has been completed in a patch.

jonathan1055’s picture

jonathan1055’s picture

The patch in #7 ran nice and quickly, 1 min 28s compared to 50 mins for the full phpunit run.
It showed 3283 coding standards messages, but some were not for @deprecated. I took too much out of phpcs.xml.dist - some internal sniffs appear to be run by default even without having a specific include in the phpcs.xml file.

jonathan1055’s picture

So 946 coding messages is the starting point. Nice that it is under 1000!

jonathan1055’s picture

Re-rolled.
This patch is not for committing, only to show the extent of warnings in core code.

jonathan1055’s picture

Status: Needs review » Postponed

There are now 948 warning messages for @deprecated tag in core.

However, work on fixing these should be postponed until any possible change in the standard is agreed and the sniff ammended. The standard was all agreed by 13 March at comment #68 on #3024461-68: Adopt consistent deprecation format for core and contrib deprecation messages but since implementaion of the coder rule there has been further disagreements - read from comment #86

jonathan1055’s picture

Status: Postponed » Needs review
FileSize
9.74 KB

Work can re-start on this now that we have agreement on the standards text on #3024461: Adopt consistent deprecation format for core and contrib deprecation messages

Core currently only uses Coder version 8.3.2 so here is a patch which runs the updated sniff (via applying a patch in drupalci.yml).

jonathan1055’s picture

Now that Core uses Coder 8.3.4 the patch to Coder in drupalci.yml is not required, so here is a simplified version.

jonathan1055’s picture

Using a starter patch from #3033332: [META] Fix language and consistency of deprecation messages and annotations here is a first attempt at fixing some of the deprecated messages. There are many more to fix.

edit: This patch has reduced the errors and warnings from 960 down to 873, a drop of 87 or nearly 10%

jonathan1055’s picture

I've done some work to get PHPCS to generate automatic fixes for the @deprecated text - see #3057988: Automatically fixing @deprecated doc text

The patch here updates Coder to have this new functionality and the test run should (hopefully) generate a patch to fix a large proportion of the messages.

jonathan1055’s picture

Now with the generated phpcs patch added.


Edit: 778 warnings remaining so this fixed 182/960 = 19%
jonathan1055’s picture

Enhanced to cover more common errors in the text. When a @deprecated tag failure is found, the following pattern is tried:
/(as of|in) (Drupal|drupal)( |:)(.+)(,| and) (will be|is) removed (from|before|in) (Drupal|drupal)( |:)([\d\.]+)\.(.*)$/
If this matches, then we know how to correct the text.

Patch generated locally, coder changes also uploaded and applied.


Edit: 571 warnings remain, so this now fixes 389 / 960 = 40.5%
jonathan1055’s picture

Further enhancements to catch some more common fails. Pattern is

/(as of|in) (drupal)( |:)(.+)(,|\.| and) (will be|to be|is) removed (from|before|in) (drupal)( |:)(.+)\.(.*)$/i

474 warnings remain, so this patch now fixes 486 / 960 = 50.6% by automated correction
jonathan1055’s picture

Re-run the base patch to check new total number of warnings and generate new phpcs patch.


Edit: 930 errors and warnings in the current core 8.8 dev
jonathan1055’s picture

Now with the generated fixes


Edit: 410 warnings remain, so this now fixes 520 / 930 = 55.9%
klausi’s picture

Status: Needs review » Needs work
Issue tags: +drupaldevdays

Patch looks good to me. It is getting quite huge already and hard to review. Do you want to continue converting here or should we commit this first set of automated conversions? It covers more than 50% already, so would be quite a substantial step already.

If we do that we also need a green test run with the default testing setup.

jonathan1055’s picture

Status: Needs work » Needs review
FileSize
306.89 KB

Here's a patch which will run the full test suite. I think it would be good to get these committed, then the next steps will be smaller.

I have checked locally that the patch applies (had to make one change and re-rolled) but I have not run the core tests locally. This processes all the sniffs not just the new one.

jonathan1055’s picture

So the tests are green and there are 413 warnings remaining (compared to 410 in #20 7 days ago). I have compared the phpcs output and the new ones are only @deprecated so this patch does not introduce any other error.

I'd be happy if this could be committed now, and we tackle the rest in stages. I know that Garbor was also leaning towards that plan in #3048495-39: Fix Drupal.Semantics.FunctionTriggerError coding standard

klausi’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

Patch looks clean, no other changes than converting those @deprecated messages.

Updated the issue summary with the current action plan.

alexpott’s picture

Status: Reviewed & tested by the community » Needs work

We shouldn't be committing a fix that results in errors whilst running composer phpcs - applying this patch makes that happen.

If we change the phpcs.xml change to be something like

  <rule ref="Drupal.Commenting.Deprecated">
    <exclude name="Drupal.Commenting.Deprecated.DeprecatedMissingSeeTag"/>
    <exclude name="Drupal.Commenting.Deprecated.DeprecatedVersionFormat"/>
    <exclude name="Drupal.Commenting.Deprecated.DeprecatedWrongSeeUrlFormat"/>
  </rule>

Then we can focus on only fixing (Drupal.Commenting.Deprecated.IncorrectTextLayout. And then followup patches do each of DeprecatedMissingSeeTag, DeprecatedVersionFormat and DeprecatedWrongSeeUrlFormat in turn.

klausi’s picture

Ah, good point - sorry, I overlooked the phpcs.xml.dist change.

jonathan1055’s picture

Status: Needs work » Needs review
FileSize
307.2 KB

We shouldn't be committing a fix that results in errors whilst running composer phpcs

Yes you are right, but I was not intending the commit to include the addition of any of the new rules in the first instance. Klausi and I just wanted to get the first 520 fixes done (which is 55% of the whole) so that the manual changes are in a more manageable patch. The manual fixes will take a while and each time it is bound to involve a re-roll of that patch which fixes the 520 because of core commits elsewhere.

OK, here's the same patch, but using the change to phpcs.xml.dixt from #25 to only add the specific Drupal.Commenting.Deprecated.IncorrectTextLayout rule.

alexpott’s picture

Status: Needs review » Needs work

So I think a way forward here is to commit the changes without the phpcs.xml.dist change at all. It'll reduce the noise on an issue trying to do the rest.

One issue is that atm the moment this is doing changes like:

+++ b/core/includes/common.inc
@@ -436,7 +436,7 @@ function base_path() {
- * @deprecated in Drupal 8.x, will be removed before Drupal 9.0.
+ * @deprecated in drupal:8.0 and is removed from drupal:9.0.

I do think that messages we fix here should comply with both Drupal.Commenting.Deprecated.IncorrectTextLayout and Drupal.Commenting.Deprecated.DeprecatedVersionFormat so we don't end up changing the same lines twice.

Gábor Hojtsy’s picture

@jonathan1055 are you planning to continue working on this?

jonathan1055’s picture

Yes, I will work on this. Sorry, I've been busy on other things. If you think that Alexpott's request for ensuring that lines we change here also meet all the other deprecation standards (even though we are ignoring those rules at the moment) then I can alter the automated fixing to try to cover those.

Gábor Hojtsy’s picture

Yeah I think we should fix all of them on the same lines if at all possible without needing to generate / review each as its own issue. Thanks so much for working on this!

jonathan1055’s picture

Re-roll of #19 as core 8.8 has moved on a bit. No changes to Coder rules yet, but this will get current baseline and generate new phpcs patch.

jonathan1055’s picture

898 coding standards errors reported in #32
Here is the patch that was generated.

jonathan1055’s picture

I had forgotten that the patch file generated by the druapl.org testbot has, for example:

--- tests/Drupal/Tests/UnitTestCase.php
+++ PHP_CodeSniffer

Whereas for it to be actually useful here, it needs to be:

--- a/tests/Drupal/Tests/UnitTestCase.php
+++ b/tests/Drupal/Tests/UnitTestCase.php

Rustled up a quick php script to make the changes on the patch file.

jonathan1055’s picture

OK, so it also need /core adding in.


edit: Of the 898 existing errors, 376 remain after this patch, so that implies 522 get fixed, which is 58% of the total.
jonathan1055’s picture

New patch to generate a higher proportion of fixes

jonathan1055’s picture

Fix xml syntax (one ending / not needed)

jonathan1055’s picture

So eliminating the noise of the other sniffs (missing @see, missing extra-info, wrong url format, which we can tackle subsequently) we have a clearer picture of the basic text to fix: There are 667 'IncorrectLayout' faults from #37, and the results of patch #38 will show the results of the auto-fixing work so far, and indicate what other types of auto-fixing might be possible.

jonathan1055’s picture

More work done to automatic fixing. This will use a newer patch #8 of coder to generate the fixes patch.

jonathan1055’s picture

Now run the generated patch.

jonathan1055’s picture

From #39 we see that there are 668 coding standards messages for Drupal.Commenting.Deprecated.IncorrectTextLayout, and a patch was generated to fix as many as possible.

In #40 this generated patch was run and there are only 58 coding standards messages, so the auto-fixing sorted out 610 of 668 which is 91%.

I'd like to request that this patch is reviewed and if OK then committed, as I do not think the remaining 58 can be fixed automatically. There are many which do not have a deprecation version. Lots can be fixed manually, which I will do after the main patch is committed.

I could then move on to looking at automatically fixing the warnings, but I want to leave that until the majority of the errors (the 610) have been committed.

@gabor, @alexpott, @klausi - what is the next step to getting the changes in #40 reviewed? I know that the actual full patch #40 shoud not be committed because it adds the new sniff. But the standards changes it includes are all ready for review and commit.

Jonathan

jonathan1055’s picture

Here is the actual patch to commit, i.e without the changes to drupalci.yml and phpcs.xml.dist. This will run the full phpcs (without the new sniffs) so should be clean.

The patch in #40 did not apply due to recent commits on #3069049: Properly deprecate View::fixTableNames and #3052233: Properly deprecate EntityFormInterface::setEntityManager() and trigger an error on use so I have removed those hunks from the patch. I am wary that I'll always be having to re-roll or regenerate this patch as it touches so many files, and even a few days between creation and review will likely mean it no longer applies. But at least I have the process and it is easily repeatable.

Lendude’s picture

Status: Needs review » Reviewed & tested by the community

Checked that #42 changes nothing except the @deprecated tags.

Lets get this in quick, or plan a date to land this, so the constant rerolling isn't needed.

jonathan1055’s picture

Thanks @lendude. Yes, as this currently touches 315 core files it would be nice to get it in, particularly as #3038170: Drupal core's own deprecation testing results is happening. If this can't be committed quickly, that's OK but we need a planned date. Then I will regenerate the patch on that date.

xjm’s picture

Title: Fix Drupal.Commenting.Deprecated coding standard » [≈Nov. 11] Fix Drupal.Commenting.Deprecated coding standard
Status: Reviewed & tested by the community » Postponed
Issue tags: +beta target

Agreed. Let's do this at the start of the beta, the week of Nov. 11. Thank you!

jonathan1055’s picture

OK. But just to make you aware, the automated fixing of the 610 currently only addresses the first basic layout sniff
Drupal.Commenting.Deprecated.IncorrectTextLayout

When this is committed, there will be some manual work on the 58 which could not be automated, then we can start on the other sniffs in this standard, as these are being excluded in the patch:

<rule ref="Drupal.Commenting.Deprecated">
  <exclude name="Drupal.Commenting.Deprecated.MissingExtraInfo"/>
  <exclude name="Drupal.Commenting.Deprecated.MissingSeeTag"/>
  <exclude name="Drupal.Commenting.Deprecated.VersionFormat"/>
  <exclude name="Drupal.Commenting.Deprecated.PeriodAfterSeeUrl"/>
  <exclude name="Drupal.Commenting.Deprecated.WrongSeeUrlFormat"/>
</rule>

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.0-alpha1 will be released the week of October 14th, 2019, which means new developments and disruptive changes should now be targeted against the 8.9.x-dev branch. (Any changes to 8.9.x will also be committed to 9.0.x in preparation for Drupal 9’s release, but some changes like significant feature additions will be deferred to 9.1.x.). For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

jonathan1055’s picture

Status: Postponed » Needs review
FileSize
10.53 KB

Unpostponing now that 11 Nov is here. This is a re-roll of patch #39 which will show how many errors we have for the main layout standard, and will generate the patch to fix those that are fixable.

jonathan1055’s picture

So patch #48 found 675 @deprecated faults on basic layout, slightly up on the 668 from 10th September.

Here is the generated patch + drupalci changes in #48. This won't fix all of the the 675 but should do a large proportion of them.

jonathan1055’s picture

Patch #49 shows we have 58 faults which are not auto-fixed (looks like the same 58 we had in #40 back in September)
The patch alters 319 files and makes 617 corrections, so that is 91% auto-fixable. Nice that 617 + 58 = 675 which was the number of faults found in #48

This patch #50 is the actual one that can be committed (it does not include the changes to drupalci and phpcs.xml.dist) and hence will run the full test suite, not the shortcut.

Lendude’s picture

Status: Needs review » Reviewed & tested by the community

Scanned the diff again, and still looks great.

This should not go into D9 since all of this should be removed by then. As far as I can find only \Drupal\FunctionalTests\AssertLegacyTrait is scheduled for removal in D10 at the moment, so no part of this patch is relevant for D9 (since this patch doesn't touch that).

jonathan1055’s picture

Thanks @Lendude. I have just belatedly spotted how I can auto-fix another 36 of those 58 remaining failures, which will reduce the manual work even more. I can get a revised patch here today, if that is OK with you? Or do you want to go ahead now that you have marked this RTBC?

Lendude’s picture

Status: Reviewed & tested by the community » Needs work

Let's get them in too! Less manual work === good

jonathan1055’s picture

OK, this is a re-run of #48/#49/#50
Step 1 of 3 - patch #54 will check the single standard and generate the phpcs patch to fix them. This uses a new patch on the Coder issue #3057988-10: Automatically fixing @deprecated doc text

jonathan1055’s picture

Patch #54 reported 837 coding standards messages. This time it has included the Drupal.Commenting.Deprecated.MissingSeeTag sniff even though drupalci.yml is excluding this. Nothing should have changed to cause this, but it does not really matter, it just confuses the totals

The generated patch has the expected fixes, it now alters 348 files (up 29 from 319) and makes 653 corrections (up 36 from 617)

Here is step 2 of 3 - check the generated patch running only the new sniff.

jonathan1055’s picture

For some unknown reason the Drupal.Commenting.Deprecated.MissingSeeTag and Drupal.Commenting.Deprecated.VersionFormat sniffs are being shown as having an extra 'Deprecated' word added e.g. Drupal.Commenting.Deprecated.DeprecatedMissingSeeTag in the checkstyle.xml output in dispatcher. This should be changed by the latest Coder patch, and it worked fine yesterday in #48/#49 so I do not know why it is different today. Here's a repeat of patch #55 but with both versions of the sniff excluded. Now we should see a cleaner output (compared the the 220 messages shown in #55) of the remaining basic @deprecated standard violations that will need manual fixing.

jonathan1055’s picture

That's better. Only 22 @deprecated basic errors remaining with this patch. 675 existing in the code - 617 - 36 = 22 so that adds up.

Step 3 of 3 - the actual patch #57 for final review, which can be committed to core 8.9.

Lendude’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
15.95 KB

@jonathan1055 great work on this.

Here is the interdiff for 50-57, and that shows all the new changes are of the 8.?.? variety. Back to RTBC.

lauriii’s picture

Should we open a follow-up to do this in JavaScript as well?

jonathan1055’s picture

great work on this

Thanks @Lendude

Here is the interdiff for 50-57, and that shows all the new changes are of the 8.?.? variety

Yes, those 36 extras did not have any deprecation version, so I catered for this in the corrected text by adding 8.?.?. I know these will need the actual version inserted when we come to working on the Drupal.Commenting.Deprecated.VersionFormat standard fix, but at least now the main text is correct and it only needs manual effort to find the version.

  • alexpott committed 2a009c5 on 9.0.x
    Issue #3048498 by jonathan1055, Lendude, naveenvalecha, klausi, alexpott...
alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed 2a009c5edd to 9.0.x and 6b52bd3100 to 8.9.x and 9293166c27 to 8.8.x. Thanks!

Backported to 8.8.x as a docs only change.

  • alexpott committed 6b52bd3 on 8.9.x
    Issue #3048498 by jonathan1055, Lendude, naveenvalecha, klausi, alexpott...

  • alexpott committed 9293166 on 8.8.x
    Issue #3048498 by jonathan1055, Lendude, naveenvalecha, klausi, alexpott...
Gábor Hojtsy’s picture

Status: Reviewed & tested by the community » Fixed
Gábor Hojtsy’s picture

I quickly cross-checked that the 8.?.? format does not interfere with the version identification logic in deprecation_status or upgrade_status. Both identify versions from (in|as of) [Dd]rupal[ :](8.\d) which will not match 8.? (good, since in this case there is no version to match yet).

jonathan1055’s picture

Issue summary: View changes
Status: Fixed » Needs work

This is not fixed yet. We have done part 1 of the issue summary, committing the large automated patch. Part 2 is to fix the remaining layout problems manually. There are only 22 of these (after the 653 have been fixed automatically) as listed in comment #56. Then the final part will be to enable the sniff to ensure we do not introduce new failures.

I will try to make a these corrections, and provide a patch here, but I expect there will be details that I do not know, and will require input/review from others.

alexpott’s picture

Status: Needs work » Fixed

@jonathan1055 - let's do the follow-up to manually fix the rest and enable the coding standard in another issue.

jonathan1055’s picture

OK, I have created #3094454: Fix remaining @deprecated manually and enable the coding standard for the follow-up.

I noted that in #51 above @Lendude said that this should not go into core D9 but that the commit in #61 was at 9.0, then 8.9 and 8.8. I think this is fine, because with the standard fixed in 9.0 it means we can search and do analysis on the versions as part of the process of removing the code.

jonathan1055’s picture

Just to let you know #3009848-5: Fully deprecate WorkflowDeleteAccessCheck is a blocker for fixing one final @deprecated tag.

Status: Fixed » Closed (fixed)

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

jonathan1055’s picture

Sorry to post on a closed issue, I meant to do this a few days ago.

Fixing the final 22 @deprecated coding standards and then implementing the rule has stalled due to Core tests referencing one piece of deprecated code but the deprecation warning was not being flagged - see #3009848: Fully deprecate WorkflowDeleteAccessCheck

To get this moving again, all it needs is the message to be added to Tests/Listeners/DeprecationListenerTrait to show that we are aware of its usage. This will allow the @deprecated basic layout coding standard sniff to be added to Core. The full solution to deprecating WorkflowDeleteAccessCheck can then be worked on independently. Having the standard enforced in core will ensure that we wont get into this situation again, where deprecated code usage is being masked and we are unaware of its usage.

Please can anyone who is following this issue take a look at #3009848: Fully deprecate WorkflowDeleteAccessCheck, not for the final solution but my patches in #7 and #8 which will alllow us to progress. Thanks.

jonathan1055’s picture