Skip to content

server: Add support for generic data endpoint#250

Open
PatrickTasse wants to merge 1 commit intoeclipse-tracecompass-incubator:masterfrom
PatrickTasse:raw
Open

server: Add support for generic data endpoint#250
PatrickTasse wants to merge 1 commit intoeclipse-tracecompass-incubator:masterfrom
PatrickTasse:raw

Conversation

@PatrickTasse
Copy link
Copy Markdown
Contributor

What it does

Add support for the /obj endpoint for implementations of IObjectDataProvider.

Add selectionRange to DataProviderCapabilities serializer. Do not serialize capabilities that are false by default.

Update swagger annotations accordingly.

How to test

Test new /obj endpoint

Follow-ups

N/A

Review checklist

  • As an author, I have thoroughly tested my changes and carefully followed the instructions in this template

Add support for the /obj endpoint for implementations of
IObjectDataProvider.

Add selectionRange to DataProviderCapabilities serializer. Do not
serialize capabilities that are false by default.

Update swagger annotations accordingly.

Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
*/
enum ProviderType {
TABLE, TREE_TIME_XY, TIME_GRAPH, DATA_TREE, NONE, GANTT_CHART, TREE_GENERIC_XY
TABLE, TREE_TIME_XY, TIME_GRAPH, DATA_TREE, GANTT_CHART, TREE_GENERIC_XY, DATA, NONE
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this breaks API

Copy link
Copy Markdown
Contributor

@bhufmann bhufmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good to generate the new API.yaml file, use it to generate the TSP java client used for API testing and add some unit tests to test the new server endpoints. With this it can be verified that the server implementation complies with the TSP specification and clients can query the back-end with just using the specification without know the BE implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants