Skip to content

Implement daily badge sync job #1763

@arkid15r

Description

@arkid15r

Is your feature request related to a problem? Please describe.

We want to introduce user badges to OWASP Nest. These badges will represent different roles or achievements (e.g., OWASP employee, project leader, chapter leader).

Describe the solution you'd like

Create a periodic job that runs daily (after the user sync job) to populate user badges.

The logic for assigning the "OWASP Employee" badge should work as follows:
If a user has is_owasp_employee = True, they should receive the "OWASP Employee" badge.
If is_owasp_employee = False, the badge should be removed (if previously assigned).

The badge (with name, description, and css class) should be auto-created if it doesn’t already exist.
Make sure the job is idempotent and can be safely run multiple times.
Add tests to cover badge assignment logic.

Are you going to work on implementing this?

  • Yes
  • No

Additional context

Depends on #1762

Metadata

Metadata

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions