forcrowd / wealthframework Goto Github PK
View Code? Open in Web Editor NEWCrowd controlled public fund experiment
Home Page: https://wealth.forcrowd.org
License: MIT License
Crowd controlled public fund experiment
Home Page: https://wealth.forcrowd.org
License: MIT License
Since the issue for the user is that when increase multiplier function used, it's creating the record with value 1, the screen doesn't change. Simply start from 2 to fix the problem temporarily.
ResourcePool InitialValue can be used in static cases, like Popular Software Licenses sample. Don't use it together with a multiplier field. Create a sample accordingly (Importance Index)?
The user should be able to use the editors without registering or logging in
Upgrade to .net 4.5.1?
Fix resourcePoolService.updateX bug, the function is now on userService.
. Create profile page - show users' resourcepools
. Create account page - show account related options (update username, email, password etc.)
. Update register & login accordingly
. Username based routing (/[username]/[resourcepoolkey]), which allows users to have their own urls for their resourcepools.
What's this error? Seek & destroy!
Error: Cannot perform a 'setEntityState' on an entity that is in the process of being saved
Pt</p._checkOperation@http://wealth.forcrowd.org/Scripts/breeze.min.js?v=024:2:10754
Pt</p.setEntityState@http://wealth.forcrowd.org/Scripts/breeze.min.js?v=024:2:7220
Pt</p.setDeleted@http://wealth.forcrowd.org/Scripts/breeze.min.js?v=024:2:7056
updateElementMultiplier@http://wealth.forcrowd.org/App/services/userService.js?v=029:238:29
link/scope.resetElementMultiplier@http://wealth.forcrowd.org/App/directives/resourcePoolEditor.js?v=029:70:17
Once in a while there is an error while saving the changes
Error: A MergeStrategy of 'Disallowed' does not allow you to attach an entity when an entity with the same key is already attached: UserElementCell:#BusinessObjects-2:::54
Seek & destroy!
Add setup instructions and also make it to work on the initial run.
Currently tempToken is being sent to web api through querystring, which is bit unnecessary approach, since username & password has already being sent through request form.
If the password doesn't contain necessary characters, it doesn't complete the operation but doesn't show any error message. Check AccountController - Register method, registerController.js and registerView.html
Upgrade OData and related libraries to V4.
Related V4 links:
http://damienbod.wordpress.com/2014/06/10/getting-started-with-web-api-and-odata-v4/
There is an Element undefined error when 'All Ratings' switch is used
Merge ElementField + ElementFieldIndex tables
Reset sample data link doesn't work.
Once in a while, there is a concurrency error.
Find him and destroy him!
Merge ElementCell's & UserElementCell's StringValue, BooleanValue, IntegerValue, DecimalValue, DateTimeValue fields on UserElementCell table.
If 'UseFixedValue' is on for that field, other user's can enter any value, so Average (or Sum) of that cell is only going to contain owner's value.
Earlier it was necessary to have data on sample user, so when a new user created, it was copying these ratings as default ones. But since default rating case is now handled differently, it's not necessary to have all those ratings, which are affecting the overall.
Remove 'em!
Move ResourcePool under User table, so ResourcePool will belong to a specific user.
On live, it gets this error;
https://wealth.forcrowd.org/_system/css/fonts/fontawesome-webfont.woff2?v=4.5.0 Failed to load resource: the server responded with a status of 404 (Not Found)
Especially in All in One sample, it works too slow. Increase multiplier takes seconds to update. At the background it does same calculations hundred times. Find a solution!
Currently it's only storing 'access_token' property in localStorage, store the whole object, so you can use expires on.
If there is an invalid link, (ex. /content/invalid), it fails to go to /404 page and starts loading home page recursively, which keeps logging this error and hangs the browser;
VM681:8WARNING: Tried to load angular more than once.
VM681:21 Uncaught Error: Highcharts error #16: www.highcharts.com/errors/16
Multiplier default value is 1 at the moment.
When it's 0, index income with a sub element calculation fails. Probably it's mixing MainElement's multiplier with its own element multiplier.
Offer user an anonymous account option
Since breeze already handles the entity tracking in a nice way, it's not necessary to keep and maintain 'updated' flag in each case of update functions in userService.
Remove it!
Currently there is only 'aggressive' index type that doesn't allocate any amount to the lowest rated item. However it doesn't fit to all cases, especially to InitialValue sample.
On 'not rated organizations' case, it's collecting the tax but not giving it back?
How to treat an organization that doesn't have any rating?
ResourcePool field -> DirectIncome field
ResourcePoolAddition -> ResourcePoolAmount
IndexIncome on Item & Element level -> CMRP Income
MultiplierValue -> Multiplier
Separate Web project into web (angular) client & web service.
This would allow us to better fine tune the libraries for each case.
But first solve #9
Move all internal resources and links (routes) under _system folder.
This is necessary to prevent future conflicts with "username" based routes (so no need check whether username is images, css, js etc. or any other possible new system folder).
Especially ElementItem - multiplier() method called too many times which makes it pretty slow, improve it. But then how to update the cache, events & properties etc.?
Also when debugging, regular account flow goes to UserManager - CreateAsync(User user) method, which should be used only for anonymous accounts. Find em' & destroy 'em.
Reset password & external login callback links return to "/account", instead of new "/_system/account"
If 'UseFixedResourcePoolRate' is true for resource pool, the user can't enter a rating. However, count is always getting increased by 1.
Same goes for elementCell & UseFixedValue.
Currently T-SQL functions return average of rate, rating & value fields.
On business layer, OtherUsersTotal fields are calculated based on these.
And on client-side it does the final calculation.
Instead of this, T-SQL could directly calculate the Totals and send them to the client-side to handle the rest.
Add remember me feature
Somehow on local CMRP records are duplicate, what's the trouble?
Add "Bank Transfer" & Paypal options
Add "forCrowd.WealthEconomy" to the namespaces
Remove Id field from UserResourcePool, UserElementFieldIndex, UserElementCell tables and use composite keys instead.
Composite key sample;
[Key]
[Column(Order = 1)]
public int LocationID { get; set; }
[Key]
[Column(Order = 2)]
public int DayID { get; set; }
Reset / forgot password feature
Every time second & third params have to be entered in order to display info on console. Change the default behavior to only show the message on console, instead of displaying toast box.
These pages are not used actively at the moment, so no hurries to solve these issues.
Currently the title is fixed, just 'Wealth Economy', update it based on the current view
Display total number of ratings next to CMRP title
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.