Comments (3)
Could it be that the lexer may be used by datagrepper to show the message with a certain high-lighting?
Is subjective
used by the conglomerating code in FMN?
from fedora-messaging.
- title: replaced by summary
- subtitle: replaced by str
- long_form (paragraphs of text about a message): it would be useful for email notifications
Hmm. I was thinking that __str__
would basically be the long-form that you'd normally print to a user. Emails would be summary
as the subject, __str__
as the body. IRC would just be summary. Is this enough granularity?
- lexer (pygments lexer that can be applied to the long_form): not sure we want that, it's only implemented for github and scm messages
I vote drop here. If those messages want lexed output, they can add their own method/property to do so.
- link: that would be useful I think (maybe renamed as url? I don't find "link" very clear)
Yes, probably useful for users. +1 on the rename to url, and we can provide a sane default in the base Message.
- icon and secondary_icon: those are usually the app icon and the agent's avatar. They are used, so I think we should keep them, but rename them to app_icon and agent_avatar just to be clearer. (see fedmsg_meta_fedora_infrastructure.fasshim).
Works for me. Again, we can make reasonable defaults and it's a totally opt-in, if you want to make your messages shiny sort of deal.
All the rest I agree with dropping. One last thing is that we should add an importance attribute. Example usage: a successful build could be INFO level, a build failure is ERROR. A failed test would be WARNING or ERROR depending on the test. A passed test is INFO. That way we can set up sane filters for users.
from fedora-messaging.
Hmm. I was thinking that
__str__
would basically be the long-form that you'd normally print to a user. Emails would be summary as the subject,__str__
as the body. IRC would just be summary. Is this enough granularity?
That would work too. In general title
was unused and subtitle
was used as a one-line summary, so I think we can drop title
, rename the existing subtitle
to summary
, and the existing long_form
to __str__
.
Is subjective used by the conglomerating code in FMN?
It doesn't look like it, and anyway since it does not make much sense to receive notification for one's own actions (I know what I just did :-) ), subjective
isn't very appropriate there.
I'll prepare a PR.
from fedora-messaging.
Related Issues (20)
- Pytest does not work on Fedora 35 HOT 3
- [packit] Invalid config
- [packit] Propose downstream failed for release 3.0.1
- [packit] Propose downstream failed for release v3.0.1
- [packit] Propose downstream failed for release 3.0.2
- [packit] Fedora Bodhi update failed to be created HOT 2
- [packit] Propose downstream failed for release v3.0.1
- [packit] Fedora Bodhi update failed to be created HOT 1
- [packit] Fedora Koji build failed to be triggered
- Does message priority needs to be explicitly set in config? HOT 2
- OpenSSL.SSL.Error: [('SSL routines', '', 'unexpected eof while reading')]
- [packit] Fedora Bodhi update failed to be created
- Define a way for consumer callbacks to have a startup and a shutdown process HOT 4
- [packit] Propose downstream failed for release v3.4.0
- Migrate to Poetry
- Use Renovate
- Dependency Dashboard
- Add an `async` function to publish messages HOT 6
- Security policy question HOT 5
- Add a replay command HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fedora-messaging.