Giter Site home page Giter Site logo

--terse support about fedora-messaging HOT 4 OPEN

fedora-infra avatar fedora-infra commented on June 18, 2024
--terse support

from fedora-messaging.

Comments (4)

jeremycline avatar jeremycline commented on June 18, 2024

This is pretty easy to do and could be a callback we provide, but the way fedmsg "tersified" messages was fedora_fedmsg_meta_something_something and fedora-messaging relies on publishers to describe their messages so it'll look a bit messy during the transition since the generic terse message is just the message topic IIRC.

The callback would look something like:

def callback(message):
    print(message.summary)

from fedora-messaging.

abompard avatar abompard commented on June 18, 2024

When applications define message schemas, we'll be able to define a printer callback that will print
"{} --{}".format(message.topic, message.summary)
and it'll output basically the same info.
Without message schemas, the conversion from dictionary to human-readable description is not possible (all that logic is in the fedmsg_meta_fedora_infrastructure package).

Hopefully apps will define their message schemas soon!

from fedora-messaging.

abompard avatar abompard commented on June 18, 2024

Oh, synchronized replies, @jeremycline :-)

from fedora-messaging.

joshpetit avatar joshpetit commented on June 18, 2024

Hey! Is this something that there's still an interest in having? I could try and implement it if so!

from fedora-messaging.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.