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

feat: [ACI-587, ACI-586] implement openedx origin badge progress completion processing #72

Merged

Conversation

andrii-hantkovskyi
Copy link

  • Demo

@andrii-hantkovskyi andrii-hantkovskyi force-pushed the hantkovskyi/aci-587/badge-progress-completion-signal branch from 934ae9c to e29cd46 Compare March 25, 2024 14:11
Copy link
Collaborator

@wowkalucky wowkalucky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well done!

return

if badge_template.origin == 'openedx':
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note for future: here we'd want to make badge templates to be responsible for their type of user credentials:

badge_template.award(username)
badge_template.revoke(username)

  • each badge template type (with a specific origin) manages its type of user credential;

badge_template = get_badge_template_by_id(badge_template_id)

if badge_template is None:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should possibly log an error.

@wowkalucky wowkalucky merged commit 9ee83f8 into aci.main Mar 26, 2024
4 checks passed
@wowkalucky wowkalucky deleted the hantkovskyi/aci-587/badge-progress-completion-signal branch March 26, 2024 11:54
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