-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add reply w/ Reviewed-by
tag of subset of patches from a series
#80
Open
davidbtadokoro
wants to merge
4
commits into
kworkflow:unstable
Choose a base branch
from
davidbtadokoro:feat-reviewed-by-subset
base: unstable
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add reply w/ Reviewed-by
tag of subset of patches from a series
#80
davidbtadokoro
wants to merge
4
commits into
kworkflow:unstable
from
davidbtadokoro:feat-reviewed-by-subset
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
davidbtadokoro
force-pushed
the
unstable
branch
from
October 31, 2024 18:41
0e52741
to
8f7a6dc
Compare
davidbtadokoro
force-pushed
the
feat-reviewed-by-subset
branch
2 times, most recently
from
November 6, 2024 05:56
176a60b
to
5bd3f38
Compare
davidbtadokoro
force-pushed
the
feat-reviewed-by-subset
branch
from
November 6, 2024 05:57
5bd3f38
to
3c7ab78
Compare
davidbtadokoro
changed the title
[WIP] feat: add reply w/ Reviewed-by to subset of patches
Add reply w/ Nov 6, 2024
Reviewed-by
tag of subset of patches from a series
davidbtadokoro
force-pushed
the
feat-reviewed-by-subset
branch
2 times, most recently
from
November 8, 2024 16:51
6e7165a
to
bd967f0
Compare
Implement the possibility to only reply to a subset of patches from a patchset with the `Reviewed-by` tag. Previously, it was only possible to reply to every patch in the series. Collaterally, we had to add a field named `patches_to_reply`, which is a `Vec<usize>`, to `PatchsetDetailsAndActionsState` to keep track of which patches from the subset to reply with the tag. We also took the opportunity to make `reviewed_patchsets` from `App` a `HashMap<String,HashSet<usize>>` instead of a `HashMap<String,Vec<usize>>`, to ensure uniqueness of patch numbers. It is important to notice that this commit doesn't implement a reply to all button, neither updates the UI component for this new changes. Signed-off-by: David Tadokoro <[email protected]>
Make hitting the uppercase `R` key result in all patches being (un)staged, depending if there are patches not staged to be replied (in this case, stage all) or not (in this case, unstage all). Signed-off-by: David Tadokoro <[email protected]>
davidbtadokoro
force-pushed
the
feat-reviewed-by-subset
branch
2 times, most recently
from
November 8, 2024 22:01
cc974e9
to
bb0d654
Compare
@rodrigosiqueira, don't know if you've already tested this, but I've pushed a new WIP commit yesterday that changed a bit the display of the patches that have already been reviewed-by and the ones that are staged to be. I've updated the PR description w/ these notions. |
davidbtadokoro
force-pushed
the
feat-reviewed-by-subset
branch
from
November 11, 2024 16:40
43d0753
to
fe2acb5
Compare
Update the UI for the changes introduced by the two last commits. This results in the button "[x] reviewed-by" in the "Actions" tab having a display (in the right side) of the number of the patches that are staged in gray, e.g., if the patches 1, 2, and 7 are staged, in the tab "Details", there will be an entry like ``` Reviewed-by*: (1,2,7) ``` Signed-off-by: David Tadokoro <[email protected]>
davidbtadokoro
force-pushed
the
feat-reviewed-by-subset
branch
from
November 11, 2024 16:55
fe2acb5
to
0b6d0c7
Compare
In the last commit, we updated the UI to reflect the new functionality of replying to a subset of patches from a series w/ the "Reviewed-by" tag. Make the line "Reviewed-by:" in the "Details" tab, display information not only about the staged patches, but the ones recorded as already replied with the tag, differentiating them by the color and the appended `*`. Following the example of the last commit, if a patches 1, 2, and 7 are staged, and 0, 3, and 10 have already been replied with the tag, the line will display as ``` Reviewed-by: (0, 1*, 2*, 3, 7*, 10) ``` Closes: kworkflow#78 Signed-off-by: David Tadokoro <[email protected]>
davidbtadokoro
force-pushed
the
feat-reviewed-by-subset
branch
from
November 11, 2024 17:17
0b6d0c7
to
59b3b1a
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Commits
R
to toggle the reply to all patchesCloses: #78
Example
Selecting patches 1, 5, and 7 from a series with 29 patches, in which patches 0, 3, 7, and 11 have already been replied with
Reviewed-by
.Steps to test this change
patch-hub
w/cargo run --release
--dry-run
is enabled by default, but, for sanity, check if it is indeed enabled by going to the configurations screen (F2
) and checking the configgit send email option
.r
. You should see the titlePreview
of the patch preview tab becomePreview [REVIEWED-BY]*
. You should also see the full subset of patches that have been replied w/ the tag and the ones staged in theDetails
tab as the entryReviewed-by: (<patch-number-reviewed>,<patch-number-staged>*,...)
.R
.ENTER
. This should tear the sleek TUI, and display the raw output of the underlyinggit send-email
command.[x] reviewed-by
, and the patches that were replied to should be previewed w/ the titlePreview [REVIEWED-BY]
(without the asterisk) and show in the entryReviewed-by:
of the tabDetails
.Any problem report or idea is welcomed, and thank you for testing this feature.