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

FE-550-2: create _default_grid_root method in CommunityDataSheetParser #561

Closed
wants to merge 1 commit into from

Conversation

BigTava
Copy link
Contributor

@BigTava BigTava commented Dec 16, 2024

No description provided.

Copy link

codecov bot commented Dec 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.30%. Comparing base (93e704c) to head (c01684a).
Report is 10 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #561      +/-   ##
==========================================
+ Coverage   67.28%   67.30%   +0.01%     
==========================================
  Files          81       81              
  Lines        5294     5297       +3     
  Branches      879      879              
==========================================
+ Hits         3562     3565       +3     
  Misses       1573     1573              
  Partials      159      159              

@@ -141,11 +135,21 @@ def _create_grid(self) -> Dict:
"allow_external_connection": False,
"uuid": str(uuid.uuid4()),
"type": "Area",
"children": grid,
"children": None if children is None else children,
Copy link
Member

Choose a reason for hiding this comment

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

I think you missed the case when the user uploads a CDS in which case the _create_grid method should be called here.

Additionally, the "children" member should never be None. We hat lot's of issues in the past with that. I think we fixed them all, but better be save than sorry and add an empty list here.

@BigTava BigTava closed this Dec 17, 2024
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.

2 participants