Skip to content

Conversation

alex-vazquez
Copy link
Contributor


Purpose of this PR

https://fogbugz.unity3d.com/f/cases/1371353/


Testing status

1- Open Rendering Debbuger
2- Hide it with another tab
3- Do assembly reload
4- Perform an action
5-Undo last action
6-See that the issue does not happen, and the Enum Values are recovered.


Comments to reviewers

Notes for the reviewers you have assigned.

@alex-vazquez alex-vazquez requested a review from a team October 21, 2021 10:54
@alex-vazquez alex-vazquez self-assigned this Oct 21, 2021
@alex-vazquez alex-vazquez requested review from RSlysz and removed request for a team October 21, 2021 10:54
@github-actions
Copy link

Hi! This comment will help you figure out which jobs to run before merging your PR. The suggestions are dynamic based on what files you have changed.
Link to Yamato: https://unity-ci.cds.internal.unity3d.com/project/902/
Search for your PR branch using the search bar at the top, then add the following segment(s) to the end of the URL (you may need multiple tabs depending on how many packages you change)

SRP Core
You could run ABV on your branch before merging your PR, but it will start A LOT of jobs. Please be responsible about it and run it only when you feel the PR is ready:
/jobDefinition/.yamato%2F_abv.yml%23all_project_ci_2021.2
Be aware that any modifications to the Core package impacts everyone in the Graphics repo so please discuss the PR with your lead.

Depending on the scope of your PR, you may need to run more jobs than what has been suggested. Please speak to your lead or a Graphics SDET (#devs-graphics-automation) if you are unsure.

@github-actions github-actions bot added the SRP label Oct 21, 2021
Copy link
Contributor

@RSlysz RSlysz left a comment

Choose a reason for hiding this comment

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

The removed null check make the API less robust. I am not sure why we need this.

Remaining seams good :)

if (state == null ||
state.GetValue() == null ||
!(DebugManager.instance.GetItem(queryPath) is DebugUI.IValueField widget))
if (!(DebugManager.instance.GetItem(queryPath) is DebugUI.IValueField widget))
Copy link
Contributor

Choose a reason for hiding this comment

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

Why removing the state null check ? It is used below.
This can break the code if called with null state.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

with the changes won't make the state to be null anymore

Copy link
Contributor

Choose a reason for hiding this comment

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

Ha sorry I was thinking it was public :D;;
So it is ok

if (state == null ||
state.GetValue() == null ||
!(DebugManager.instance.GetItem(queryPath) is DebugUI.IValueField widget))
if (!(DebugManager.instance.GetItem(queryPath) is DebugUI.IValueField widget))
Copy link
Contributor

Choose a reason for hiding this comment

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

Ha sorry I was thinking it was public :D;;
So it is ok

@alex-vazquez alex-vazquez changed the title Rpw/2021.2/fix undo rendering debugger [RP Workflows] Fix serialization of generic enums on the Rendering Debugger Oct 25, 2021
@alex-vazquez alex-vazquez requested a review from a team October 25, 2021 08:42
@alex-vazquez alex-vazquez marked this pull request as ready for review October 25, 2021 08:42
Copy link
Contributor

@remi-chapelain remi-chapelain left a comment

Choose a reason for hiding this comment

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

Testing seems sufficient ! ✔️

@alex-vazquez alex-vazquez merged commit 25eb12c into 2021.2/staging Oct 25, 2021
@alex-vazquez alex-vazquez deleted the rpw/2021.2/fix-undo-rendering-debugger branch October 25, 2021 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants