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
mgr/dashboard: Enable object rendering in KV-table #21701
Conversation
this.tableData = this.makePairs(this.data); | ||
} | ||
|
||
makePairs(data: any) { |
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.
Consider to make this method private.
return this.postProcessing(temp); | ||
} | ||
|
||
makePairsFromArray(data: any[]) { |
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.
Consider to make this method private.
return temp; | ||
} | ||
|
||
makePairsFromObject(data: object) { |
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.
Consider to make this method private.
})); | ||
} | ||
|
||
postProcessing(data: any[]) { |
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.
Please add a method description about what it is doing and why.
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.
I've renamed it to make clear what it does
})); | ||
} | ||
|
||
postProcessing(data: any[]) { |
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.
Consider to make this method private.
return temp; | ||
} | ||
|
||
convertValue(v: any) { |
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.
Consider to make this method private.
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.
I will rename them with an underscore instead so that they are still testable.
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.
lgtm
Now it's possible to render objects as values in our key-value table. Signed-off-by: Stephan Müller <smueller@suse.com>
968b8fe
to
98fc5f9
Compare
@votdev I've addressed all your comments |
retest this please |
Now it's possible to render objects as values in our key-value table.
Signed-off-by: Stephan Müller smueller@suse.com