-
Notifications
You must be signed in to change notification settings - Fork 49
GraphSpace Email Lists #393
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
Open
JingVT
wants to merge
31
commits into
Murali-group:develop
Choose a base branch
from
JingVT:GraphSpace_email_lists
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
e30eed4
Create PULL_REQUEST_TEMPLATE.md
adbharadwaj 52ddf6e
Changes for controllers.py
JingVT a0bf6a7
Changes in model for email lists features
JingVT 462358e
Update activate account page
JingVT ff7dafe
Update templates
JingVT 6198a53
Update log in js file
JingVT 052c249
Add mailmanclient to requirements
JingVT 670cd44
Add email lists docs
JingVT d132866
Add email lists settings
JingVT 4e179b5
Update local.py
JingVT 9cc9572
Update local.py
JingVT 9d7321c
Update views.py
JingVT 499d9cf
Update templates
JingVT 5328d0f
Update views.py
JingVT 382ca36
Update PULL_REQUEST_TEMPLATE.md
JingVT 40aeb5b
Update PULL_REQUEST_TEMPLATE.md
JingVT d3201f4
Add email lists docs images
JingVT d921ae7
Change data type
JingVT 5196423
Change data type
JingVT 12e361a
change '1' to 1
JingVT f5a6d6d
Change '1' to 1
JingVT 3c28afc
Update local.py
JingVT 5909b49
Update local.py
JingVT 43e0f70
Update local.py
JingVT 63d8c6f
Update local.py
JingVT 752c508
Update local.py
JingVT 9a33289
Update local.py
JingVT 45c5b02
Update models.py
JingVT 0f443ec
Update requirements.txt
JingVT 235b064
Update controllers.py
JingVT 43ec81e
Update dal.py
JingVT File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| ## Purpose | ||
| Built announcements and users email lists to post important announcements and allow users to communicate with each other. | ||
|
|
||
| ## Approach | ||
| Invoke GNU Mailman3 REST API. | ||
|
|
||
| #### Open Questions and Pre-Merge TODOs | ||
| - [ ] Merge [validates email address by sending a confirmation email to users](https://github.com/Murali-group/GraphSpace/pull/368) | ||
| - [ ] [Install and Configure Mailman3 Suite for GraphSpace](https://github.com/Murali-group/GraphSpace/wiki/Install-and-Configure-Mailman3-Suite-for-GraphSpace-(Ubuntu-16.04,-PostgreSQL,-Apache2,-Postfix)) | ||
| - [ ] Create the email lists of GraphSpace and add them to settings file | ||
| - [ ] Update the database. | ||
|
|
||
| ## Learning | ||
| - [Mailman 3 suite documents](http://docs.mailman3.org/en/latest/) | ||
|
|
||
| - [Install and Configure Mailman3 Suite for GraphSpace](https://github.com/Murali-group/GraphSpace/wiki/Install-and-Configure-Mailman3-Suite-for-GraphSpace-(Ubuntu-16.04,-PostgreSQL,-Apache2,-Postfix)) | ||
|
|
||
|
|
||
| #### Blog Posts | ||
| - [How to Pull Request](https://github.com/flexyford/pull-request) Github Repo with Learning focused Pull Request Template. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,13 +17,21 @@ class User(IDMixin, TimeStampMixin, Base): | |
| :param email: Email ID of the user. | ||
| :param password: Password of the user. | ||
| :param admin: 1 if the user has admin access else 0. | ||
| :param user_account_status: 1 if the user has created account successfully else 0. | ||
| :param email_confirmation_code: confirmation code sent to email when the user creates account | ||
| :param email_list_announcement: 1 if the user has chosen to join GraphSpace announcement email list else 0 | ||
| :param email_list_user: 1 if the user has chosen to join GraphSpace users email list else 0 | ||
| """ | ||
| __tablename__ = "user" | ||
|
|
||
| email = Column(String, nullable=False, unique=True, index=True) | ||
| password = Column(String, nullable=False) | ||
| is_admin = Column(Integer, nullable=False, default=0) | ||
|
|
||
| user_account_status = Column(Integer, nullable=False, default=0) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you add documentation about the newly added fields? Since account status is integer what are the possible values and what they mean? |
||
| email_confirmation_code = Column(String, nullable=False, default=0) | ||
| email_list_announcement = Column(Integer, nullable=False, default=0) | ||
| email_list_user = Column(Integer, nullable=False, default=0) | ||
|
|
||
| password_reset_codes = relationship("PasswordResetCode", back_populates="user", cascade="all, delete-orphan") | ||
| owned_groups = relationship("Group", back_populates="owner", cascade="all, delete-orphan") | ||
| owned_graphs = relationship("Graph", back_populates="owner", cascade="all, delete-orphan") | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
|
|
||
| # Email Lists for GraphSpace | ||
|
|
||
| [GraphSpace](http://graphspace.org) built announcements and users email lists to post important announcements and allow users to communicate with each other. | ||
|
|
||
| ## Users Email List for GraphSpace | ||
| The users list is meant for all users of GraphSpace to communicate with each other and with the GraphSpace administrators. Please use this list to pose questions about GraphSpace, discuss any problems you may have, give us feedback, request features etc. | ||
|
|
||
| ### Subscribe | ||
| To subscribe you can choose "Please add me to the users email list for GraphSpace" when create account, | ||
|
|
||
|  | ||
|
|
||
| or send an email with 'subscribe' in the subject to [graphspace-users-join@graphspace.org](mailto:graphspace-users-join@graphspace.org). | ||
|
|
||
| ### Unsubscribe | ||
| To unsubscribe from users list, send an email with 'unsubscribe' in the subject to [graphspace-users-leave@graphspace.org](mailto:graphspace-users-leave@graphspace.org). | ||
|
|
||
| ### Post | ||
| To post to users list, send your email to [graphspace-users@graphspace.org](mailto:graphspace-users@graphspace.org). | ||
|
|
||
| ### Archives | ||
| You can access the [archives](http://email.graphspace.org/hyperkitty/list/graphspace-users@graphspace.org/) of the users list. | ||
|
|
||
| ## Announcements Email List for GraphSpace | ||
| The GraphSpace administrators will use this list to post important announcements about GraphSpace. Note that you will not be able to post to this mailing list. If you have a question about GraphSpace, please join the graphspace-users mailing list and post there. | ||
|
|
||
| ### Subscribe | ||
| To subscribe you can choose "Please add me to the announcements email list for GraphSpace" when create account, | ||
|
|
||
|  | ||
|
|
||
| or send an email with 'subscribe' in the subject to [graphspace-announcements-join@graphspace.org](mailto:graphspace-announcements-join@graphspace.org). | ||
|
|
||
| ### Unsubscribe | ||
| To unsubscribe from announcements list, send an email with 'unsubscribe' in the subject to [graphspace-announcements-leave@graphspace.org](mailto:graphspace-announcements-leave@graphspace.org). | ||
|
|
||
| ### Archives | ||
| You can access the [archives](http://email.graphspace.org/hyperkitty/list/graphspace-announcements@graphspace.org/) of the announcements list. |
Binary file added
BIN
+24.9 KB
docs/_static/images/email-list/gs-Screenshot-register-announcements-email-list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+22.3 KB
docs/_static/images/email-list/gs-Screenshot-register-users-email-list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,3 +28,4 @@ elasticsearch-dsl>=5.0.0,<6.0.0 | |
| sphinx-rtd-theme | ||
| sphinx | ||
| recommonmark | ||
| mailmanclient==3.1.1 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you merge the latest changes to develop branches on Main repo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to merge validates email address by sending a confirmation email to users, before merging email lists. Do you mind to review pull#238 before I merge it? Thank you.