Skip to content
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

Introduce ResultV2 for update results #642

Merged
merged 1 commit into from
Mar 15, 2024
Merged

Introduce ResultV2 for update results #642

merged 1 commit into from
Mar 15, 2024

Conversation

darkowlzz
Copy link
Contributor

@darkowlzz darkowlzz commented Mar 4, 2024

ResultV2 update result contains Result (original), which provides information in terms of files, objects and images, and also includes file changes which provides information in terms of files, objects and changes. The changes contain the old value, new value and the setter that was involved in the update.
ResultV2 can be used to obtain detailed information about updates in terms of the previous value and the new value, which could be beneficial in commit messages to summarize the granular changes.

ResultV2 is introduced in a backwards compatible way. The existing behavior is not changed. It will only be used by the refactored controller in the future. Introducing it in the main branch to keep the refactored controller changes small.

Related to #437

Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

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

LGTM

Great job on making this backwards compatible! Thanks @darkowlzz 🎖️

@stefanprodan stefanprodan added the enhancement New feature or request label Mar 4, 2024
ResultV2 update result contains Result (original), which provides
information in terms of files, objects and images, and also includes
file changes which provides information in terms of files, objects and
changes. The changes contain the old value, new value and the setter
that was involved in the update.
ResultV2 can be used to obtain detailed information about updates in
terms of the previous value and the new value, which could be beneficial
in commit messages to summarize the granular changes.

Signed-off-by: Sunny <github@darkowlzz.space>
@darkowlzz darkowlzz marked this pull request as ready for review March 15, 2024 15:36
@darkowlzz darkowlzz merged commit bf3cf4b into main Mar 15, 2024
7 checks passed
@darkowlzz darkowlzz deleted the resultv2 branch March 15, 2024 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants