You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running save commands on a model during a migration script (as in the example under Creating items on https://keystonejs.com/documentation/database), the revision document for the saved item should contain a user tag.
Actual/Current behavior
It appears that _req_user is not sent to the history pre-save hook, since it's not part of a request? This causes the admin interface to crash when trying to parse the name of the user for the revision, since u doesn't exist in the revision document.
Steps to reproduce the actual/current behavior
Create a keystone model with history enabled. In a migration script, save a document to this model. Try to access the document in the admin interface.
Environment
Software
Version
Keystone
4.0.0-beta.8
Node.js
6.14.3
The text was updated successfully, but these errors were encountered:
It appears the admin interface crashes because of a forked change in our repository. So the crash is not an issue with current master, but instead of changes in keystonejs/keystone#4398.
@perenstrom Thanks for following up on the source of the issue. Since this is specific to changes on a fork, appropriate fixes should be made there as well. The application update framework is unaware of downstream changes/usage.
Expected behavior
When running
save
commands on a model during a migration script (as in the example under Creating items on https://keystonejs.com/documentation/database), the revision document for the saved item should contain a user tag.Actual/Current behavior
It appears that
_req_user
is not sent to thehistory
pre-save hook, since it's not part of a request? This causes the admin interface to crash when trying to parse the name of the user for the revision, sinceu
doesn't exist in the revision document.Steps to reproduce the actual/current behavior
Create a keystone model with history enabled. In a migration script, save a document to this model. Try to access the document in the admin interface.
Environment
The text was updated successfully, but these errors were encountered: