- Issue created by @No Sssweat
- last update
over 1 year ago 13 pass - last update
over 1 year ago 13 pass - Merge request !15Issue #3381841: In Views, the "Is Locked" field does not get updated after a lock break โ (Merged) created by No Sssweat
- Open on Drupal.org โCore: 9.5.x + Environment: PHP 8.1 & MySQL 8last update
over 1 year ago Not currently mergeable. - last update
over 1 year ago 3 pass, 14 fail - last update
over 1 year ago 13 pass - Issue was unassigned.
- Status changed to Needs review
over 1 year ago 8:26am 22 August 2023 - Status changed to Needs work
over 1 year ago 11:56am 25 September 2023 - ๐ฎ๐ณIndia nikhil_110
I reproduced this issue on my local and added MR or checked it, but when I add a node, only when I edit the node from admin, the lock status changes, but when I edit the node from another user. the locked status of the node does not change and is also not shown to other users.
- Status changed to Postponed: needs info
10 months ago 3:06pm 26 March 2024 - ๐บ๐ธUnited States smustgrave
Tried replicating following the steps in the issue summary and the view is updating fine for me with the latest 8.x-2.x changes.
- Merge request !36Issue #3381841: In Views, the "Is Locked" field does not get updated after a lock break โ (Closed) created by smustgrave
- Status changed to Needs review
10 months ago 3:05pm 27 March 2024 - ๐บ๐ธUnited States smustgrave
Still not able to replicate but now that we have a views test file I expanded on that to verify this.
- ๐บ๐ธUnited States smustgrave
smustgrave โ changed the visibility of the branch 3381841-in-views-the to hidden.
- ๐ฌ๐งUnited Kingdom alexpott ๐ช๐บ๐
I followed the steps as defined in the issue summary and this is definitely still an issue. Which is good because nothing has been committed recently that would fix this.
The reason the tests pass is that view provided by the module has cache set to none - while the views.view.content has the cache type of tag.
- Status changed to Needs work
9 months ago 10:18am 2 April 2024 - ๐ฌ๐งUnited Kingdom alexpott ๐ช๐บ๐
alexpott โ changed the visibility of the branch 3381841-in-views-the to active.
- ๐ฌ๐งUnited Kingdom alexpott ๐ช๐บ๐
I've fixed the view so that it works - but I'm scared... this means views an edit screen and locking a node will impact the cache. This does not feel like the correct solution.
I think what we should do is introduce a content_lock cache tag and cause views which use it's fields to add that.
- First commit to issue fork.
- ๐ฌ๐งUnited Kingdom alexpott ๐ช๐บ๐
The changes to config/optional/views.view.locked_content.yml and src/ContentLock/ContentLock.php can be removed. Theyโre not necessary.
We also should add an upgrade path that finds views and resaves them if they use the content_lock table.
- Status changed to Needs review
9 months ago 12:06am 18 April 2024 - ๐ช๐ธSpain penyaskito Seville ๐, Spain ๐ช๐ธ, UTC+2 ๐ช๐บ
Completed the upgrade and tested it manually.
Do we expect an upgrade test too? If not this is ready for reviews. - Status changed to RTBC
9 months ago 3:58pm 22 April 2024 - ๐บ๐ธUnited States smustgrave
Applied MR locally
Hook ran fine without issue
Tests appear all greenBelieve this is good, based also on the slack thread I was on.
- Status changed to Needs work
8 months ago 10:01am 30 April 2024 - ๐ฌ๐งUnited Kingdom alexpott ๐ช๐บ๐
Added some comments to the MR - I think we need to add test coverage of the new code.
- Status changed to Needs review
8 months ago 1:32pm 15 May 2024 - ๐ฌ๐งUnited Kingdom alexpott ๐ช๐บ๐
Adding a test and changed a few things.
- ๐ฌ๐งUnited Kingdom alexpott ๐ช๐บ๐
Okay - we've got test coverage of the view and saving the view while trying to change the cache plugin. This is looking good. I manually tested the post update and it is was working.
-
alexpott โ
committed 1cfba052 on 8.x-2.x authored by
No Sssweat โ
Issue #3381841 by alexpott, penyaskito, No Sssweat, smustgrave: In Views...
-
alexpott โ
committed 1cfba052 on 8.x-2.x authored by
No Sssweat โ
- Status changed to Fixed
8 months ago 2:16pm 15 May 2024 Automatically closed - issue fixed for 2 weeks with no activity.