Crediting everyone for constructive issue comments.
Committed 5d10756 and pushed to 8.7.x. Thanks!
| Comment | File | Size | Author |
|---|---|---|---|
| #27 | deprecatedentitymanager-2873858-27.patch | 1.82 KB | vakulrai |
| #22 | interdiff-22.txt | 1.84 KB | takyros |
| #22 | add_change_record_to-2873858-22.patch | 1.84 KB | takyros |
| #20 | interdiff.txt | 1.14 KB | takyros |
| #20 | add_change_record_to-2873858-20.patch | 1.68 KB | takyros |
Comments
Comment #2
schiavone commentedComment #3
sorabh.v6Comment #4
sorabh.v6@see should be mentioned after @deprecated.
@see should be mentioned after @deprecated
@see should be mentioned after @deprecated
Thanks for the patch file. :)
Comment #5
sorabh.v6Comment #6
sorabh.v6Comment #7
dhruveshdtripathi commentedChanges made according to comment #4. Interdiff added.
Comment #8
dinesh18 commented@see should not come twice. Instead of
@see \Drupal\Core\Entity\EntityLastInstalledSchemaRepositoryInterface::getLastInstalledFieldStorageDefinitions().it should be Use ......
Please follow Deprecation policy
Comment #9
dhruveshdtripathi commentedWorking on comment #8
Comment #10
dhruveshdtripathi commentedChanges made according to comment #8. That was a very good suggestion.
Thank you!
Comment #11
dinesh18 commented#10 Looks good to me. Changing the status to RTBC.
Thanks @dhruveshdtripathi for working on this.
Comment #12
larowlanThe @deprecated tags are duplicated on EntityManagerInterface.
We should be updating those too.
The deprecation policy says we should be adding
trigger_errortoo - is there an issue where that is added to EntityManager?Comment #13
larowlanConfirmed we need to add the @see to the change record on the EntityManager implementations too.
In addition, we should be updating all deprecations in both the interface and class that occurred as a result of the change notice, there are quite a lot more that have been missed. Please refer to the change notice for the list.
The trigger_error is out of scope, so ignore that comment.
Comment #14
dinesh18 commented@larowlan , it seems we need to do for all the methods mentioned in Change record.
Mentioned below :
#10 patch contains only for below methods :
1) getLastInstalledDefinition()
2) getLastInstalledFieldStorageDefinitions().
We need a patch which contains for all the above methods mentioned. Correct me @larowlan if I am wrong.
Comment #15
mile23It just so happens: #2886622: Deprecate all EntityManager methods with E_USER_DEPRECATED with some other related issues you should think about if you get the chance. :-)
The scope for this issue is to add @see to change records for deprecations in EntityManagerInterface.
EntityManagerInterface currently has an interface declaration with two methods.
We should add @see to the interface docblock and both methods, since they're individually deprecated as well.
That means that the approach of #10 is correct, but it needs some work:
Don't remove @see from the docblock. Group @see annotations at the end of the docblock. You'll have a @see for the method, and a @see for the change record, in each method docblock.
It looks like you can fit 'Use' on that first line and still wrap at 80.
Comment #16
mile23Comment #19
takyros commentedHello I'll work on this issue at Drupal Global Sprint Weekend 2018 with @jlbellido
Comment #20
takyros commentedWe fixed the 2 docblocks with the @see lines for CR and for reference, ignored the "Use" part since it's not the scope for this issue.
Comment #21
jpmelguizo commentedDon't remove this part. According to the Drupal core deprecation policy:
Check the examples in the Drupal core deprecation policy page.
The rest of the patch is as #15 mentions, so I think it should be fine.
Comment #22
takyros commentedThanks for pointing that out, here's a new patch with new fixes.
Comment #23
sorabh.v6Comment #24
sorabh.v6Patch in #22 looks good. Setting it to RTBC.
Thanks guys.
Comment #25
gábor hojtsySecond line indented by one and then third line not indented is certainly not a good practice. Normally we would indent 2 spaces on all subsequence lines under the initial line. I tried to find if we have some special format for @deprecated but did not find any.
Comment #27
vakulrai commented@Gábor Hojtsy I have changed the indentations .
Comment #28
chrischaplow commentedHi, @Max1muss and I are working on this issue, revising the patch.#ContributionWeekend2019
Comment #29
chrischaplow commentedWe have revised the patch #27 and the changes are ok. No other problems noticed.
Comment #31
alexpottThis needs to be indented as per our standards (unfortunately no automatic test yet). And we need to cut off after 80 chars.
So this becomes
Comment #33
alexpott@chrischaplow sent me an email saying that @max1mus is the wrong user. And that the user should be @max1muss - unfortunately there is no user by that name on drupal.org as far as I can find.
I've tried contact @chrischaplow via slack and drupal.org contact form but to no avail. It would be great if someone could tell me the correct user to credit.
Comment #34
takyros commentedHi, I think the user is Max1muss, found an existent profile page on drupal.org and the name matches the real name we know from the last contribution weekend. Hope it helps ;)
Comment #36
alexpottAh wow - the capital M got me. Fixing. Thanks!
Comment #37
alexpottFixed git too.
Committed b332b27 and pushed to 8.7.x. Thanks!