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

add project follows #87

Merged
merged 7 commits into from
May 10, 2017
Merged

add project follows #87

merged 7 commits into from
May 10, 2017

Conversation

xi
Copy link
Contributor

@xi xi commented May 3, 2017

This ports the follows app from a4-opin to adhocracy4 core. There are some important things to note:

  • It is currently only possible to follow projects. In the future it might be a requirement to follow other things, e.g. items. It is not yet clear how this will work exactly. It will probably be implemented as a separate (but related) feature. We think that using generic foreign keys is overkill here.

  • The react component does not currently support the case where the user is not logged in. For now, the recommended bahvior in this case is not to show the component. See follow count shows zero if logged out a4-opin#629 and click on follow button should lead to login page a4-opin#627 for related issues in a4-opin.

  • There is some discussion as to whether the API of this feature should be changed. This pull request keeps the current API. The related issue Refactor Follows API a4-opin#510 should be moved to this repository.

  • The API does not currently check project membership on private projects. The recommended way for this is to check membership when sending notifications. It might be a good idea to check it here though.

  • The HTML code may need to be adapted in order to be stylable in different projects.

Tobias Bengfort added 4 commits May 3, 2017 16:55
@2e2a
Copy link
Contributor

2e2a commented May 4, 2017

Added tests from a4-opin.

@2e2a
Copy link
Contributor

2e2a commented May 4, 2017

We should consider renaming the Follows model to FollowsProject.

Conflicts:
	tests/project/settings.py
@2e2a
Copy link
Contributor

2e2a commented May 8, 2017

Setting permissions was not that easy. Created an issue (#91) and would suggest to merge.

@slomo slomo merged commit 50b4a04 into master May 10, 2017
@slomo slomo deleted the 2017-05-tb-follows branch May 10, 2017 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants