Uploaded image for project: 'OpenShift Request For Enhancement'
  1. OpenShift Request For Enhancement
  2. RFE-4381

Gravatar URL configuration option

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • quay
    • None
    • Product / Portfolio Work
    • None
    • False
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      As a user, we would like to be able to customize the static Gravatar URL via a configuration switch.

      As an example the following code line. All Gravatar endpoints are statically stored in the source code. Since some services, like quay, only offer Gravatar and some employees do not want to use the service, we have provided a separate endpoint in our network. 

          def _get_url(self, hash_value, size=16):
              return "%s://www.gravatar.com/avatar/%s?d=404&size=%s" % (
                  self.preferred_url_scheme,
                  hash_value,
                  size,
              )
      

      With new config paramater for Gravatar endpoint:

           def _get_url(self, hash_value, size=16):
              return "%s://%s/avatar/%s?d=404&size=%s" % (
                  self.preferred_url_scheme,
                  app.config["GRAVATAR_URI"],
                  hash_value,
                  size,
              )
      

       

              rhn-coreos-tunwu Tony Wu
              gebitsolutions Lenny Linux (Inactive)
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                None
                None