Skip to content

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 abetwothree requested a review from ansezz September 28, 2022 03:15
@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.

2 participants