#36 Add quickdoc for pushing Fedora Badge
Closed 5 years ago by jflory7. Opened 6 years ago by jflory7.
fedora-docs/ jflory7/quick-docs add/badges-quickdoc  into  master

@@ -0,0 +1,161 @@ 

+ include::en-us/attributes.adoc[]

+ 

+ = How to push Fedora Badges

+ 

+ '''

+ 

+ [IMPORTANT]

+ ======

+ 

+ This page was automatically converted from https://fedoraproject.org/wiki/Using_UEFI_with_QEMU

+ 

+ It is probably

+ 

+ * Badly formatted

+ * Missing graphics and tables that do not convert well from mediawiki

+ * Out-of-date

+ * In need of other love

+ 

+ 

+ Pull requests accepted at https://pagure.io/fedora-docs/quick-docs

+ 

+ Once you've fixed this page, remove this notice, and update

+ `_topic_map.yml`.

+ 

+ Once the document is live, go to the original wiki page and replace its text

+ with the following macro:

+ 

+ ....

+ {{#fedoradocs: https://docs.fedoraproject.org/whatever-the-of-this-new-page}}

+ ....

+ 

+ ======

+ 

+ '''

+ 

+ 

+ 

+ 

+ 

+ 

+ Ever wondered what goes on behind the magic of

+ https://badges.fedoraproject.org/[Fedora Badges]? How does a badge go

+ from being a design to an earn-able entity? This short but handy guide

+ breaks down the entire process for you. This post is adapted from a

+ https://meetbot.fedoraproject.org/fedora-meeting-3/2016-06-03/commops.2016-06-03-20.56.log.html#l-34[series

+ of notes] I took while watching Ralph Bean demo the procedure at

+ https://fedoraproject.org/wiki/PyCon_2016[PyCon]. This guide is a

+ supplement, not a replacement, for the official

+ https://infrastructure.fedoraproject.org/infra/docs/badges.rst[Badges

+ SOP].

+ 

+ [[badges-prerequisites]]

+ Badges Prerequisites

+ ~~~~~~~~~~~~~~~~~~~~

+ 

+ Before beginning to consider whether you are going to push a badge, you

+ must first meet the following prerequisites.

+ 

+ 1.  Clone the https://git.fedorahosted.org/cgit/badges.git[`badges`

This should be ssh://git@pagure.io/fedora-badges.git

+ repository], where all badges live.

+ 2.  Be a sponsored member of the `sysadmin-badges` FAS group

+ 

+ [[taking-care-of-art-assets]]

+ Taking care of art assets

+ ~~~~~~~~~~~~~~~~~~~~~~~~~

+ 

+ Before publishing the badge, you will need to make sure all the art

+ assets are in the right place for the ticket. This usually consists of a

+ PNG and SVG, but can also include an STL file for 3D printing a badge

+ design. The following steps are a handy checklist of things you need to

+ do for gathering all the art assets together.

+ 

+ 1.  Go to the ticket for the badge and pull both art asset types (PNG

+ and SVG) into the `badges` repository. If there is a YAML rule file,

+ pull that down as well.

+ 2.  Place both art assets (and YAML file, if applicable) into their

+ appropriate folder. Make sure both files share the same name. It is

+ preferred to name the files the name of the badge for easy indexing

+ later on.

+ 3.  Double-check to make sure the image assets you pulled down are

+ "good" - sometimes the images can be corrupted and this can cause

+ problems later. Check if you can view both files.

+ 4.  Change directories into `bin/` and run the `export.sh` script. This

+ will create an STL file for the badge and move it in the right place for

+ you. Check the `README` file in `bin/` for more info about running the

+ script.

IIRC we stopped creating the STL files.

+ 5.  Add the files in git and commit. If you have push privileges, go

+ ahead and push. If not, create a patch file and add it to the original

+ badge ticket.

+ 

+ At this point, all the art assets will now be prepared and ready for

+ deployment.

+ 

+ [[pushing-out-badges]]

+ Pushing out badges

+ ~~~~~~~~~~~~~~~~~~

+ 

+ Once you have committed the badge to the FedoraHosted repository, it

+ doesn't mean the badge is "out there" yet. To do this, you will need to

+ use an Ansible playbook for that purpose. These steps will take you to

+ the Batcave and have you push the badge out to the Badges front-end,

+ https://github.com/fedora-infra/tahrir[Tahrir].

+ 

+ 1.  Log into the `batcave` machine and find the

+ https://infrastructure.fedoraproject.org/cgit/ansible.git/tree/playbooks/manual/push-badges.yml[`push-badges.yml`]

+ playbook. Execute it.

Can we have the rbac-playbook command here.

+ 1.  Note that you will need to have proper privileges to execute and run

+ the playbook. Sysadmins with privileges (`sysadmin-badges` FAS group)

+ will be able to run the playbook to pull the changes from FedoraHosted

+ to `batcave` - the changes then get synced to the `badges-web` server.

+ 2.  If you are only a member of `sysadmin-badges` but not other groups,

+ you can use the `rbac-playbook` tool to execute this specific playbook.

+ For more information on

+ https://lists.fedoraproject.org/archives/list/infrastructure@lists.fedoraproject.org/thread/ZT73GIDEKL5WUQJWN4DD35KXGODLKW3S/[role-based-access-control

+ playbooks], read the original announcement.

+ 2.  Wait for the playbook to finish. Once complete, check if the PNG

+ file is publicly viewable on the Badges website.

+ 1.  `https://badges.fedoraproject.org/pngs/{{ badge_name }}.png`

+ 

+ Now, the hard work is done. From this point, you will have to use the

+ front-end of Tahrir to finish adding the badge.

+ 

+ [[adding-badges-from-tahrir]]

+ Adding badges from Tahrir

+ ~~~~~~~~~~~~~~~~~~~~~~~~~

+ 

+ Once the art assets are on `badges-web`, you will be ready to make the

+ badge. *But be warned*! Creating a badge is easy, but editing it is not!

+ Make sure the information you are entering is right on the first go.

+ Otherwise, fixing it will involve fixing the data with SQL statements.

+ 

+ 1.  Log into the admin interface on badges.fedoraproject.org.

+ 2.  Go to the "Add badge" section.

+ 3.  Enter in all the information as provided in the badge ticket. Make

+ sure to include the right name, description, and location of the image

+ file. Once you have double-checked and verified the information is

+ correct, hit "_Create badge_".

+ 1.  Tags are an important part of this process too. Compare to other

+ similar badges when adding a new one, otherwise it may not be

+ categorized correctly in the badges index.

+ 2.  Some information is consistent across all badges, like the _Badge

+ Criteria_ field. For this field, you should always put the link back to

+ the original Badges Team ticket where the badge was proposed, designed,

+ and discussed.

+ 4.  If the badge does not have an automatic rule for being awarded, you

+ will need to grant authorizations for issuing the badge. You can do this

+ at the bottom of the admin interface. Use the badge name and the

+ @fedoraproject.org email for the person gaining privileges.

+ 

+ After pushing the badge out, do some last checks to make sure the badge

+ pushed correctly. Make sure the page is viewable and double-check that

+ it's categorized correctly in the

+ https://badges.fedoraproject.org/explore/badges[badge index]. If

+ everything looks right, you should be finished. Congratulations, you

+ just pushed your very own Fedora Badge!

+ 

+ '''''

+ 

+ _Image courtesy https://unsplash.com/@annadziubinska[Anna Dziubinska] –

+ originally posted to https://unsplash.com/[Unsplash] as

+ https://unsplash.com/photos/mVhd5QVlDWw[Untitled]._

This is a raw doc that needs love and attention for Fedora Badge. In the long run, this does not belong here but this puts it somewhere to live until this question can be answered by tooling in the future.

cc: @nb @sayanchowdhury @mleonova

Greetings from docs-ci! The temporary URL for this PR is ready at: http://fedora-docs-quick-docs-pr36-fedora-docs.apps.ci.centos.org

BuildID: 139

@jflory7 where do you think it should ultimately live? I know the infrastructure team is starting a repo. Perhaps we should move it there?

@bex I'm not sure where makes the most sense. I would defer to @ralph or @sayanchowdhury to help answer this. But I agree quickdocs is not the right place for this.

Also @kevin or @smooge could give an Infrastructure Team POV on where this document on pushing Fedora Badges should live, since the hackfest a couple weeks ago.

This should be ssh://git@pagure.io/fedora-badges.git

IIRC we stopped creating the STL files.

Can we have the rbac-playbook command here.

rebased onto e380975

5 years ago

After prior conversations with @sayanchowdhury, @nb, @churchyard, and others, we decided to make the final resting place for Fedora Badges sysadmin documentation in the Infra infra-docs repository, where there is already a Fedora Badges how-to document, albeit being from 2014.

My current goal for today is to consolidate content from this pull request and @churchyard's fedora-badges#617 PR and push a new PR to the infra-docs repo.

I am closing this PR. :clapper:

Pull-Request has been closed by jflory7

5 years ago
Metadata