Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

improve UX for truncated objects properties#175

Merged
ofrobots merged 3 commits intogoogleapis:masterfrom
ofrobots:truncation-messages-ux
Nov 15, 2016
Merged

improve UX for truncated objects properties#175
ofrobots merged 3 commits intogoogleapis:masterfrom
ofrobots:truncation-messages-ux

Conversation

@ofrobots
Copy link
Copy Markdown
Contributor

Change how we indicate that an object with too many properties has been
truncated on our state captures. Instead of a non-error StatusMessage
add an extra member with no value / varTableIndex. This matches how the
Java agent deals with this situation.

Original:
image

Now:
image

and:
image

R= @DominicKramer @cristiancavalli

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 13, 2016
Change how we indicate that an object with too many properties has been
truncated on our state captures. Instead of a non-error StatusMessage
add an extra member with no value / varTableIndex. This matches how the
Java agent deals with this situation.
@ofrobots ofrobots force-pushed the truncation-messages-ux branch from ed59c5b to 855d3c1 Compare November 13, 2016 16:35
'Only first') !== -1);
assert(!foo.status.isError);
// should have 1 element + truncation message.
assert.equal(fooVal.members.length, 2);

This comment was marked as spam.

This comment was marked as spam.

@DominicKramer
Copy link
Copy Markdown
Contributor

Except for the comment I had about what we should display in the case when the maxDataSize is reached as well as an object having some properties truncated, it LGTM.

@ofrobots ofrobots changed the title improve UX for truncated objects improve UX for truncated objects properties Nov 15, 2016
var envVal = bp.variableTable[procEnv.varTableIndex];
envVal.members.forEach(function(member) {
assert(bp.variableTable[member.varTableIndex].status.isError);
if (member.varTableIndex) {

This comment was marked as spam.

This comment was marked as spam.

@cristiancavalli
Copy link
Copy Markdown
Contributor

LGTM with question and passing CI

@ofrobots ofrobots force-pushed the truncation-messages-ux branch from ecfdb16 to 3a491b5 Compare November 15, 2016 18:39
@ofrobots ofrobots merged commit 36d9a7b into googleapis:master Nov 15, 2016
@ofrobots ofrobots deleted the truncation-messages-ux branch December 9, 2016 22:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants