Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plantuml: hide circle and empty members, remove quotes #2060

Merged
merged 5 commits into from
May 1, 2024

Conversation

VladimirAlexiev
Copy link
Contributor

No description provided.

@VladimirAlexiev
Copy link
Contributor Author

@Silvanoc

@cmungall
Copy link
Member

Thanks! The corresponding test should be fixed too - let us know if you want one of us to take over from here or if you're able to make the additional change yourself!

@VladimirAlexiev
Copy link
Contributor Author

@cmungall please take over, thanks!!

@sujaypatil96
Copy link
Member

Thanks for the changes @VladimirAlexiev!! I'm happy to take over from here. Will keep you posted.

@sujaypatil96
Copy link
Member

Hi @VladimirAlexiev it looks like certain Actions are not going through because you haven't run the ruff linter on your code.

Could you run the below command using ruff:

ruff check linkml/generators/plantumlgen.py

Copy link

codecov bot commented Apr 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.04%. Comparing base (bd989b3) to head (fa050de).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2060      +/-   ##
==========================================
- Coverage   80.04%   80.04%   -0.01%     
==========================================
  Files         109      109              
  Lines       12168    12167       -1     
  Branches     3449     3449              
==========================================
- Hits         9740     9739       -1     
  Misses       1852     1852              
  Partials      576      576              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -129,13 +133,11 @@ def add_class(self, cn: ClassDefinitionName) -> str:
if True or cn in slot.domain_of:
mod = self.prop_modifier(cls, slot)
slot_defs.append(
' {field} "'
Copy link
Contributor

@Silvanoc Silvanoc Apr 24, 2024

Choose a reason for hiding this comment

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

I tend to add quotation marks to generated names for robustness: it doesn't harm having them and it won't break if any unexpected whitespaces appear in the names.

@VladimirAlexiev what does it harm to have them? What does it bring to remove them? If it doesn't harm or bring much, why removing them?

I suppose that we can rely on underscore() to ensure that no whitespaces appear in the names. So removing them shouldn't suppose any risk.

Copy link
Member

Choose a reason for hiding this comment

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

Good questions @Silvanoc! I'd like to know the answer to the question you asked as well -- what are the pros of removing the quotes? @VladimirAlexiev

@Silvanoc
Copy link
Contributor

LGTM

I have only what is probably a nitpick: #2060 (comment)

@cmungall
Copy link
Member

cmungall commented May 1, 2024

lgtm. We can circle back on escaping issues

@cmungall cmungall merged commit e35d906 into linkml:main May 1, 2024
14 checks passed
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.

None yet

4 participants