-
Notifications
You must be signed in to change notification settings - Fork 7
feat: simplify-log-colorization #484
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
} | ||
} | ||
|
||
const formatForTable = (logRecord: LogRecord): LogForTable => ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's really only 2 fields that needed transorming. The rest can use the name the server uses
return []; | ||
} | ||
|
||
logRecords.map((logRecord) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was doing mutation on the records. You'll see UT that were relying on that side effect to pass.
|
||
No debug logs found in org | ||
|
||
# appColHeader |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a message for table headers seemed silly--we don't normally do that
]); | ||
}); | ||
|
||
it('will list multiple logs --json', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wasn't actually testing --json
, though asserting the result is kinda like it.
expect(result).to.deep.equal(logRecords); | ||
sandbox.stub(LogService.prototype, 'getLogRecords').resolves(structuredClone(logRecords)); | ||
await new Log([], config).run(); | ||
expect(tableStub.firstCall.args[0]).to.deep.equal([ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
had to change the test because the implementation doesn't make all the new columns anymore.
doesn't assert the output structure since the next test does that
had to push some changes to fix NUTs/merge conflicts, see last 2 commits QA notes: ✅ |
What does this PR do?
general cleanup
What issues does this PR fix or reference?
@W-15999434@
testing notes
I tested this using dreamhouse.
you can
tail log
an org and it'll set the log capture stuff. Open the PropertyExplorer to start seeing logs.once you've done that, you can also
list log
andget log
from the generated logs