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

Background process to compute client-specific result scores #25

Merged
merged 2 commits into from
Nov 28, 2014

Conversation

shankari
Copy link
Contributor

No description provided.

This is "a hidden file with a proprietary format created by OSX to store custom
attributes of the folder".
http://en.wikipedia.org/wiki/.DS_Store

It does not need to be checked into source control!
This has the following main components:
- A new method for the plugin architecture "runBackgroundTasks"
- Implementations of the new method for the clients we have so far - gamified,
  carshare, and testclient
- A new top level script that invokes the background tasks to precompute results for all users
- A default implementation for users who are not part of a client

This allows us to replace the carbon footprint calculation in the default data
view with a precomputed result as well.

Couple of other things to note:
- I also moved the client count from User to userclient since it deals with both user and client
    - Updated unit tests to handle this
- Added a new unit test for the background invocation
- Documented the design decision for future reference
shankari added a commit that referenced this pull request Nov 28, 2014
Background process to compute client-specific result scores
@shankari shankari merged commit a705ac6 into e-mission:master Nov 28, 2014
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

Successfully merging this pull request may close these issues.

1 participant