Problem/Motivation
Currently, when bulk updating nodes, new revisions are created, but they do not have a new timestamp.
MySQL [db]> select nid,vid,revision_uid,revision_timestamp from node_revision where nid=664 ORDER BY vid;
+-----+--------+--------------+--------------------+
| nid | vid | revision_uid | revision_timestamp |
+-----+--------+--------------+--------------------+
| 664 | 342474 | 0 | 1621510523 |
| 664 | 342491 | 2227 | 1621518144 |
| 664 | 342531 | 2193 | 1621530540 |
| 664 | 435482 | 2193 | 1658507846 |
| 664 | 435483 | 2193 | 1658507921 |
| 664 | 435670 | 2227 | 1658778659 |
| 664 | 532836 | 2227 | 1658778659 |
| 664 | 540196 | 18075 | 1682095763 |
| 664 | 540316 | 2227 | 1682104179 |
| 664 | 540521 | 19906 | 1682111230 |
| 664 | 547206 | 18075 | 1682977058 |
| 664 | 547236 | 18075 | 1682981513 |
| 664 | 548841 | 2227 | 1683122014 |
| 664 | 549076 | 19891 | 1683131477 |
| 664 | 549381 | 2227 | 1683144076 |
| 664 | 549471 | 2176 | 1683146528 |
| 664 | 549481 | 2176 | 1683146780 |
| 664 | 576761 | 19891 | 1686857032 |
| 664 | 576896 | 2227 | 1686864229 |
| 664 | 576926 | 19906 | 1686864774 |
| 664 | 576977 | 19906 | 1686864774 |
| 664 | 577061 | 19906 | 1686864774 |
| 664 | 577063 | 19906 | 1686864774 |
| 664 | 577066 | 19906 | 1686864774 |
+-----+--------+--------------+--------------------+
These last 4 entries were all made via this module.
Steps to reproduce
Update a node that has revisions enabled several times.
Note that the Revisions tab doesn't reflect the time and user who made the revision
Proposed resolution
Update revision timestamp
Update revision user
Add default update message (something like "Updated fields X by user Y"
Remaining tasks
Implement the above
User interface changes
None
API changes
None
Data model changes
None. Just following core's data model.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 3367761-5-bulk_update_fields-revisions.patch | 788 bytes | amaisano |
| #2 | 3367761-bulk_update_fields-revisions.patch | 721 bytes | agentrickard |
Issue fork bulk_update_fields-3367761
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
agentrickardComment #5
amaisano commentedFork-based patch.
Comment #7
el1_1el commentedfixed and released as alpha7
Comment #8
el1_1el commented