Skip to content

Conversation

@maxschulz-COL
Copy link
Contributor

@maxschulz-COL maxschulz-COL commented Oct 23, 2025

Description

Closes https://github.com/McK-Internal/vizro-internal/issues/2273

So far mainly a construction of a Fake Vizro along with proper test suit that checks for all problems present.

See comment for ToDos

Screenshot

Notice

  • I acknowledge and agree that, by checking this box and clicking "Submit Pull Request":

    • I submit this contribution under the Apache 2.0 license and represent that I am entitled to do so on behalf of myself, my employer, or relevant third parties, as applicable.
    • I certify that (a) this contribution is my original creation and / or (b) to the extent it is not my original creation, I am authorized to submit this contribution on behalf of the original creator(s) or their licensees.
    • I certify that the use of this contribution as authorized by the Apache 2.0 license does not violate the intellectual property rights of anyone else.
    • I have not referenced individuals, products or companies in any commits, directly or indirectly.
    • I have not added data or restricted code in any commits, directly or indirectly.

maxschulz-COL and others added 2 commits October 23, 2025 15:15
- added the SkipJsonSchema
- added the dynamic type generation, but not yet using it
@github-actions
Copy link
Contributor

github-actions bot commented Oct 23, 2025

View the example dashboards of the current commit live on PyCafe ☕ 🚀

Updated on: 2025-10-31 09:54:20 UTC
Commit: b049825

Compare the examples using the commit's wheel file vs the latest released version:

vizro-core/examples/scratch_dev

View with commit's wheel vs View with latest release

vizro-core/examples/dev/

View with commit's wheel vs View with latest release

vizro-core/examples/visual-vocabulary/

View with commit's wheel vs View with latest release

vizro-core/examples/tutorial/

View with commit's wheel vs View with latest release

maxschulz-COL and others added 27 commits October 23, 2025 15:47
Added better test cases
…definitions. Update tests to validate behavior of custom components in discriminated unions, including cases without explicit type definitions.

if __name__ == "__main__":
"""
TODOs Maxi:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the main ToDo list

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In this folder I constructed fake Vizro. The place of it will of course change, but it was easiest to have it in a realistic place for now.

All the issues I encountered (except for the very last one) I built in here, and I wrote tests for them. These tests are not 100% covering, but they were always written to catch a specific problem

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is where the tests for fake Vizro lie

- serialization/deserialization - DONE
- NEW: circular deps issue (see below) - DONE
- custom components do not end up in the tree - DONE
- CURRENT ISSUE: containers in tabs seem to cause problems - need to investigate
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the issue where I stopped - you can run the normal dev example where I commented out everything out to isolate the issue. For this I have not yet written tests and it is not yet in fake Vizro

Field(default={}, description="Mapping from name of a pages group to a list of page IDs/titles."),
]

# @_log_call
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is one of the many examples where I am changing things in main Vizro temporarily to make things work. Here we simply do not validate pages anymore which needs to be worked out properly, but for the time being it was easier just to comment it out. This sort of thing was done a few times throughout the codebase.

For this specific issue I had already worked out things regarding Navigation stuff, and pre-build order in the very first MM attempt, but we abandoned it for other reasons.

That PR is not the easiest to read anymore because there is lots of unrelated things now merged in, but it does contain useful information about some thoughts about pre-build orders etc. Probably best as some inspiration etc. The PR description is particularly useful describing some of the intuition

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