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

Permissions #349

Closed
cchristelis opened this issue Jul 15, 2016 · 6 comments · May be fixed by #361
Closed

Permissions #349

cchristelis opened this issue Jul 15, 2016 · 6 comments · May be fixed by #361
Assignees
Milestone

Comments

@cchristelis
Copy link

cchristelis commented Jul 15, 2016

Problem

Currently staff users need to approve projects etc. This will no scale well.

Proposed solution

The first person to claim a project (validate this through github) becomes the Project Owner. The Project Owner can assign Project Administrator and Project Collaborators.

@meomancer
Copy link
Contributor

meomancer commented Jul 18, 2016

  • automatically assign project owner based on github project when project is approved
  • create relationship for administrator and collaborator
  • create page for assigning administrator and collaborator

@meomancer
Copy link
Contributor

meomancer commented Jul 19, 2016

@cchristelis @timlinux
i face blocker for this issue,
i made Project Administrator model that link user and project

i dbrestore dmp from kartoza5
but when i migrate, it said:
django.db.utils.ProgrammingError: there is no unique constraint matching given keys for referenced table "base_project"
i check database and it seems that no constraint on the table

and when i drop/create gis and migrate without dbrestore, it is working fine

I am not sure how to do to fix it

@cchristelis
Copy link
Author

@meomancer, the migrations are broken. I had to fake my way around the migrations to get this to work on my machine.

@timlinux
Copy link
Contributor

@meomancer you should work from a dump from inasafe-docker server. You can get one using make dbsync; make mediasync inside the deployment folder but I think you don't have login rights to that machine. I will make a btsync to share these to you.

@timlinux
Copy link
Contributor

Ok I sent you details on how to collect the media and db data via btsync containers.

@meomancer
Copy link
Contributor

meomancer commented Jul 22, 2016

@cchristelis yes, i don't know how to fix it
i just uses base.project as foreign key, and it cannot be migrated with dumped data
django.db.utils.ProgrammingError: there is no unique constraint matching given keys for referenced table "base_project"

@cchristelis cchristelis assigned anitanh and timlinux and unassigned meomancer and anitanh Sep 7, 2017
@anitanh anitanh closed this as completed Jul 30, 2020
dimasciput added a commit to dimasciput/projecta that referenced this issue Apr 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants