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

Keep attachments on tasklist update of issue and comment content #16762

Merged
merged 1 commit into from
Aug 21, 2021

Conversation

wxiaoguang
Copy link
Contributor

Previous PR about "Keep attachments on tasklist update": #16750 is incomplete. Related issue: #16746

The PR #16750 only patches the update of comment, but not the update of the issue, which make the bug still exist.

And I think the new logic is more clear, we should not just return when ignore_attachments=true, which will bypass all remaining logic, may lead to problem in the future.

…nge checkbox state), ignore attachment updates
@KN4CK3R
Copy link
Member

KN4CK3R commented Aug 21, 2021

Oh, I pushed the same just moments ago #16763

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Aug 21, 2021
@codecov-commenter
Copy link

Codecov Report

Merging #16762 (8bf57be) into main (0bd58d6) will decrease coverage by 0.03%.
The diff coverage is 12.50%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #16762      +/-   ##
==========================================
- Coverage   45.38%   45.35%   -0.04%     
==========================================
  Files         760      760              
  Lines       85495    85495              
==========================================
- Hits        38803    38774      -29     
- Misses      40410    40436      +26     
- Partials     6282     6285       +3     
Impacted Files Coverage Δ
routers/web/repo/issue.go 38.34% <12.50%> (+0.05%) ⬆️
models/repo_mirror.go 58.69% <0.00%> (-10.87%) ⬇️
services/mirror/mirror.go 9.61% <0.00%> (-7.70%) ⬇️
models/gpg_key_common.go 59.67% <0.00%> (-4.84%) ⬇️
modules/avatar/avatar.go 47.72% <0.00%> (-4.55%) ⬇️
modules/cron/tasks_basic.go 85.43% <0.00%> (-2.92%) ⬇️
modules/queue/manager.go 65.34% <0.00%> (-2.85%) ⬇️
models/unit.go 41.09% <0.00%> (-2.74%) ⬇️
modules/log/event.go 60.64% <0.00%> (-1.86%) ⬇️
modules/queue/unique_queue_disk_channel.go 47.26% <0.00%> (-1.37%) ⬇️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0bd58d6...8bf57be. Read the comment docs.

@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Aug 21, 2021
@lafriks lafriks added this to the 1.16.0 milestone Aug 21, 2021
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Aug 21, 2021
@zeripath zeripath merged commit 06f8264 into go-gitea:main Aug 21, 2021
KN4CK3R pushed a commit to KN4CK3R/gitea that referenced this pull request Aug 21, 2021
zeripath pushed a commit that referenced this pull request Aug 21, 2021
* Send attachments too.

* Use tasklist flag.

* use action="ignoreAttachments" instead of "tasklist"

* Use boolean parameter.

* when the update request doesn't intend to update attachments (eg: change checkbox state), ignore attachment updates (#16762)

Co-authored-by: wxiaoguang <[email protected]>
@zeripath zeripath added the backport/done All backports for this PR have been created label Aug 21, 2021
Codeberg-org pushed a commit to Codeberg-org/gitea that referenced this pull request Aug 24, 2021
* Send attachments too.

* Use tasklist flag.

* use action="ignoreAttachments" instead of "tasklist"

* Use boolean parameter.

* when the update request doesn't intend to update attachments (eg: change checkbox state), ignore attachment updates (go-gitea#16762)

Co-authored-by: wxiaoguang <[email protected]>
@go-gitea go-gitea locked and limited conversation to collaborators Oct 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/done All backports for this PR have been created lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants