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 notification service #67

Closed
pkozlowski-opensource opened this issue Oct 20, 2012 · 1 comment
Closed

Add notification service #67

pkozlowski-opensource opened this issue Oct 20, 2012 · 1 comment

Comments

@pkozlowski-opensource
Copy link
Member

Extracted from the issue #39:

@petebacondarwin

Moreover we should have a centralised message notification service, to which we can post messages that will be displayed in a nice way to the user.
Such as "You are now logged in", or "You do not have access to that", or "Unable to save project info."

@pkozlowski-opensource

Yes, this was on my mind for quite some time now. There was an interesting post on the mailing list recently when someone build a flash service. Basically a service that is a key-value store. You can add key->values to this store and those will be available after a route change, then wiped-out on the next route change.

Not sure if I'm making myself clear but basically you would have 2 hashes:

  • current (filled in on the previous route)
  • next - to be exposed after route change

on each successful route change next becomes current and next gets re-initialized to an empty hash.

This automatic wiping-out mechanism assures that the messages get actually cleaned up when not needed any more.

@petebacondarwin
Copy link
Contributor

Covered by #68

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

No branches or pull requests

2 participants