-
Notifications
You must be signed in to change notification settings - Fork 344
[WIP] Impact Notifications #11096
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
Draft
Johnetordoff
wants to merge
40
commits into
CenterForOpenScience:feature/pbs-25-07
Choose a base branch
from
Johnetordoff:impact-notifications
base: feature/pbs-25-07
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.
Draft
[WIP] Impact Notifications #11096
Johnetordoff
wants to merge
40
commits into
CenterForOpenScience:feature/pbs-25-07
from
Johnetordoff:impact-notifications
Conversation
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
double-quote-string-fixer
5de4a03
to
5bd0830
Compare
…ce/feature/pbs-25-07 Feature/pbs 25 07
PB&S 25-07
08ebcc7
to
54f1f93
Compare
c3f29ab
to
9667873
Compare
9667873
to
3f356a4
Compare
…h date uploaded) via the admin app (CenterForOpenScience#11118) ## Purpose improve exception handling and minor fixes ## Changes - improve exception handling - supplemental node permission error - set subjects from relationship to keep valid hierarchy - ignore unfinished/unpublished versions ## Ticket https://openscience.atlassian.net/browse/ENG-7716
…cience/osf.io into impact-notifications * 'feature/pbs-25-07' of https://github.com/CenterForOpenScience/osf.io: [ENG-7289] Fix Search Index Discrepancy in Collection Facets (CenterForOpenScience#11085)
…cience/osf.io into impact-notifications * 'feature/pbs-25-08' of https://github.com/CenterForOpenScience/osf.io: (28 commits) [ENG-7716] Allow for reinstatement of previous preprint versions (with date uploaded) via the admin app (CenterForOpenScience#11118) [ENG-7263] Fix/eng 7263 part 3 (CenterForOpenScience#11119) [ENG-7263] Part 2 (CenterForOpenScience#11110) fix feature for non-contributor admin (CenterForOpenScience#11111) [ENG-7716] Allow for reinstatement of previous preprint versions (with date uploaded) via the admin app (CenterForOpenScience#11097) delete sharev2 push [ENG-7387] (CenterForOpenScience#11032) [ENG-7503] Fix/eng 7503 (CenterForOpenScience#11092) [ENG-7263] Fix/eng 7263 (CenterForOpenScience#11090) [ENG-7798] Parse versioned guid (CenterForOpenScience#11104) [ENG-7270] Enable Product Team to Force Archive Registrations in the Admin App (CenterForOpenScience#11105) gdpr deletion shouldn't take into account deleted nodes (CenterForOpenScience#11098) Bind task for proper retrying improved naming use newly built doi for previous versions mint missing doi when build metadata use minted doi for building metadata updated error text simplified query flat guids added version filtering ... # Conflicts: # api/crossref/views.py # tests/test_events.py # tests/test_misc_views.py
fac5151
to
3d6a791
Compare
3d6a791
to
a4ca1c8
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Purpose
Proof of Concept for improvement of the notification system. This system is designed to formalize and consolidate OSF Notifications under one system in order to better facilate colloboration between Product, Engineers and QA and end persistent problems with notication email related tech debt. This project is the result of an extensive audit of all OSF emails and conbined email digests and seeks to move the
NotificationSubscription
model out of it's transitiional state having been migrated from a document based model, into it's final data model which is more regular for a relation our current relational database (django's postgress db).In order to do this I have taken @mfraezz design documents and implemeted them with minor changes. This means the responsibility for sending notifications in osf.io is shared by three new models, which will have the old data migrated into them via a migration script and management command. The models are:
NotificationType
notification.yaml
a developer will be able to see at a glance if where a notification template is and what it's purpose is.NotificationSubscription
EmailDigest
model, this holds references to potentially many Notifcations models that can be compiled into a single digest this is sent at a periodic basis.Notification
Changes
notifications.yaml
to contain all notification types info it is populated via postmigrate hookNotification
NotificationSubscription
andNotificationType
send_mails
method and replaces it withemit
ofNotificationType
QA Notes
Please make verification statements inspired by your code and what your code touches.
What are the areas of risk?
Any concerns/considerations/questions that development raised?
Documentation
Side Effects
Ticket