Skip to content

Conversation

addaleax
Copy link
Collaborator

@addaleax addaleax commented Nov 6, 2020

Update the formatting for several values in the browser REPL.
Since fixing this for Date objects consistently enabled doing
straightforward fixes for a few other issues, this addresses:

Update the formatting for several values in the browser REPL.
Since fixing this for Date objects consistently enabled doing
straightforward fixes for a few other issues, this addresses:

- COMPASS-4440 (Consistently formatting `Date` objects)
- COMPASS-4441 (Ignoring `undefined` results)
- MONGOSH-410 (`sh.status()` formatting)
- COMPASS-4465 (`ObjectId` formatting in nested objects)
import { CursorOutput } from './types/cursor-output';
import { CursorIterationResultOutput } from './types/cursor-iteration-result-output';
import { ObjectOutput } from './types/object-output';
import { StatsResultOutput } from './types/stats-result-output';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what should we do in future to avoid forgetting to implement these here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well … we didn’t forget to implement this, we just didn’t check properly whether it works as intended in the browser repl, I think

I’m not really worried about this being a common occurrence, tbh

@addaleax addaleax merged commit e813746 into master Nov 9, 2020
@addaleax addaleax deleted the browser-output-updates branch November 9, 2020 08:39
addaleax added a commit to mongodb-js/compass that referenced this pull request Nov 11, 2020
Fixes several formatting issues through
mongodb-js/mongosh#395:

- COMPASS-4440 (Consistently formatting `Date` objects)
- COMPASS-4441 (Ignoring `undefined` results)
- MONGOSH-410 (`sh.status()` formatting)
- COMPASS-4465 (`ObjectId` formatting in nested objects)
addaleax added a commit to mongodb-js/compass that referenced this pull request Nov 12, 2020
Fixes several formatting issues through
mongodb-js/mongosh#395:

- COMPASS-4440 (Consistently formatting `Date` objects)
- COMPASS-4441 (Ignoring `undefined` results)
- MONGOSH-410 (`sh.status()` formatting)
- COMPASS-4465 (`ObjectId` formatting in nested objects)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants