Skip to content

Conversation

@bhufmann
Copy link
Contributor

What it does

Document meaning of value -1 for parentId of TreeDataModel in swagger model.

Fixes eclipse-cdt-cloud/trace-server-protocol#65

How to test

Generate openapi.yaml and verify change is there.

Follow-ups

Update TSP specification

Review checklist

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

@bhufmann bhufmann requested a review from PatrickTasse May 27, 2025 13:27
*/
@Schema(description = "Unique id to identify this parent's entry, " +
"optional if this entry does not have a parent.")
@Schema(description = "Optional unique id to identify this parent's entry. " +
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it was meant to say "this entry's parent" ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@Schema(description = "Unique id to identify this parent's entry, " +
"optional if this entry does not have a parent.")
@Schema(description = "Optional unique id to identify this parent's entry. " +
"Use -1 if this entry has no parent. If omitted, this entry has no parent.")
Copy link
Contributor

Choose a reason for hiding this comment

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

It feels like we are encouraging the use of -1 when omitting would be just as good. Maybe I would suggest:
"If the parentId is -1 or omitted, this entry has no parent".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

bhufmann added a commit to bhufmann/trace-server-protocol that referenced this pull request May 27, 2025
This PR adds an issue and PR template in this repo, heavily inspired
from those of the theia-trace-extension.

Corresponding swagger model update:
eclipse-tracecompass-incubator/org.eclipse.tracecompass.incubator#191

Signed-off-by: Bernd Hufmann <[email protected]>
bhufmann added a commit to bhufmann/trace-server-protocol that referenced this pull request May 27, 2025
@bhufmann bhufmann merged commit 8af6d85 into eclipse-tracecompass-incubator:master May 27, 2025
2 checks passed
@bhufmann bhufmann deleted the fix-tsp-bugs branch May 27, 2025 16:51
bhufmann added a commit to eclipse-cdt-cloud/trace-server-protocol that referenced this pull request May 27, 2025
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.

Clarify parentId specification in EntryModel

2 participants