Commit e37e613
authored
Add side by side comparison of pre/post upgrade metadata to the upgrade app (#54)
This PR adds functionality to the upgrader panel app to show
side-by-side comparisons of the pre/post upgraded metadata. I had
already demonstrated proof of concept for this in a flask app. Here are
three examples in my prototype flask app (visible only on prem or on the
VPN):
1. An asset that properly upgrades:
http://10.128.142.221:8080/upgrader/?asset_id=single-plane-ophys_705363_2024-01-10_15-46-42
2. An asset with one failure (in session):
http://10.128.142.221:8080/upgrader/?asset_id=behavior_689727_2024-02-07_15-01-36
3. An asset with two failures (session and procedures):
http://10.128.142.221:8080/upgrader/?asset_id=behavior_746346_2025-03-12_17-21-50
To test the updated panel app with this new functionality:
* check out this branch `git checkout
add_detailed_upgrade_output_to_app`
* run the panel app locally: `uv run panel serve
src/aind_metadata_viz/upgrade.py --show --autoreload`
* Visit the app in your browser: `http://localhost:5006/upgrade`
Here are screenshots of the panel app for these same three assets:
<img width="1800" height="1002" alt="image"
src="https://github.com/user-attachments/assets/39d05763-683d-4bc2-922a-1c292b713b3c"
/>
<img width="1800" height="1003" alt="image"
src="https://github.com/user-attachments/assets/8230e4df-b80a-4c1d-830b-64c572d9fc79"
/>
<img width="1800" height="1001" alt="image"
src="https://github.com/user-attachments/assets/eac4b0a6-3b88-49de-bb97-57fee8434b7a"
/>2 files changed
+621
-220
lines changed
0 commit comments