Page MenuHomeSoftware Heritage

deposit: Allow deposit to be manually upgraded
ClosedPublic

Authored by ardumont on Oct 1 2020, 2:50 PM.

Details

Summary

Some db migration step can be required prior to actually updating the
server. This is currently not dealt with.

Ideally, at some point, we should check how to properly trigger the django
migration step instead (post-install hook maybe as, iirc, @anlambert did for
the webapp)

Test Plan

bin/octocatalog-diff

...
- Package[python3-djangorestframework]
*******************************************
  Package[python3-swh.deposit] =>
   parameters =>
     ensure =>
      - latest
      + present
*******************************************
  Profile::Swh::Deploy::Install_web_deps[swh-deposit] =>
   parameters =>
     ensure =>
      + present
...

Diff Detail

Repository
rSPSITE puppet-swh-site
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Ideally, at some point, we should check how to properly trigger the django
migration step instead (post-install hook maybe as, iirc, @anlambert did for
the webapp)

found it, for reference, there is a debian/postinst executable [1]

https://forge.softwareheritage.org/source/swh-web/browse/debian%252Funstable-swh/debian/postinst

This revision was not accepted when it landed; it landed in state Needs Review.Oct 1 2020, 3:21 PM
This revision was automatically updated to reflect the committed changes.