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

DB/Add Project #3

Open
McSymilian opened this issue Jun 27, 2024 · 2 comments
Open

DB/Add Project #3

McSymilian opened this issue Jun 27, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@McSymilian
Copy link
Collaborator

No description provided.

@McSymilian McSymilian changed the title Add Project DB DB/Add Project Jun 27, 2024
@Seweryn-Was Seweryn-Was added the enhancement New feature or request label Jun 27, 2024
@Seweryn-Was
Copy link
Member

Seweryn-Was commented Jun 29, 2024

so what should be considered for project data model? My sugestion is like given example:

{
name : "project name", 
beganAt : 12.06.2024, 
visible : true, 
joinfree : true, 
description : "quick description of project", 
owner : "2345678", //user uuid
participants : [ 
{ userUuid: "12345678", responsibilities : ["backend"]} ,
{ userUuid: "34455314", responsibilities: ["frontend"]}
], 
externalSources :  [
"discord.com/private_project_server", 
"github.com/user/project_github"
],
involvedScienceClubs : [
"club_name_1", 
"club_name_2"
],
technologies : [ "React", "Nodejs", "javascript" ], 
tags : ["programming", "web", "API",],
currentState: "active", 
}
  1. Is there anything else what could be included in project schema/model or someting shouldnt be there?
  2. Who should be able to start a project a user of app, member of club or its admin?
  3. Should i store in "owner" var and "participants" array users by their uuid or their usrname?
  4. Should request when creating new project be rejected when user with given username/uuid be rejected or just be skipped when adding to participants / owner?

@McSymilian

@Seweryn-Was
Copy link
Member

if one API endpoint will be /project/getAllProjects should it have a posibility to provide some kind of filters or search function so user could write in request body:

{
    match : {
                 university : "PUT", 
                 joinFree : "true", 
                 involvedScienceClub : "AKAI", 
                 technology  : ["REACT" ],
       }  
}

and it would return all matching projects. Or for now lets just keep it simple and should return all projects in Database?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants