question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Properly fill the title of a component

See original GitHub issue

the diagram:

@startuml
interface _COMP_EXT1_IF1 as SwfComponentBase
component _COMP8 as RoadBoundaryFusion
@enduml

results in the formatted graph:

{
  "nodes": [
    {
      "name": "_COMP_EXT1_IF1",
      "members": [],
      "id": "_COMP_EXT1_IF1",
      "type": "Interface",
      "hidden": true
    },
    {
      "name": "_COMP8",
      "id": "_COMP8",
      "type": "Component",
      "title": "_COMP8",
      "hidden": true
    }
  ],
  "edges": [
    {
      "from": "_COMP8",
      "to": "",
      "name": "contains",
      "hidden": true
    }
  ]
}

ID, title and name of a component are identical but. But the title should be the string after as.

For example: component _COMP8 as RoadBoundaryFusion should result in

    {
      "name": "_COMP8",
      "id": "_COMP8",
      "type": "Component",
      "title": "RoadBoundaryFusion",
      "hidden": true
    }

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
Enteeecommented, Aug 21, 2019

So currently, the id field is a feature of the graph-formatter and is always id = name . I am actually contemplating right now If i should add an id property to all classes. The logic would then be:

# with:
# component [name]
# component [name] as [title]
# component "[title]" as [name]
# component [name] as "[title]"

if there is no 'as':
   id = name
   name = name
else:
  id = name
  name = title

then we would not need this additional title attribute.

0reactions
DaelDecommented, Aug 26, 2019

I am not using the cli, but the library.

I will have a look at the modified tests, should be enough.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Document Title element - HTML - MDN Web Docs - Mozilla
The content of the title is one of the components used by search engine algorithms to decide the order in which to list...
Read more >
HTML title tag - W3Schools
The <title> tag defines the title of the document. The title must be text-only, and it is shown in the browser's title bar...
Read more >
Writing the title and abstract for a research paper - NCBI - NIH
The “title” should be descriptive, direct, accurate, appropriate, interesting, concise, precise, unique, and should not be misleading. The “abstract” needs to ...
Read more >
Organizing Your Social Sciences Research Paper
The title summarizes the main idea or ideas of your study. ... It is, therefore, the most important element that defines the research...
Read more >
7 The global structure of an HTML document - W3C
Unlike the TITLE element, which provides information about an entire document and may only appear once, the title attribute may annotate any number...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found