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

edge case fix for type references enums and unions enums #162

Merged
merged 3 commits into from
Jan 13, 2022
Merged

Conversation

kflemin
Copy link
Contributor

@kflemin kflemin commented Jan 12, 2022

@kflemin kflemin requested a review from nllong January 12, 2022 21:39
@coveralls
Copy link

Pull Request Test Coverage Report for Build 1689781762

  • 67 of 81 (82.72%) changed or added relevant lines in 1 file are covered.
  • 269 unchanged lines in 3 files lost coverage.
  • Overall coverage increased (+0.005%) to 43.254%

Changes Missing Coverage Covered Lines Changed/Added Lines %
bsyncviewer/lib/schema_parser.py 67 81 82.72%
Files with Coverage Reduction New Missed Lines %
.tox/python/lib/python3.6/site-packages/urllib3/util/connection.py 16 31.94%
.tox/python/lib/python3.6/site-packages/urllib3/util/retry.py 86 31.4%
.tox/python/lib/python3.6/site-packages/urllib3/connectionpool.py 167 19.17%
Totals Coverage Status
Change from base Build 1668177783: 0.005%
Covered Lines: 39276
Relevant Lines: 90803

💛 - Coveralls

Copy link
Member

@nllong nllong left a comment

Choose a reason for hiding this comment

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

good work tracking this all down! 💯‼️

@@ -43,6 +44,7 @@ def __init__(self):
self.simple_types = []
self.name = ""
self.type = None
self.type_elements = []
Copy link
Member

Choose a reason for hiding this comment

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

look like this is redundant (see Line #20)

# if a referenced element wasn't found, and it wasn't a gbxml element, fail here
if found or type_ref.startswith('gbxml'):
continue
raise Exception("Couldn't find reference %s" % looking_for_type_name)
Copy link
Member

Choose a reason for hiding this comment

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

nice exception!

self.type_definitions.append(named_element)
# testing if this resolves the issue
# self.type_references.append(named_element)
if named_element.type.startswith("auc:"):
Copy link
Member

Choose a reason for hiding this comment

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

which cases don't have auc:? Just gbxml.

@nllong nllong merged commit 50c70ce into develop Jan 13, 2022
@nllong nllong deleted the bedes-fix branch January 13, 2022 20:41
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.

EndUse enumerations not showing up on schema viewer
3 participants