Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Make looking for badges directory recursive. #24

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

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

Conversation

@abetwothree
Copy link
Contributor

@abetwothree abetwothree commented Dec 13, 2019

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.

ansezz reacted with thumbs up emoji
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.
Copy link
Contributor Author

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

ansezz reacted with thumbs up emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer

@ansezz ansezz ansezz approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /