Skip to content
Snippets Groups Projects
  1. Feb 26, 2021
  2. Feb 25, 2021
  3. Feb 04, 2021
  4. Jan 27, 2021
  5. Jan 19, 2021
  6. Jan 15, 2021
  7. Jan 14, 2021
  8. Jan 12, 2021
  9. Jan 06, 2021
  10. Jan 05, 2021
  11. Jan 04, 2021
  12. Dec 22, 2020
  13. Dec 21, 2020
  14. Dec 17, 2020
  15. Dec 15, 2020
  16. Dec 14, 2020
  17. Dec 10, 2020
    • Antoine R. Dumont's avatar
      swh/deposit/migrations/0021: Fix migration script · 73ee587d
      Antoine R. Dumont authored
      Prior to this commit, running this script would not work when actually
      triggered on a db with data:
      
      ```
      swhdeposit@deposit:~$ django-admin migrate --settings=swh.deposit.settings.production
      Operations to perform:
        Apply all migrations: auth, contenttypes, deposit, sessions
      Running migrations:
        Applying deposit.0021_deposit_origin_url_20201124_1438...Traceback (most recent call last):
      ...
      TypeError: guess_deposit_origin_url() missing 1 required positional argument: 'deposit'
      ```
    • vlorentz's avatar
      Use string equality instead of substring search to check for mandatory fields. · c436adcf
      vlorentz authored
      eg. 'atom:authorblahblah' should not be accepted when we expect 'atom:author'
      v0.7.1
      c436adcf
    • vlorentz's avatar
      Accept <codemeta:name> and <codemeta:author> as alternatives to... · 00795b41
      vlorentz authored
      Accept <codemeta:name> and <codemeta:author> as alternatives to <atom:name>/<atom:title> and <atom:author>.
      
      This was broken by a8e86a92,
      as the check_metadata() checks whether there is a tag that *contains*
      the expected name, checking for 'author' (the old name of 'atom:author')
      accidentally matched 'codemeta:author' as well.
      
      This resulted in the right behavior in the majority of the cases
      (accepted 'codemeta:author'), but for the wrong reason, and explicitly
      renaming to atom:author broke this.
      
      Ditto for name.
      
      A future commit will remove the substring matching to remove
      false positives (eg. 'atom:authorblahblah' should not be accepted
      as 'atom:author')
      00795b41
  18. Dec 07, 2020
Loading