AutoPacker-OSS / autopacker

MIT License
6 stars 1 forks source link

Seperate personal and organization projects in file api #137

Closed MrPrecise closed 3 years ago

MrPrecise commented 3 years ago

Description

Right now there are no modules in the GENERAL API portion of the the site, this means when you request a project without any modules like you can see in the picture under. Only the meta data about the project iis saved when it's submitted, however the modules are not.

Add a way so the modules gets added with the submission of the project to an organization.

UPDATE

The team decided to handle everything in File API instead. We still need to make a way to seperate the two different kind of proejcts, if they are organization based or personal.

Screenshots: image

ANicholasson commented 3 years ago

@libanbn We should use file delivery api for this, but are there any seperators we can use to seperate private projects from organization projects?

libanbn commented 3 years ago

No mechanisms have been implemented to distinguish private projects from projects in organizations at the moment

ANicholasson commented 3 years ago

@MrPrecise

MrPrecise commented 3 years ago

I talked to Aron about this, that we should utilize File API to handle the project and I will update the description of this issue while working on it.

ANicholasson commented 3 years ago

@MrPrecise Pretty sure this is closed as it might be solved after @strazdinsg refactored this process.

strazdinsg commented 3 years ago

@MrPrecise Yes, one can check the organization_id for the project (organization property). If that is not null, the project belongs to an organization. One bug though: when a project submission is accepted by the organization, the owner of the organization should be set as the owner for the project. I.e., the original owner "misses" the ownership. Otherwise the organization owner will not have any ability to manage the project.

ANicholasson commented 3 years ago

@MrPrecise Yes, one can check the organization_id for the project (organization property). If that is not null, the project belongs to an organization. One bug though: when a project submission is accepted by the organization, the owner of the organization should be set as the owner for the project. I.e., the original owner "misses" the ownership. Otherwise the organization owner will not have any ability to manage the project.

@MrPrecise Should create another issue for this