Fix TreeModel.print() method implementation

Open
#34 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
api

Research direction

Start with the TreeModel.print() implementation and the TSP header and object serialization rules referenced in the issue. Verify which fields come from the TSP versus each object's "others" data; done means printing only TSP-provided data and including each entry's unique ID in its own column, with compatible server updates noted as a dependency.

Written by the indexing model from the issue text.

Description

The TreeModel.print() was implemented initially as prototype and optimized for DATA_TREE types and in particular for the function duration statistics. It uses the ColumnDescriptor field that had been provided by the server, but it's not serialized anymore because the TSP doesn't specify it. Instead there is a header field with 'name' and 'tooltip' (see also #33).

This task is track the following things:

  1. Track the update so that only data is printed that is provided by the TSP. This means to ignore parameters that are serialized into in 'others' of each object.
  2. Since each entry in the TreeModel also has an unique ID to be used to identify the entry and which can be used for further queries (e.g. fetch series data of an xy chart or states for timegraphs). The print method shall print the Id in a separate column.

Note, that server updates are needed so that each data provider complies with the TSP and only TSP-specified fields are serialized.

Dominant language
Python
Stars
6
Forks
16
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from eclipse-cdt-cloud/tsp-python-client

All issues in eclipse-cdt-cloud/tsp-python-client

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.