Skip to content

Conversation

@NicoHinderling
Copy link
Contributor

def to_dict(self) -> Dict[str, Any]:
"""Convert to dictionary with serializable datetime."""
data = self.model_dump()
data = self.model_dump(exclude_none=True)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rbro112 this is the fix to not have path: null or misc: null included in the treemap data when passed to the frontend

Copy link
Member

Choose a reason for hiding this comment

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

Awesome, I think we might need support in the backend/frontend to ensure we parse these all properly, can you just do an E2E test to make sure downstream size processing related code either responds gracefully to missing fields or uncover any potential errors?


export interface TreemapElement {
/** Display name of the element */
name: string;
Copy link
Member

Choose a reason for hiding this comment

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

Might need to separate out these FE changes first as the deploys could get out of sync, especially if we need to make more fields optional

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think in this case we're OK since the only stuff we're adding is optional on both ends, so even if one of them deploys before the other, it shouldn't matter

Copy link
Contributor Author

Choose a reason for hiding this comment

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

(oh and fwiw this is in launchpad, but i know what you mean)

Copy link
Member

@rbro112 rbro112 left a comment

Choose a reason for hiding this comment

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

Looks good, might need to split FE changes out first to ensure we accommodate optional fields (if more fields need to be made optional)

@NicoHinderling NicoHinderling merged commit e372ca4 into main Dec 13, 2025
20 checks passed
@NicoHinderling NicoHinderling deleted the pass-scale branch December 13, 2025 00:23
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.

3 participants