- Issue created by @benjifisher
- πΊπΈUnited States benjifisher Boston area
Another fix would be to move the hook above the opening of the group:
/** * @addtogroup field_purge * @{ */
In fact, it would be a good idea to reorganize all the hooks in
field.api.php
, but that would not be a Novice task. In the Proposed resolution, I recommend moving the hook after the close of the group for two reasons:- It is the minimal change to fix the problem.
- If another issue adds a new hook to the end of the file, then that new hook will be outside the group.
- πΊπΈUnited States nicxvan
Good catch thanks! I agree this is novice with the scope in the issue summary.
- First commit to issue fork.
- First commit to issue fork.
- πΊπΈUnited States nicxvan
@luismagr please create the MR, i left instructive in this comment: https://www.drupal.org/project/drupal/issues/2943436#comment-16253399 π Review all tests where system module is the only dependency Active
- Merge request !13166Issue #3544005: Get out hook_field_type_category_info_alter from field_purge group β (Open) created by luismagr
The Needs Review Queue Bot β tested this issue. It fails the Drupal core commit checks. 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.
- πͺπΈSpain luismagr
Right, I'm not able to find how to fix what needs-review-queue-bot says. The txt file indicate there's a phpstan error on field.api.php however, I'm not able to run it locally. Running phpstan locally scan the src directory, the test and If I run it with -l 5 I can see field.module and field.purge.inc but not the field.api.php one.
Any advice here would be great.
Thanks
- πΊπΈUnited States nicxvan
So when there is something like that is usually means a rule changed upstream.
You need to rebase or update the fork to fix that, there are two ways to do this, one in the UI and one locally.
In the UI:
1. click on branch (not the MR) the link is called: 3544005-hookfieldtypecategoryinfoalter-should-not
2. Click update fork on the rightLocally:
1. checkout 11.x from head
2. git fetch
3. git rebase
4. Checkout this branch again
5. git rebase 11.xNote that you will need to properly resolve conflicts if you rebase and is a bit beyond the scope of this issue so if you're not familiar with rebasing I would try the UI version and do some reading on rebasing.
- πͺπΈSpain luismagr
I've updated the brach using the UI. We'll see what the bot says now.
Thanks again @nicxvan :)
The Needs Review Queue Bot β tested this issue. It fails the Drupal core commit checks. 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.
- πͺπΈSpain luismagr
I did it using the UI. I normally merge instead of rebasing but if that's the workflow I'm ok to do it manually. In this case I didn't want toncomplicate things.
I updated the branch with upstream and marked the issue as "needs review" but still got the same result. I can see it failed but there are no logs of what's exactly wrong.
I'll try tomorrow again to see if I can replicate it locally
- First commit to issue fork.
The Needs Review Queue Bot β tested this issue. It fails the Drupal core commit checks. 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.
- Merge request !13282Issue #3544005: Get out hook_field_type_category_info_alter from field_purge group β (Closed) created by luismagr