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

PoC flow : Java #239

Closed
dapolach opened this issue Feb 26, 2024 · 2 comments
Closed

PoC flow : Java #239

dapolach opened this issue Feb 26, 2024 · 2 comments
Assignees
Milestone

Comments

@dapolach
Copy link
Member

dapolach commented Feb 26, 2024

PoC pro srovnani flow Directus vs Java:

Uzivatel A: Zalozeni udalost

  • atributy (minimalne):
    Nazev (text)
    Datum konani (datum)
    Uzaverka prihlasek (datum)
  • po zalozeni se "odesle notifikace" o nove udalosti ke schvaleni vsem uzivatelum kteri mohou udalost schvalit
  • zalozena udalost bude "zobrazena" v seznamu udalosti pouze uzivatelum kteri mohou udalost schvalit
    - volitelne muze byt "zobrazena" v seznamu udalosti i uzivateli ktery ji vytvoril

Uzivatel B: schvaleni udalosti

  • v kalendari (staci jako seznam) se "zobrazi" dve polozky:
    • datum konani udalosti
    • datum uzaverky prihlasek pro udalost
  • aby uzivatel mohl udalost schvalit, tak musi mit roli "APPROVER"
  • po schvaleni bude udalost "zobrazena" v seznamu udalosti pro vsechny uzivatele

Poznamky

  • "zobrazi" -> prislusne API vrati takova data popr. UI zobrazi takova data
  • "odesle notifikace" -> ulozi informaci o notifikaci do DB popr. odesle email
stateDiagram-v2
    [*] --> Created
    Created --> Approved
    Approved --> [*]
Loading

CMS PoC : #238

@dapolach
Copy link
Member Author

erDiagram
    USER ||--o{ EVENT : creates
    USER ||--o{ EVENT : approves
    EVENT ||--o{ CALENDAR_ITEM : sources
    EVENT ||--|| NOTIFICATION : produces
    
    USER {
        int id  
        String name  "User name"
        boolean canApproveEvent "Flag if user can approve created events"
    }
    
    EVENT {
        int id 
        String name "Event name"
        char status "'C' -> created event, 'A' -> approved event"
        Date eventDate "Date when event is happening"
        Date registrationsClosure "Date when registrations are closing for the event"
    }
    
    CALENDAR_ITEM {
        int id 
        String label    "label displayed in calendar for such item"
        String type   "enum - ('EVENT_DATE', 'EVENT_REGISTRATIONS_CLOSE')"
    }
    
    NOTIFICATION {
        int id 
        String notificationType
    }
Loading

@dapolach
Copy link
Member Author

dapolach commented Sep 5, 2024

PoC castecne udelano. Pak se ale reklo ze PoC ne.

@dapolach dapolach closed this as not planned Won't fix, can't repro, duplicate, stale Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

No branches or pull requests

1 participant