-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Refactoring changes in Stride.GameStudio 2 #2970
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Right forgot to test Stride.Launcher let me fix this :D |
sources/editor/Stride.GameStudio/ViewModels/DebuggingViewModel.cs
Outdated
Show resolved
Hide resolved
5f7d532 to
155969c
Compare
|
The tests should now pass 😄 |
|
Ok, I'll try to do a review very soon. Edit: likely this weekend. I couldn't find the time during the week. |
Kryptos-FR
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM, but I'd like to point out potential conflicts with the xplat-editor branch that I would prefer to be minimized. That said, it might not be easy to adapt in this branch, so let me know. Worst case, I will manage those conflicts later when I merge master into xplat-editor.
There a few other nit picks here and there.
sources/editor/Stride.GameStudio/ViewModels/DebuggingViewModel.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made similar changes for the crash report in the xplat-editor branch. To limit future conflicts, could you reuse the same changes as much as possible?
Note in the xplat-editor branch I use Avalonia with MVVM so obviously not everything can be kept the same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I converted the project from WinForms to WPF in a similar manner to your branch ,though is not identical. Perhabs I could make a PR later to your branch once my changes will merge ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will have a look. Thanks, it's already of help what you did :)
sources/presentation/Stride.Core.Presentation.Wpf/XamlMarkdown.cs
Outdated
Show resolved
Hide resolved
|
I asked Claude AI to cross-check the For reference, Claude AI generated two python scripts that can be very useful to detect such issues: Claude AI analysis report (summarized)
|
Kryptos-FR
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks.
|
@Jklawreszuk can we merge this or did you want to make more changes? |
|
@Kryptos-FR I dont think so, feel free to merge them 👌 |
|
@Kryptos-FR Wouldn't it be better to merge as a branch? First, it gives more history detail (see what line belong to what changes) But more importantly for editor commits, I think that would also make your life easier for merging with your xplat branch:
In a nutshell, it gives you much finer granularity for merging. Of course, doesn't apply if it's a single small feature with many trivial commits like "fix typo" "fix again previous error" and such, those should be squashed -- use best judgement! |
|
@xen2 I thought the same for a long time. However, it's not necessary. That's because GitHub keeps a hidden ref for all PRs even after they are merged and the original source branch is deleted. On top of that, using squash merges makes the history cleaner. And usually in a branch used for a PR, not all commits are clean (some don't even compile). So in the end:
We can have the best of both worlds:
|
|
Agree on some points:
But disagree on some others:
Also, in general, I don't believe in a single approach fits every use case (i.e. always merge or always rebase or always squash).
Since this choice (squash/rebase/merge) is left to one of Stride maintainer (and not to the PR writer who might not know about those details), we can make sure to be somewhat consistent and adjust to each PR depending on size and actual commit list (i.e. if lot of trash, simply squash+rebase) If we follow your reasoning, do you intend to merge the whole xplat branch as a single commit? I rather hope not :) |
|
PS: I've just discovered the "Show first parents" option on git extensions (Ctrl+Shift+S or the last item on the toolbar next to filter), it's awesome :) |
|
The PRs and their branches can be seen locally, not needed to go on GitHub or to be even connected (once fetched). That what I meant with "GitHub creates a special ref". Add this to your local .git/config (second fetch line): That way all PR (even those merged) are fetched locally with their whole history (even if it was squash merges). |
PR Details
This another pack of changes around GameStudio
List of changes
fieldkeyword to shortify codeTypes of changes
Checklist