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

[PoC] Asynchronous notifications using ActionCable #6809

Closed
wants to merge 1 commit into from

Conversation

skateman
Copy link
Member

@skateman skateman commented Feb 19, 2016

So this PR implements an asynchronous notification solution. Basically if you create a new Notification database record, a callback function sends a notification to the client using ActionCable. The client is listening for notifications on its channel and displays them using PatternFly toast.

yzisrqqaaf

Saving to the database is necessary because it is not guaranteed that the user is logged in. In the future, these database records can be disabled in the notification drawer also provided by the PatternFly guys.

Known issue when displaying multiple notifications at the same time:
patternfly/patternfly#323

ActionCable uses Redis by default! So make sure that you run bin/setup to copy the sample configuration which uses PostgreSQL!

@skateman skateman force-pushed the async-notify branch 2 times, most recently from 1bb3b88 to f280068 Compare February 19, 2016 13:21
@skateman skateman force-pushed the async-notify branch 3 times, most recently from 58e7175 to 29eb161 Compare February 24, 2016 19:35
@miq-bot
Copy link
Member

miq-bot commented Feb 26, 2016

<pr_mergeability_checker />This pull request is not mergeable. Please rebase and repush.

@dclarizio dclarizio added the ui label Apr 1, 2016
@skateman skateman force-pushed the async-notify branch 2 times, most recently from aca20fb to c3758d3 Compare June 23, 2016 08:58
@miq-bot
Copy link
Member

miq-bot commented Jun 23, 2016

<pr_mergeability_checker />This pull request is not mergeable. Please rebase and repush.

@miq-bot
Copy link
Member

miq-bot commented Jun 27, 2016

<github_pr_commenter_batch />Some comments on commit skateman@36b5db2

@miq-bot
Copy link
Member

miq-bot commented Jun 27, 2016

Checked commit skateman@36b5db2 with ruby 2.2.4, rubocop 0.37.2, and haml-lint 0.16.1
11 files checked, 0 offenses detected
Everything looks good. 👍

@miq-bot
Copy link
Member

miq-bot commented Jul 1, 2016

<pr_mergeability_checker />This pull request is not mergeable. Please rebase and repush.

@skateman skateman changed the title [WIP] Asynchronous notifications using ActionCable [PoC] Asynchronous notifications using ActionCable Sep 2, 2016
@skateman
Copy link
Member Author

skateman commented Sep 2, 2016

This was just a Proof-of-Concept PR, closing it in favor of #10965

@skateman skateman closed this Sep 2, 2016
@skateman skateman deleted the async-notify branch February 1, 2017 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants