- Issue created by @catch
- ๐ฎ๐ณIndia nishtha.pradhan
nishtha.pradhan โ made their first commit to this issueโs fork.
- Merge request !8663Add deprecation notice on use of $variables['view']. โ (Closed) created by nishtha.pradhan
- ๐ฎ๐ณIndia nishtha.pradhan
Added a deprecation notice for use $variables['view'].
- Status changed to Needs review
5 months ago 11:15am 5 July 2024 - Status changed to Needs work
5 months ago 6:32am 6 July 2024 - ๐ฎ๐ณIndia ankitv18
Hi,
I've reviewed the MR and left a comment.
Please cover the deprecation part and revert the other changes.Note: Issue URL should be replaced with the document URL of the deprecation.
cc: @catch
- Status changed to Needs review
5 months ago 11:22am 8 July 2024 - ๐ฎ๐ณIndia nishtha.pradhan
Thank you for your feedbacks @guptahemant & @ankitv18.
I have worked upon them and update the MR.
Please do let me know if any other changes are required. - ๐ณ๐ฟNew Zealand quietone
@nishtha.pradhan, thanks for creating a change record for this issue, that is most helpful. Change records are published after an issue is committed and doing that is part of a core committer's tasks. So, please leave change records at draft. Thanks.
- Status changed to Needs work
5 months ago 1:31pm 10 July 2024 - ๐บ๐ธUnited States smustgrave
Left a comment on the MR.
But can we also add a deprecation test for this.
- Status changed to Needs review
4 months ago 6:32am 24 July 2024 - ๐ฎ๐ณIndia vinmayiswamy
Hi,
I have verified MR !8663 on Drupal 11.x. The suggested changes have been implemented. I checked the deprecation message by creating a sample view for testing, and I can confirm that the deprecation message appears on the dump.
Please see the attached screenshot for reference.
Additionally, @smustgrave mentioned the possibility of adding a deprecation test for this. Do we need to include a deprecation test? If so, we may need to move this issue to NW. Otherwise, I'm giving a +1 to RTBC.
Thanks!
- Status changed to Needs work
4 months ago 1:39pm 24 July 2024 - ๐ฎ๐ณIndia ankitv18
Rebased the forked branch and pipelines are executed without any failure, hence moving into review
- Status changed to Needs review
4 months ago 1:54pm 24 July 2024 - Status changed to Needs work
4 months ago 2:38pm 24 July 2024 - Status changed to RTBC
3 months ago 4:09am 13 September 2024 - ๐ณ๐ฟNew Zealand quietone
There is no special logic related to the deprecation so tests should not be needed. See point 3 of How to deprecate โ . And we can see a previous example here, ๐ Deprecate $variables['teaser'] Fixed .
I updated the change record so the variable name and code are in code blocks. Also removed the phrase 'for now' as there is no intention to replace this.
- ๐ณ๐ฟNew Zealand quietone
Forgot to add that I searched for usages and found none.
git grep view | grep node.html.twig
Automatically closed - issue fixed for 2 weeks with no activity.