[COMPASS-1952] Transform Timestamp to Date error and Timestamp not editable Created: 08/Sep/17  Updated: 10/Jan/24  Resolved: 30/Jun/22

Status: Closed
Project: Compass
Component/s: CRUD
Affects Version/s: 1.8.2
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Davide De Angelis Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screen Shot 2017-09-08 at 13.18.34.png     PNG File Screen Shot 2017-09-08 at 13.18.57.png    

 Description   

Hello,

1. Compass allows transforming a document field type Date to Timestamp but not vice versa, either on Create either on Edit.

I didn't manage to see any error in the console, I'm sorry.

2. the Document fields type Timestamp, either on Create either on Edit, are not revisable.
If you try to edit a timestamp value on Create phase, it throws the following error in the Dev Console. The workaround is to transform the type to String, edit the value and then transform back to Timestamp.

/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/react-dom/lib/ReactError…:51 Uncaught TypeError: this.props.edit is not a function
    at EditableElement.focusEditValue (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/src/internal-packages/crud/lib/component/editable-element.jsx:225:16)
    at Object.invokeGuardedCallback (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/react-dom/lib/ReactErrorUtils.js:26:5)
    at executeDispatch (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/react-dom/lib/EventPluginUtils.js:85:21)
    at Object.executeDispatchesInOrder (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/react-dom/lib/EventPluginUtils.js:108:5)
    at executeDispatchesAndRelease (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/react-dom/lib/EventPluginHub.js:43:22)
    at Array.forEach (native)
    at forEachAccumulated (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/react-dom/lib/forEachAccumulated.js:24:9)
    at Object.processEventQueue (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/react-dom/lib/EventPluginHub.js:254:7)
    at runEventQueueInBatch (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/react-dom/lib/ReactEventEmitterMixin.js:17:18)
    at Object.handleTopLevel [as _handleTopLevel] (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/react-dom/lib/ReactEventEmitterMixin.js:27:5)
focusEditValue @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/src/internal-packages/crud/lib/compon…:225
invokeGuardedCallback @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/react-dom/lib/ReactError…:26
executeDispatch @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/react-dom/lib/EventPlugi…:85
executeDispatchesInOrder @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/react-dom/lib/EventPlugi…:108
executeDispatchesAndRelease @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/react-dom/lib/EventPlugi…:43
forEachAccumulated @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/react-dom/lib/forEachAcc…:24
processEventQueue @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/react-dom/lib/EventPlugi…:254
runEventQueueInBatch @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/react-dom/lib/ReactEvent…:17
handleTopLevel @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/react-dom/lib/ReactEvent…:27
handleTopLevelImpl @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/react-dom/lib/ReactEvent…:72
perform @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/react-dom/lib/Transactio…:143
dispatchEvent @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/react-dom/lib/ReactEvent…:147
_super.bugsnag @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/bugsnag-js/src/bugsnag.js:158

Thank you!



 Comments   
Comment by Jessica Sigafoos [ 30/Jun/22 ]

Thanks for your feedback! If you are still seeing this issue in the latest version of the application, please file a new ticket.

Generated at Wed Feb 07 22:28:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.