English Romanian
You may revoke badge or badge authorizations in a similar fashion to the `award-badges` script. You may chain the invocation of the `revoke-badge` or `revoke-authorization` script in the same manner as the `award-badges` script.
Useful scripts for manual work
Upstream documentation
Update the description and the criteria link for a badge. Useful in the event you created it incorrectly, or if feedback from other stakeholders requires us to change something.
Under the _Invitations_ section, add this information:
To perform this, you must be in the `sysadmin-badges` FAS group.
To add multiple users, repeat this process for each user.
To add a new admin, add their `FAS_USERNAME@fedoraproject.org` email to that line, commit, and push. Use Ansible to run the `groups/badges-web.yml` playbook to push the config change out to the web front-end nodes.
This is done through the admin panel of the web interface (although we can probably write a script for it to be used on the back-end node).
There is a script installed on `badges-backend01` in `/usr/local/bin/award-badge`. It has help options that you can pull up with `award-badge -h`. It takes a required `--user FAS_USERNAME` and a required `--badge BADGE_ID` option. For example, the following invocation would award the "Associate Editor" badge to "ralph":
The front-end runs under `apache/mod_wsgi` on `badges-web0{1,2}` nodes.
The front-end is a web application called https://github.com/fedora-infra/tahrir[Tahrir]. It mostly is just an interface for users to look at their badges. However, it also has an admin interface for manually adding new badges, awarding badges, and creating "invitations" (QR codes) for badges.
The configuration file for the badges front-end web app is managed by ansible.git. The source code is in https://pagure.io/fedora-infra/ansible/blob/master/f/roles/badges/frontend/templates/tahrir.ini[roles/badges/frontend/templates/tahrir.ini].
The badge is now created. You should be able to find in the https://badges.fedoraproject.org/explore/badges[badges index].
The `BADGE_ID` for a badge can be found by visiting its page on the web UI. That badge can be found at `https://badges.fedoraproject.org/badge/associate-editor`.
The badge-awarding back-end daemon, https://github.com/fedora-infra/fedbadges[fedbadges], wakes up when it receives a https://fedmsg.readthedocs.io[fedmsg] event. It compares that message and the history in https://github.com/fedora-infra/datanommer[datanommer] against a series of rules. If a contributor matches the criteria described in one of those rules, then they are awarded a badge.
The badge-awarding back-end daemon, https://github.com/fedora-infra/fedbadges[fedbadges], runs on the `badges-backend01` node. The process is `fedmsg-hub` and logs are in `/var/log/fedmsg/fedmsg-hub.log`.
The `award-badge` script and source code is managed by ansible.git. The source code is in https://pagure.io/fedora-infra/ansible/blob/master/f/roles/badges/backend/files/award-badge[roles/badges/backend/files/award-badge].
*Tags*: comma-delimited list of tags:
Sysadmin process: How to push a Badge