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

When reinitialising DBConfig reset the database use flags #13796

Conversation

zeripath
Copy link
Contributor

@zeripath zeripath commented Dec 2, 2020

One perennial issue is users running the install page,
changing the database dialect and then suffering with issues

This PR simply resets all of the database.Use flags on
initDBConfig. This should prevent this issue from occuring.

Fix #13788
Fix #5480

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

One perennial issue is users running the install page,
changing the database dialect and then suffering with issues

This PR simply resets all of the database.Use flags on
initDBConfig. This should prevent this issue from occuring.

Fix go-gitea#13788
Fix go-gitea#5480

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 Dec 2, 2020
@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 Dec 2, 2020
@6543
Copy link
Member

6543 commented Dec 2, 2020

🚀

@codecov-io
Copy link

Codecov Report

Merging #13796 (0c332cf) into master (c3893a8) will decrease coverage by 0.16%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #13796      +/-   ##
==========================================
- Coverage   42.29%   42.12%   -0.17%     
==========================================
  Files         708      708              
  Lines       77123    77127       +4     
==========================================
- Hits        32617    32488     -129     
- Misses      39147    39291     +144     
+ Partials     5359     5348      -11     
Impacted Files Coverage Δ
modules/setting/database.go 61.22% <100.00%> (+1.65%) ⬆️
modules/util/timer.go 42.85% <0.00%> (-42.86%) ⬇️
modules/indexer/stats/queue.go 52.94% <0.00%> (-11.77%) ⬇️
modules/notification/ui/ui.go 84.72% <0.00%> (-11.12%) ⬇️
modules/notification/mail/mail.go 33.33% <0.00%> (-9.20%) ⬇️
models/issue_comment.go 43.50% <0.00%> (-8.92%) ⬇️
services/pull/check.go 49.63% <0.00%> (-8.03%) ⬇️
modules/queue/unique_queue_channel.go 58.06% <0.00%> (-6.46%) ⬇️
modules/git/commit.go 49.67% <0.00%> (-3.95%) ⬇️
services/pull/temp_repo.go 26.59% <0.00%> (-3.20%) ⬇️
... and 10 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 c3893a8...0c332cf. Read the comment docs.

@techknowlogick techknowlogick merged commit 5e0a378 into go-gitea:master Dec 3, 2020
@techknowlogick
Copy link
Member

@zeripath please send backport :)

@zeripath zeripath deleted the fix-13788-5480-reset-database-settings-on-change branch December 3, 2020 09:31
zeripath added a commit to zeripath/gitea that referenced this pull request Dec 3, 2020
…3796)

Backport go-gitea#13796

One perennial issue is users running the install page,
changing the database dialect and then suffering with issues

This PR simply resets all of the database.Use flags on
initDBConfig. This should prevent this issue from occuring.

Fix go-gitea#13788
Fix go-gitea#5480

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

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
@zeripath zeripath added the backport/done All backports for this PR have been created label Dec 3, 2020
6543 pushed a commit that referenced this pull request Dec 3, 2020
…13811)

Backport #13796

One perennial issue is users running the install page,
changing the database dialect and then suffering with issues

This PR simply resets all of the database.Use flags on
initDBConfig. This should prevent this issue from occuring.

Fix #13788
Fix #5480

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

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

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
@go-gitea go-gitea locked and limited conversation to collaborators Jan 18, 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.

Overview and Favourites returns 500 error Error 1305: FUNCTION gitea.strftime does not exist
6 participants