Skip to content

Conversation

zeripath
Copy link
Contributor

Backport #13297

This PR fixes several bugs in setting storage

  • The default STORAGE_TYPE should be the provided type.
  • The Storage config should be passed in to NewStorage as a pointer - otherwise the Mappable interfa>
  • There was a bug in the MapTo function.

Fix #13286

It also backports some missing changes from #13164

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

Backport go-gitea#13297

This PR fixes several bugs in setting storage

* The default STORAGE_TYPE should be the provided type.
* The Storage config should be passed in to NewStorage as a pointer - otherwise the Mappable interface function MapTo will not be found
* There was a bug in the MapTo function.

Fix go-gitea#13286

Signed-off-by: Andrew Thornton <art27@cantab.net>
Signed-off-by: Andrew Thornton <art27@cantab.net>
@zeripath zeripath added this to the 1.13.0 milestone Oct 25, 2020
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Oct 25, 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 Oct 26, 2020
@techknowlogick
Copy link
Member

🚀

@techknowlogick techknowlogick merged commit 5da8a84 into go-gitea:release/v1.13 Oct 26, 2020
@zeripath zeripath deleted the backport-13297 branch October 26, 2020 17:49
@6543 6543 added the skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. label Nov 10, 2020
@go-gitea go-gitea locked and limited conversation to collaborators Dec 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants