riigikogu-kantselei / api

Public issue tracker for Open data API at the Chancellery of the Riigikogu
https://api.riigikogu.ee/
GNU General Public License v3.0
10 stars 0 forks source link

Semantics of collective addresses' statuses and their dates #16

Open moll opened 5 years ago

moll commented 5 years ago

Hey,

Is there a doc somewhere that describes the semantics of various initiative statuses? I can see TAGASI_LYKATUD exists. Is that an alternative to MENETLUS_LOPETATUD? The former appears on an initiative that had been accepted by Riigikogu and forwarded to a committee. What about an initiative that fails on requirements and gets rejected before any committee discusses it? Will that get the same TAGASI_LYKATUD status, but no MENETLUSSE_VOETUD? I see both sorts of initiatives — one with both TAGASI_LYKATUD and MENETLUS_LOPETATUD and one with two duplicate TAGASI_LYKATUD statuses (copy below).

Proceedings of the same "Maksustame ilutulestikuga paugutamise vabatahtlike päästjate toetuseks" initiative I copied below are said to have ended on Jun 10, 2019 (as per https://www.riigikogu.ee/tutvustus-ja-ajalugu/raakige-kaasa/esitage-kollektiivne-poordumine/riigikogule-esitatud-kollektiivsed-poordumised/), yet the API lists it rejected as of Jun 27, 2019. Which date is the correct one?

{
    "uuid": "16e177a9-88ea-40f2-9a04-70f14f21fe32",
    "reference": "1-6/19-7/1",
    "title": "Kollektiivne pöördumine Maksustame ilutulestikuga paugutamise vabatahtlike päästjate toetuseks",
    "documentType": "collectiveAddressDocument",
    "created": "2019-01-24T09:12:25.911",
    "membership": 13,
    "relatedDocuments": [
        {
            "uuid": "9eb9dfd0-2a2f-4eaf-bdf4-1552ed89a7ae",
            "title": "29.01.2019 juhatuse istungi protokoll",
            "documentType": "protokoll"
        },
        {
            "uuid": "e6340436-84d5-4934-94cc-b25c615558ff",
            "reference": "4-1/15",
            "title": "Kollektiivse pöördumise menetlusse võtmine",
            "documentType": "decisionDocument"
        },
        {
            "uuid": "fa2f7307-5a9d-4142-bb78-de483070bccf",
            "reference": "1-6/19-7/2",
            "title": "RAHK vastuskiri - Kollektiivne pöördumine Maksustame ilutulestikuga paugutamise vabatahtlike päästjate toetuseks",
            "documentType": "letterDocument"
        }
    ],
    "relatedVolumes": [],
    "sender": "Rahvaalgatus.ee; Päästeliit - Kaido Taberland, Toomas Sillamaa",
    "senderReference": "42880cae-dc30-46b4-863f-26b795086bef",
    "submittingDate": "2019-01-24",
    "complianceDeadline": "2019-07-29",
    "responsibleCommittee": {
        "uuid": "527a03f5-d564-70f2-6266-70c1cdb5535f",
        "name": "Rahanduskomisjon",
        "active": true
    },
    "statuses": [
        {
            "date": "2019-01-24",
            "status": {
                "code": "REGISTREERITUD",
                "value": "Registreeritud"
            }
        },
        {
            "date": "2019-01-29",
            "status": {
                "code": "MENETLUSSE_VOETUD",
                "value": "Menetlusse võetud"
            }
        },
        {
            "date": "2019-06-27",
            "status": {
                "code": "TAGASI_LYKATUD",
                "value": "Tagasi lükatud"
            }
        },
        {
            "date": "2019-06-27",
            "status": {
                "code": "TAGASI_LYKATUD",
                "value": "Tagasi lükatud"
            }
        }
    ]
}

Thanks!

moll commented 5 years ago

Oh, if TAGASI_LYKATUD is supposed to be on all rejected initiatives, then there's the following initiative, which seems to have been rejected, yet doesn't bear that status:

{
    "uuid": "075c2081-7efd-46fd-aa7c-20f55dbda9c9",
    "reference": "1-6/18-116/1",
    "title": "Kollektiivne pöördumine \"Poliitilise dieedi kolm retsepti\"",
    "documentType": "collectiveAddressDocument",
    "created": "2018-10-24T16:44:34.559",
    "membership": 13,
    "relatedDocuments": [
        {
            "uuid": "48393072-509f-4b21-bf02-2873fa7e30e3",
            "reference": "4-1/217",
            "title": "Kollektiivse pöördumise menetlusse võtmine",
            "documentType": "decisionDocument"
        },
        {
            "uuid": "57653e46-2e6e-4962-96a6-b579a98f6641",
            "reference": "1-6/18-116/2",
            "title": "PÕSK vastuskiri - Kollektiivne pöördumine Poliitilise dieedi kolm retsepti",
            "documentType": "letterDocument"
        }
    ],
    "relatedVolumes": [],
    "sender": "Eesti Vabaerakond - Kaul Nurm, Ain Ostra, Kaja Vajak; Juku-Kalle Raid; Rahvaalgatus.ee",
    "senderReference": "1f821c9e-1b93-4ef5-947f-fe0be45855c5",
    "submittingDate": "2018-10-24",
    "complianceDeadline": "2019-05-13",
    "responsibleCommittee": {
        "uuid": "38144a73-dde6-fd5e-68db-63e2736c85e2",
        "name": "Põhiseaduskomisjon",
        "active": true
    },
    "statuses": [
        {
            "date": "2018-10-24",
            "status": {
                "code": "REGISTREERITUD",
                "value": "Registreeritud"
            }
        },
        {
            "date": "2018-11-13",
            "status": {
                "code": "MENETLUSSE_VOETUD",
                "value": "Menetlusse võetud"
            }
        },
        {
            "date": "2019-01-28",
            "status": {
                "code": "ARUTELU_KOMISJONIS",
                "value": "Arutelu komisjonis"
            },
            "committeeDecision": {
                "code": "ETTEPANEK_TAGASI_LYKATA",
                "value": "Esitatud ettepanek tagasi lükata"
            }
        },
        {
            "date": "2019-02-11",
            "status": {
                "code": "MENETLUS_LOPETATUD",
                "value": "Menetlus lõpetatud"
            }
        }
    ]
}