Add autoExpandLevel flag to EntryModel#130
Conversation
|
|
||
| /** | ||
| * Indicates till which level the tree should be expanded. If expandLevel is | ||
| * missing or has value of -1 it would meanthat all the levels are expanded (default behaviour). |
There was a problem hiding this comment.
missing space: "meanthat"
| export function EntryModel<T extends Entry>(normalizer: Normalizer<T>): Normalizer<EntryModel<T>> { | ||
| return createNormalizer<EntryModel<any>>({ | ||
| entries: array(normalizer), | ||
| expandLevel: assertNumber, // TODO - does this work correctly? |
There was a problem hiding this comment.
the name of the field is now autoExpandLevel. See the referenced Trace Compass/Incubator PR. See also the TSP update for that: eclipse-cdt-cloud/trace-server-protocol#120
| * Array of entry | ||
| */ | ||
| entries: T[]; | ||
|
|
There was a problem hiding this comment.
The TSP update has the exact meaning of the field and you can change the description accordingly.
| * missing or has value of -1 it would meanthat all the levels are expanded (default behaviour). | ||
| * If the expandLevel is set to 1 for example, it will expand till the first nodes under the root | ||
| */ | ||
| expandLevel: number; |
2cc906b to
671954f
Compare
autoExpandLevel flag to EntryModel
671954f to
6b54b8e
Compare
bhufmann
left a comment
There was a problem hiding this comment.
Thanks for the contribution. I put a couple comments.
| entries: T[]; | ||
|
|
||
| /** | ||
| * Sets the auto-expand level to be used for the input of the tree. |
There was a problem hiding this comment.
Change to:
Optional auto-expand level to be used for the input of the tree. If omitted value -1 is assumed.
| * - 1 → Top-level elements are expanded, but not their children | ||
| * - 2 → Top-level elements and their children are expanded, but not grand-children | ||
| */ | ||
| autoExpandLevel: number; |
There was a problem hiding this comment.
the autoExpandLevel is optional. Change to
autoExpandLevel?: number;I'll update the description in the TSP to make it more obvious.
6b54b8e to
d9f8723
Compare
| entries: T[]; | ||
|
|
||
| /** | ||
| * Optional auto-expand level to be used for the input of the tree. If omitted value -1 is assumed. |
There was a problem hiding this comment.
In the previous version of the PR you described the values and meaning. Please bring them back below this line.
Sets the auto-expand level to be used for the input of the tree. Signed-off-by: Will Yang <william.yang@ericsson.com>
d9f8723 to
4820261
Compare
bhufmann
left a comment
There was a problem hiding this comment.
It looks good to me. Thanks for the contribution.
marcdumais-work
left a comment
There was a problem hiding this comment.
LGTM, thanks @williamsyang-work !
|
The CI failures seem related to current internet outages, that include the |
Add support for the autoExpandLevel flag to automatically collapse tree nodes beyond the specified depth level. When autoExpandLevel is set, nodes at depths greater than the specified level are automatically collapsed in the tree view. Related to eclipse-cdt-cloud/tsp-typescript-client#130 Signed-off-by: Will Yang <william.yang@ericsson.com>
Add support for the autoExpandLevel flag to automatically collapse tree nodes beyond the specified depth level. When autoExpandLevel is set, nodes at depths greater than the specified level are automatically collapsed in the tree view. Related to eclipse-cdt-cloud/tsp-typescript-client#130 Signed-off-by: Will Yang <william.yang@ericsson.com>
Add support for the autoExpandLevel flag to automatically collapse tree nodes beyond the specified depth level. When autoExpandLevel is set, nodes at depths greater than the specified level are automatically collapsed in the tree view. Related to eclipse-cdt-cloud/tsp-typescript-client#130 Signed-off-by: Will Yang <william.yang@ericsson.com>
31e7056
into
eclipse-cdt-cloud:master
Add support for the autoExpandLevel flag to automatically collapse tree nodes beyond the specified depth level. When autoExpandLevel is set, nodes at depths greater than the specified level are automatically collapsed in the tree view. Related to eclipse-cdt-cloud/tsp-typescript-client#130 Signed-off-by: Will Yang <william.yang@ericsson.com>
Add support for the autoExpandLevel flag to automatically collapse tree nodes beyond the specified depth level. When autoExpandLevel is set, nodes at depths greater than the specified level are automatically collapsed in the tree view. Related to eclipse-cdt-cloud/tsp-typescript-client#130 Signed-off-by: Will Yang <william.yang@ericsson.com>
Add support for the autoExpandLevel flag to automatically collapse tree nodes beyond the specified depth level. When autoExpandLevel is set, nodes at depths greater than the specified level are automatically collapsed in the tree view. Related to eclipse-cdt-cloud/tsp-typescript-client#130 Signed-off-by: Will Yang <william.yang@ericsson.com>
Add support for the autoExpandLevel flag to automatically collapse tree nodes beyond the specified depth level. When autoExpandLevel is set, nodes at depths greater than the specified level are automatically collapsed in the tree view. Related to eclipse-cdt-cloud/tsp-typescript-client#130 Signed-off-by: Will Yang <william.yang@ericsson.com>
Add support for the autoExpandLevel flag to automatically collapse tree nodes beyond the specified depth level. When autoExpandLevel is set, nodes at depths greater than the specified level are automatically collapsed in the tree view. Related to eclipse-cdt-cloud/tsp-typescript-client#130 Signed-off-by: Will Yang <william.yang@ericsson.com>
Add support for the autoExpandLevel flag to automatically collapse tree nodes beyond the specified depth level. When autoExpandLevel is set, nodes at depths greater than the specified level are automatically collapsed in the tree view. Related to eclipse-cdt-cloud/tsp-typescript-client#130 Signed-off-by: Will Yang <william.yang@ericsson.com>
Add support for the autoExpandLevel flag to automatically collapse tree nodes beyond the specified depth level. When autoExpandLevel is set, nodes at depths greater than the specified level are automatically collapsed in the tree view. Related to eclipse-cdt-cloud/tsp-typescript-client#130 Signed-off-by: Will Yang <william.yang@ericsson.com>
Add support for the autoExpandLevel flag to automatically collapse tree nodes beyond the specified depth level. When autoExpandLevel is set, nodes at depths greater than the specified level are automatically collapsed in the tree view. Related to eclipse-cdt-cloud/tsp-typescript-client#130 Signed-off-by: Will Yang <william.yang@ericsson.com>
Add support for the autoExpandLevel flag to automatically collapse tree nodes beyond the specified depth level. When autoExpandLevel is set, nodes at depths greater than the specified level are automatically collapsed in the tree view. Related to eclipse-cdt-cloud/tsp-typescript-client#130 Signed-off-by: Will Yang <william.yang@ericsson.com>
What it does
Adds
autoExpandLevelflag to EntryModel.Relates to:
eclipse-tracecompass/org.eclipse.tracecompass#277
eclipse-tracecompass-incubator/org.eclipse.tracecompass.incubator#196
How to test
Make sure this works with latest tracecompass-server.
Follow-ups
The functionality for the flag, the ability for the front-end to correctly expand / collapse tree nodes based on the value of
autoExpandLevel, needs to be implemented.Review checklist