Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3. Przebudowa architektury aplikacji #120

Open
martamazurkiewicz opened this issue Dec 13, 2021 · 1 comment
Open

3. Przebudowa architektury aplikacji #120

martamazurkiewicz opened this issue Dec 13, 2021 · 1 comment
Labels
admin needed Admin privileges and access is needed for that task backend Logic, models, JSON or Firebase issue

Comments

@martamazurkiewicz
Copy link
Member

Mając nowy plik map_items.json, należy przebudować architekturę map_items. Możemy zrezygnować z Category, na poczet rozwiązań OOP - dziedziczenia (departments, faculties, offices po tym samym). To jest bardzo duże zadanie, będzie wymagać zmiany w innych częściach aplikacji, w tym fronendowych. Architekturę modeli należy wcześniej opisać w formie dokumentacji lub UMLa.

@martamazurkiewicz martamazurkiewicz added backend Logic, models, JSON or Firebase issue admin needed Admin privileges and access is needed for that task labels Dec 13, 2021
@martamazurkiewicz martamazurkiewicz changed the title Przebudowa architektury aplikacji 3. Przebudowa architektury aplikacji Dec 13, 2021
@xAdiro
Copy link

xAdiro commented Nov 11, 2022

Moja wstępna sugestia nowego jsona wygląda tak:

kod
{
    .
    .
    .
    
    "buildingServices": [
        {
            "name": "Ksero",
            "type": "copier",
            "description": "Ksero samoobsługowe, położone na poziomie -1",
            "url": "akurat tu nie ma ale potencjalnie może być"
        }
    ],
    "faculties": [
        {
            "name": "WNE",
            "url": "http://www.wne.sggw.pl/",
            "description": "Wydział Nauk Ekonomicznych",
            "facultyServices": [
                {
                    "name": "Katedra Finansów",
                    "url": "http://www.wne.sggw.pl/",
                    "description": "Wydział Nauk Ekonomicznych"
                }
            ]
        }
    ],
    "institutes": [
        {
            "name": "IEIF",
            "description": "Instytut Ekonomii i Finansów",
            "url": "https://www.ieif.sggw.pl/",
            "departments": [
                {
                    "name": "Katedra Logistyki"
                },
                {
                    "name": "Katedra Inna"
                }
            ]
        }
    ],
    "offices": [
        {
            "name": "Centrum Innowacji i Transferu Wiedzy w Agrobiznesie",
            "url": "http://cobis.sggw.pl/"
        }
    ]
}

Aczkolwiek zorientowałem się że na branchu new_architecture są już jakieś modele zrobione (które w dużej części pokrywają się z moim jsonem) więc obejrzę jeszcze to rozwiązanie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
admin needed Admin privileges and access is needed for that task backend Logic, models, JSON or Firebase issue
Projects
None yet
Development

No branches or pull requests

2 participants