F4IF / ctree-demo

Collaboration Tree - A community discussion platform built for maximum insight with minimum oversight.
http://demo.ctree.org
Other
37 stars 21 forks source link

Add cTree test user list #4

Open CSchmitz81 opened 7 years ago

CSchmitz81 commented 7 years ago
CSchmitz81 commented 6 years ago

To add a bit more background, we currently populate the designer, contributor, and reviewer fields with just strings (all marked with "TODO: should probably be an object" in a comment in ctree-loader-behavior-test.html). These should be updated to hold a reference to a user object (the structure is documented in the same comment as the TODOs). All users for a test cTree should be stored under "users" in the test cTreeData. As elements are created you should randomly decide to create a new user or use one from the existing users list (probably equally weighted). The existing places where the user strings are used will need to be updated to get the name from the user object.