#4186 date_modified not updated when package orphaned via api
Closed: Fixed 5 years ago by pingou. Opened 5 years ago by churchyard.

Yesterday @kevin gave some packages to orphan incl. python-tenacity, python-pankoclient, python-kafka...

However this still returns old date_modified:

$ http https://src.fedoraproject.org/api/0/rpms/python-tenacity
HTTP/1.1 200 OK
AppServer: proxy10.phx2.fedoraproject.org
AppTime: D=121128
Connection: Keep-Alive
Content-Length: 626
Content-Type: application/json
Date: Tue, 08 Jan 2019 15:01:46 GMT
Keep-Alive: timeout=15, max=500
Referrer-Policy: same-origin
Server: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.2k-fips mod_auth_gssapi/1.5.1 mod_wsgi/3.4 Python/2.7.5
Set-Cookie: disgit_pagure=eyJfcGVybWFuZW50Ijp0cnVlLCJjc3JmIjp7IiBiIjoiTTJZMFltTTNOalExWTJZeVltUmpZakZrWlRnMU5UVXhaR05pT1dWbFlqUTNaRGxsWmpNell3PT0ifX0.DxZM2g.Vs_CkcKbBm3VGsxwoJI6DlFjPzM; Expires=Fri, 08-Feb-2019 15:01:46 GMT; Secure; HttpOnly; Path=/
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 1; mode=block

{
    "access_groups": {
        "admin": [],
        "commit": [],
        "ticket": []
    },
    "access_users": {
        "admin": [],
        "commit": [],
        "owner": [
            "orphan"
        ],
        "ticket": []
    },
    "close_status": [],
    "custom_keys": [],
    "date_created": "1501874264",
    "date_modified": "1501874264",
    "description": "The python-tenacity rpms",
    "fullname": "rpms/python-tenacity",
    "id": 19140,
    "milestones": {},
    "name": "python-tenacity",
    "namespace": "rpms",
    "parent": null,
    "priorities": {},
    "tags": [],
    "url_path": "rpms/python-tenacity",
    "user": {
        "fullname": "orphan",
        "name": "orphan"
    }
}

$ LANG=C.utf8 date -d @1501874264
Fri Aug  4 21:17:44 CEST 2017

It is confirmed that the packages were given using the PATCH API method via https://pagure.io/releng/blob/master/f/scripts/distgit/orphan-all-packages.py


Metadata Update from @pingou:
- Issue set to the milestone: 5.3
- Issue tagged with: bug, easyfix

5 years ago

Metadata Update from @pingou:
- Issue assigned to pingou

5 years ago

Login to comment on this ticket.

Metadata