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

Store task errors following migrations and display them #13246

Merged

Conversation

zeripath
Copy link
Contributor

When migrate tasks fail store the error in the task table
and ensure that they show on the status page.

Fix #13242

Signed-off-by: Andrew Thornton art27@cantab.net

When migrate tasks fail store the error in the task table
and ensure that they show on the status page.

Fix go-gitea#13242

Signed-off-by: Andrew Thornton <art27@cantab.net>
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Oct 22, 2020
web_src/js/index.js Outdated Show resolved Hide resolved
@6543
Copy link
Member

6543 commented Oct 23, 2020

on migration screen loading you can see the broken for a split of a second before normal progress icon is shown

Signed-off-by: Andrew Thornton <art27@cantab.net>
…path/gitea into fix-13242-ensure-errors-set-in-task
@zeripath
Copy link
Contributor Author

OK try now

@codecov-io
Copy link

codecov-io commented Oct 23, 2020

Codecov Report

Merging #13246 into master will increase coverage by 0.01%.
The diff coverage is 7.84%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #13246      +/-   ##
==========================================
+ Coverage   42.17%   42.19%   +0.01%     
==========================================
  Files         684      685       +1     
  Lines       75549    75571      +22     
==========================================
+ Hits        31866    31886      +20     
- Misses      38460    38462       +2     
  Partials     5223     5223              
Impacted Files Coverage Δ
models/task.go 34.90% <0.00%> (-5.32%) ⬇️
routers/repo/repo.go 28.99% <ø> (+1.13%) ⬆️
routers/user/task.go 0.00% <0.00%> (ø)
modules/task/migrate.go 26.15% <14.28%> (-0.08%) ⬇️
routers/routes/routes.go 84.28% <100.00%> (ø)
modules/indexer/stats/db.go 52.17% <0.00%> (-8.70%) ⬇️
modules/git/utils.go 73.77% <0.00%> (-3.28%) ⬇️
modules/git/repo.go 46.19% <0.00%> (-0.51%) ⬇️
services/pull/check.go 52.55% <0.00%> (+0.72%) ⬆️
... and 4 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 9b11c3e...8385a3b. Read the comment docs.

@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 Oct 23, 2020
@techknowlogick techknowlogick merged commit f40a2a4 into go-gitea:master Oct 23, 2020
@zeripath zeripath deleted the fix-13242-ensure-errors-set-in-task branch October 24, 2020 01:29
techknowlogick added a commit to techknowlogick/gitea that referenced this pull request Oct 24, 2020
* Store task errors following migrations and display them

When migrate tasks fail store the error in the task table
and ensure that they show on the status page.

Fix go-gitea#13242

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Update web_src/js/index.js

* Hide the failed first

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
@techknowlogick
Copy link
Member

Backported in #13287

@techknowlogick techknowlogick added the backport/done All backports for this PR have been created label Oct 24, 2020
lunny pushed a commit that referenced this pull request Oct 24, 2020
)

* Store task errors following migrations and display them

When migrate tasks fail store the error in the task table
and ensure that they show on the status page.

Fix #13242

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Update web_src/js/index.js

* Hide the failed first

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: techknowlogick <techknowlogick@gitea.io>

Co-authored-by: zeripath <art27@cantab.net>
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
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.

GitHub migration: Show "API rate limit of 5000 still exceeded" to user
8 participants