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

Isolating data: Multiple TaskMapper instances per user in the same ruby process #23

Open
fullofcaffeine opened this issue Jul 13, 2012 · 0 comments

Comments

@fullofcaffeine
Copy link

Hey guys,

Thank you for taskmapper and the whole set of extensions for the different cloud services. It's really useful.

However, I've noticed that while the architecture of taskmapper is modular and easy to modify, it heavily relies on singletons objects, making it hard to isolate information on a per user basis in the same Ruby process. if we were to create a TaskMapper instance for multiple users in an hypothetical Rails application, the credential data would conflict, and the last used data would be used for the next instance of TaskMapper.

I see that you don't instantiate the instance of the API classes (the API constant, you just send a find to it, instead of instantiating it first), but instead rely on singleton objects (for example, in ticketmaster-pivotal, the token is kept in the singleton method "token" of the PivotalAPI class. That would obviously cause problems in a multi-tenant app, even if I create multiple instances of TaskMapper). Was that on purpose?

Regards,

Marcelo.

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

1 participant