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

Community Projects #1365

Closed
PropGit opened this issue Jan 19, 2018 · 6 comments
Closed

Community Projects #1365

PropGit opened this issue Jan 19, 2018 · 6 comments

Comments

@PropGit
Copy link
Contributor

PropGit commented Jan 19, 2018

Shouldn't Community Projects only show projects that are shared to the community? ie: everyone, regardless of their logged-in status, should see the same list of projects?

Instead, Community Projects shows shared projects (from every user), and if you're logged in, also includes private projects owned by the logged-in user.

I don't think it should ever show private projects on the Community Page.

@PropGit PropGit added the bug label Jan 19, 2018
@PropGit
Copy link
Contributor Author

PropGit commented Jan 19, 2018

Addendum... if we need to show a logged-in user's content (regardless of private/shared status) then it'd be best that it decorates the row somehow to indicate that it's your own, private, project. That still really doesn't fit with the concept of "Community Projects," though, so I don't think it's best to do so.

@MatzElectronics
Copy link
Collaborator

This should simple be an addition to the SQL: AND mine != true...

@zfi
Copy link
Contributor

zfi commented Jun 20, 2018

Let's solidify the definition of private vs. community projects. The project table in the database actually has flags for shared and private. Currently, we rely on logic at the dao layer to ensure that these flags remain mutually exclusive.

Community projects are those projects where the 'shared' flag is true.
Private projects are those projects where the 'private' flag is true.

@MatzElectronics
Copy link
Collaborator

MatzElectronics commented Jun 20, 2018 via email

@zfi
Copy link
Contributor

zfi commented Jun 20, 2018

I can refactor the code to use the 'private' field, since that was the defined before the 'shared' field. I believe that the shared field was a first attempt to support the project link feature. I will open a new issue for the refactor.

@PropGit
Copy link
Contributor Author

PropGit commented Oct 11, 2018

Verified fixed.

@PropGit PropGit closed this as completed Oct 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants