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

Make looking for badges directory recursive. #24

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

abetwothree
Copy link
Contributor

Allows badges to be placed within other folders.

The only problem I see happening is that right now the BadgeType class does a firstOrNew to record the badge in the database solely by name. If two badges are name the same but in different folders they would over write each other. This could be avoided by adding a column to the database with the full badge namespace and doing a firstOrNew based on name and namespace.

Otherwise, this code will find badges recursively just fine.

Make the look up of Gamifying badges be directory recursive so that it finds them no matter how deep the folder structure is. This allows developers to place badges within the `Gamify/Badges` directory in a more structured way rather than all badges right in the root of that directory.
@abetwothree
Copy link
Contributor Author

Just checking the status of this PR. Been almost 3 years hoping for this to be merged 😞

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.

None yet

2 participants