MaxTrautwein / AStA-Digital-Forms

GNU General Public License v3.0
0 stars 0 forks source link

Config Konzept #50

Closed MaxTrautwein closed 4 days ago

MaxTrautwein commented 2 weeks ago

Ausarbeitung & Implementierung

MaxTrautwein commented 1 week ago

Initial Idea:

{
    "Title":"Genehmigung von Ausgaben und Anschaffungen",
    "Description":"bla Genehmigung von zeugs",
    "Category":"Antrag",
    "form":[
        {
            "order":0,
            "section":"Generell",
            "items": [
                {
                    "Description":"Kurzbezeichnung des Antrages",
                    "type":"Text",
                    "id":"bez"
                },
                {
                    "Description":"Fachschaft/Referat/Arbeitskreis",
                    "type":"Text",
                    "id":"fs_ref_ar"
                },
                {
                    "Description":"Kontaktdaten",
                    "help":"(Handy-Nr., E-mail)",
                    "type":"Text",
                    "id":"contact"
                },
                {
                    "Description":"Antragsteller*in",
                    "help":"(Name, Vorname)",
                    "type":"Text",
                    "id":"user"
                }
            ]
        },
        {
            "order":1,
            "section":"Hauptteil",
            "items": [
                {
                    "Description":"Verwendungszweck: (Bitte ausführlich beschreiben! Evtl. Beiblatt nutzen)",
                    "help":"Was? Warum? Welcher Preis?",
                    "type":"TextMultiLine",
                    "id":"reason"
                },
                {
                    "Description":"Unterschriebenes Protokoll der FS-Sitzung mit genau erläutertem Beschluss im Anhang?",
                    "type":"bool",
                    "id":"prtocoll",
                    "ref":"Attachments-Protokoll"
                },
                {
                    "Description":"Termin (geplant):",
                    "type":"date",
                    "id":"date"
                },
                {
                    "Description":"Höhe der Ausgaben (ca.):",
                    "help":"(voraussichtliche Höhe angeben, falls nicht genau bekannt)",
                    "type":"money",
                    "id":"money"
                }

            ]
        },
        {
            "order":2,
            "section":"Zahlung",
            "items": [
                {
                    "Description":"Empfänger*in",
                    "type":"text",
                    "id":"prepay_empf"
                },
                {
                    "Description":"Anschrift",
                    "type":"address",
                    "id":"prepay_adress"
                },
                {
                    "Description":"IBAN",
                    "type":"iban",
                    "id":"prepay_iban"
                },
                {
                    "Description":"Kreditinstitut",
                    "type":"text",
                    "id":"prepay_bank"
                }

            ]
        }
    ],
    "Attachments":[
        {
            "id":"Protokoll",
            "Description":"Unterschriebenes Protokoll der FS-Sitzung\nEnthält detailirten beschluss,..."
        }
    ]

}

for saving progress, i would keep the structure but besides the value only keep the id

Spent 30 Minutes

MaxTrautwein commented 1 week ago

Spent 1.5h for implementing the Initial concept Spent another 1.5h debugging why the build kept failing -> Some test wants an active DB Connecting, that can't work at build time... -> Going forward we need some way to disable that Test or mock the connecting.

MaxTrautwein commented 1 week ago

Spent 15 minutes

MaxTrautwein commented 1 week ago

added two Endpoints for some initial testing

that should allow for some initial testing on the main page

Spent 2h A large amount of that went into a failed attempt to do this with an openAPI specification. issues getting the generated dependencies

MaxTrautwein commented 1 week ago

Spent 1h 30Min Updating and enhancing the initial data

MaxTrautwein commented 1 week ago

Mit der Doku der API Würde ich am liebsten warten, bis das mit der OpenAPI Spec klappt. Dann sollte das auch deutlich besser gehen. Datenbank Layout Doku würde ich mir noch vornehmen, dass der derzeitige stand klar ist.

MaxTrautwein commented 5 days ago

Spent 45 Minutes

MaxTrautwein commented 4 days ago

Spent 2h on the openapi Adoption and setup