-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Ability to distinguish between changed and affected projects #81
Comments
Hi @AlexeyRaga I agree with the proposal and I think being able to differentiate from Changed vs Affected projects on the output is useful 👍 Would you be willing to give it a go implementing it? |
I may give it a try. Let's see what I can come up with. |
Hmmm, what do you think if we modify the I think that would be easier to implement, since this is only a formatting concern instead of the affected core logic. The core logic already keep two separate list for affected and changed, but they are joined together just for the output formatting part: dotnet-affected/src/dotnet-affected/Commands/AffectedRootCommand.cs Lines 48 to 63 in 206f946
So I think it would be best for the In the case of the JSON formatter, it needs to compose the output you've mentioned in your issue, so we need to work a bit in the output data structure (new class with the The Traversal formatter having the two list separate would be easier to achieve the proposal And we also need to define what/how to do the text formatter, but I haven't thought about it yet. Let me know if you hit a road block and we'll see what we can do, feel free to ask 👍 |
Thanks for the suggestion, I will see into it! |
Hi @AlexeyRaga , it should work on MacOS, we actually have CI tests that cover that. I personally develop on Linux. Let me know if I can be of any help :) |
Sorry @AlexeyRaga did not mean to close the issue. Fat fingers. |
Hi @AlexeyRaga, I was thinking about this last night and played a bit with the code. I still don't have a functioning prototype but wanted to leave some notes here: dotnet-affected changes to existing output formatters:
dotnet-affected new formatters:
Some notes
|
Hi, good ideas! I am not sure whether I like the idea about prefix/suffix, too (except that I would use Common suffix is nice for deletion, because it can be just Maybe both them? Something like...
Or, maybe, when |
Hi there, I've added a simple proof of concept in #98 (exlcuding unit tests) to implement the following functionality:
I still need to test it properly, however, I would like approval of my concept before I continue. Cheers |
Currently the tool helpfully reports all the changed or affected projects, both in
.proj
and injson
.One thing that is missing is to be able to know what project have actually changed and what are affected by the change.
Reason
This information is extremely useful in certain CI/CD scenarious.
For example, when we want to automatically bump the major version for the project that were actually changed, but the affected projects would probably get only a patch version bump.
Possible implementation
I see that internally the tool does have all this information, and I think that it'd be beneficial to propagate it into the output.
Json output can contain a new
State
field:And for MSBuild we can have two item groups (
Changed
andAffected
):The text was updated successfully, but these errors were encountered: