Skip to main content

Documents & Newsfeed: Document Service

Contact: Lennard Gerst​

Group: F2​

πŸ”§ Technical Work Areas​

  1. Working with environment variables
  2. User group dependency (central role)
    • Relevant parameters: ID, Role, Study group, Module, Year, Field of study

πŸ”— External Dependencies​

Main dependency on F3​

  • User permissions / roles
    β†’ Essential for all functions in Documents & Newsfeed

Existing dependencies towards us:​

  • From F4: Access to our database for master data management
  • From F1: Access to our database for timetable data storage

πŸ”„ Inter-SOS2 Level Dependencies​

  • Team 4 (DocM Backend, Lennard) ⇄ Team 7 (DocM Frontend, Santino)
    Shared interfaces for displaying and managing document-based content
  • Team 7 (Doc Viewer, Santino) β†’ Team 5 (Newsfeed)
    API call from Team 7 to Team 5 to show newsfeed data based on user group information

πŸ’¬ Abstract File Service (central storage layer)

  • All file-related services (documents, newsfeed attachments, application forms) should – whenever possible – use the central Abstract File Service.
  • This ensures unified file storage, permission checks, and reusability.

πŸ“Œ Team Responsibilities​

TeamFunctionalityDependencies
KhalidUser group–based NewsfeedID, Role, Study group, Module, Year, Field of study
SantinoUser group–based Document displayID, Role, Study group, Module, Year, Field of study
LennardUser group–based Document tagging + Abstract File ServiceID, Role, Study group, Module, Year
JosiUser group–based ApplicationsID, Role, Study group, Module
(all dealing with files)Use of Abstract File Service recommendedβ€”

πŸ—ƒοΈ Database Dependencies​

  • F1: Timetable data
  • F4: Master data management

Exposing Information​

Document Service (DocM Backend)​

  • With User ID and related metadata (Role, Study group, Module, Year, Field of study), user-specific relevant documents can be retrieved.
  • Documents have tags that filter content based on the user context.
  • Example response for a document request:
[
{
"document_id": "doc-uuid",
"title": "Module Handbook WI 2025",
"tags": ["WI", "2025", "Handbook"],
"visibility": {
"role": ["student", "lecturer"],
"study_group": ["WI"],
"year": ["2025"]
},
"uploaded_by": "lecturer-uuid",
"uploaded_at": "2025-05-20T12:45:00Z",
"abstract": "Module descriptions for the academic year 2025"
}
]