gamification-library's People
gamification-library's Issues
If you delete a user that has an email, the email isn't deleted. Causes pages with their email not to load.
Cannot Add New User Through the Form
Something went wrong with the session controller, because I was only able to add a new user through the console (I could add new levels from the form just fine).
Can't create Users anymore.
When attempting to create a user in the Rails console, the following error is thrown:
NoMethodError: undefined method `game_id' for #User:0x43dc310
Password Retrieval
Presently, a user is not able to recover their password if they lose it.
Possible solution:
This task will likely involve creating a form where a user enters their username. Then, be sure to find the email associated with that user. (Be careful when retrieving by username. All of the users for every game are in the same table. You'll need to get the user_id associated with the username, so you don't get a user with the same name in a different game.) Then, send an email to the user with the associated password.
A few other things this might involve are putting a link on the login page that says something like "Forgot your password?" This can link to the new password retrieval form. When the form is completed, you might be able to show a page that says something like "Your password is waiting for you in your inbox!"
Deleting a Friendship causes the friendship page not to load.
The way friendships are set up won't allow :dependent => destroy to work in the User table. This means if you delete a user, his/her friendships are not deleted and when you go to the Friendship Index, it's looking for that user that was deleted, can't find it, and crashes.
Allow for User-Uploaded Badge Images
Once he emails us his username, Eric can you give Joe access to the repo and assign him to this issue. Thanks.
Shouldn't be able to update a level's xp to be higher than the next level's xp.
Imagine you have the following:
Level 1: 100xp
Level 2: 200xp
Currently, when you edit Level 1, you can change it to have 300 xp, which is more than Level 2's xp.
This should not be possible. Level 1 should be prevented from being increased beyond Level 2's xp.
Shouldn't be able to delete a level unless no Users are that level.
Currently we can delete levels that are assigned to users. This breaks any page where we pull level data on a user and they are at that current level.
Shouldn't be able to delete a level if it's not the last level.
Imagine the following:
Level 1: 100xp
Level 2: 200xp
Currently, you can delete Level 1, leaving us with a Level 2. That shouldn't be possible. We should only be able to delete the last level.
'User has already been taken' error when trying to add duplicate inventory.
For some reason, when attempting to add a duplicate entry of a badge, the following error message is displayed: 'User has already been taken'
Inventory has the wrong association with User.
Inventory is a has_one relationship, but needs to be a has_many, because they will have lots of badges, not just one. (The table is just like the Email table, so it should have the same kind of relationship.)
We should be able to call:
User.find(1).inventories
This would list off the badges.
(We can currently call User.find(1).emails to get all the emails.)
Given the current relationship, however, we can only call User.find(1).inventory, which returns the first badge and none of the others.
Users should be authenticated by game.
At the moment, you can create a game (G1) and a user for G1 (UG1). Then, you can create a second game (G2). When you log in to G1, you can access G2 with UG1. This should not be possible.
Javascript components of Twitter Bootstrap don't work.
The Javascript components of the Twitter Bootstrap SASS implementation, using the "bootstrap-sass" Gem, don't appear to be working. It was supposed to work by adding "//= require bootstrap" to the application.js file.
Able to log in without correct password.
When I go to the log in page, I put in a username I have created and make up a password I know is not tied to the user. It logs in.
Level update validation improperly thrown.
When updating a Level, if the xp is lower or equal to the current xp, a validation error is thrown.
Invalid emails can be created.
Currently, you can create an email such as the following:
Email.create(user_id: 1, email: '123')
Need to have a regex validation that ensures it is at least in the valid email format.
http://guides.rubyonrails.org/active_record_validations_callbacks.html#format
Duplicate rows can be created in Inventory.
A check needs to be run that does the following:
if the user_id / badge_id combination exists, increase the amount size by the passed value.
else create a new one.
This can be achieved using the first_or_create method.
http://guides.rubyonrails.org/active_record_querying.html#first_or_create
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.