fix(manage_asset): improve properties parameter parsing#6
Conversation
… handling - Update type annotation to accept dict[str, Any] | str for properties parameter - Add robust parsing logic that tries JSON first, then ast.literal_eval for Python dict strings - Log warning and pass through unparseable strings to Unity (for backward compatibility) - Add detailed logging to track how properties are received and parsed - Fix syntax errors in test_telemetry.py (missing 'from' in import statements) - All 82 tests now pass successfully
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Tip 📝 Customizable high-level summaries are now available in beta!You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.
Example instruction:
Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later. Comment |
|
Took the code and applied it on the |
This is a pet issue of mine, making sure we don't error out so much when dealing with material properties. Also caught a couple syntax errors in telemetry test from project changes