-
Notifications
You must be signed in to change notification settings - Fork 48
Fix: Make publishing drafts more robust #483
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
Fix: Make publishing drafts more robust #483
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
Remove setting `retryClient.RetryMax` to 0 as it has no effect.
df98a1a
to
c4ef505
Compare
95ba45f
to
d523ea2
Compare
Possible followup: I think it would be useful to do a check_current_branch_up_to_data_on_remote before placing any linked comments/suggestions - this would mean that a |
I've merged this separately from the other PRs as this feels higher risk. I'm going to close the related issue but if there are issues that you notice feel free to drop comments here. |
* Fix: Jumping to renamed files (#484) * fix: prevent "cursor position outside buffer" error * fix: swap file_name and old_file_name in reviewer data `old_file_name` is not set to the empty string for un-renamed files anymore, because then we can remove the empty-line check in `comment_helpers.go` which was used to replace the empty string with the current file name anyway. * fix: add old_file_name to discussion root node data * fix: also consider old_file_name when jumping to the reviewer This fixes jumping to renamed files, however, may not work for comments that were created on renamed files with the previous version of `gitlab.nvim` as that version assigned the `file_name` and `old_file_name` incorrectly. * refactor: don't shadow variable * fix: check file_name or old_file_name based on which SHA comment belongs to * Fix: Store reviewer data before creating comment popup (#476) * Fix: Make publishing drafts more robust (#483) * Fix: Swap file_name and old_file_name in reviewer data (#485) * Feat: Enable toggling date format between relative and absolute (#491) * Fix: Add opts to help popup (#492) * Fix: Force start_line for jumping to diagnostic to be inside buffer (#494) * fix: redefine colors after reloading colorscheme (#500) * Fix: Use path instead of oldpath as fallback for unrenamed files (#496) * Fix: Use file_name when old_file_name is not set (#495) * fix(ci): fix lua tests (#501) * Proxy Support (#499) This is a #MINOR release. --------- Co-authored-by: Jakub F. Bortlík <[email protected]> Co-authored-by: Jonathan Duck <[email protected]>
This PR attempts to fix #425.
By default the gitlab client attempts 5 retries which corresponds to the fact that it bulk publishing drafts "fails" with a server error, it still creates 1+5 copies of the comments.
Apart from finally removing the retry functionality, this MR also introduces the following improves:
gitlab.nvim
and publishing them (probably just when there is a comment on some code that has changed).