Getting notifications for comments on a Copr project

Continuing the discussion from gui1ty/Bottles:

Muted by default. You should be able to find the topic in Projects in Copr and watch just that one.

Currently the bot doesn’t associate the posts with a username. It could probably be modified to do so, although it’s complicated because (even though the FAS names match) we don’t automatically create Discourse accounts.

Might be easier to instead run something periodically which would match “unclaimed” Copr project posts to users.

Is the code for @coprserver bot publicly available? I could only find the other bot @t2dbot on pagure.

Paging @msuchy!

Muted by default. You should be able to find the topic in
Projects in Copr and watch_just that one_.

I would want to watch only threads that relate ty my Copr repos.
Watching the entire tag would be overkill / not suit my needs.

Currently the bot doesn’t associate the posts with a username. It
could probably be modified to do so, although it’s complicated
because (even though the FAS names match) we don’t automatically
create Discourse accounts.

How about checking if Copr repo owner has an account on Discourse and if
so tag the user. If not, leave as is.

Oh, definitely — just watch the topic!

Could, yeah. And something to reconcile when someone signs up later.

@coprserver is normal user in discussion.fedoraproject.org. It is not a bot. And as @mattdm already said category “Projects in Copr” is by default muted because it can produce lots of traffic not relevant to other Fedora users. I was unable to find how to set it up to mute it for all and unmute it for the owner of the Copr project. You can do it manually, but not automatically for every Copr user.

By “bot” I mean its actions are controlled by software, not a human.

Ah, actually that helped knowing it’s not a bot. I see now the Discourse embed code in copr frontend.

1 Like

I see now how this is set up. I probably misunderstood at first because I missed context. I was reading replies, yes, in my mail client. :older_man:

While I can easily find the topics I would need to watch, there’s two problems:

  1. I didn’t know all this existed before I literally stumbled upon a comment in one of my Copr repos. That’s bad for me and even worse for the person wanting to get in touch. Makes me look like I’m not responsive.
  2. Whenever I create a new repo, I have to come back here and set up notification for that new topic. I don’t like that approach. It puts an unnecessary burden on me to stay on top of things while all the information required is already available.

Don’t get me wrong. I like the Copr ↔ Discussion integration. But if I’m not made aware of its existence and of questions/comments directed towards me, it quickly becomes a gimmick rather than a helpful tool.

And the “software” part is simple embedded HTML that points to discussion (just profiled URL template). And Discourse is configured that way that when the topic does not exist, it is created.

So there is no logic on Copr’s side. It is just a Discourse configuration.

Any idea how to improve it?

I actually did not realize it was so simple. :classic_smiley:

I’ll check with the Discourse people to see if they have any ideas.

In the meantime, maybe something prominent on the Copr project page (visible to the owner) suggesting they visit and follow the topic?

Beyond that, I have two ideas which would require someone to develop and maintain:

  1. Extend Copr to actually use the Discourse API to create the topics, or
  2. Make an external script which runs periodically and uses the API to match topics to accounts, changing ownership (and possibly even changing the “follow” status)

Any idea how to improve it?

As I suggested above, tag the owner of the Copr repo or, less straight
forward, set the topic to followed by owner.

Of course that goes directly to /dev/null if the repo owner has not
yet setup a Discourse account. For tags that’s harmless, I assume. For
following the topic that should then be a noop.

In the meantime, maybe something prominent on the Copr project page
(visible to the owner) suggesting they visit and follow the topic?

That would at least raise awareness of the link between Copr and Discussion.

PS: I sent that as part of my reply to @msuchy, but Discourse decided to
drop the second quote and everything following :sad:

Here’s what I sent originally (for the book How to Make Discourse a
First Class E-Mail Citizen
):

On 05-05-2023 16:40, Miroslav Suchý via Fedora Discussion wrote:
> Any idea how to improve it?

As I suggested above, tag the owner of the Copr repo or, less straight 
forward, set the topic to followed by owner.

Of course that goes directly to `/dev/null` if the repo owner has not 
yet setup a Discourse account. For tags that's harmless, I assume. For 
following the topic that should then be a noop.

On 05-05-2023 17:56, Matthew Miller via Fedora Discussion wrote:
> In the meantime, maybe something prominent on the Copr project page (visible to the owner) suggesting they visit and follow the topic?

That would at least raise awareness of the link between Copr and Discussion.

PS: I'm stubbornly trying to reply to multiple posts using my mail 
client. I guess Discourse will do something stupid since every post has 
its own unique identifier in the reply to address. :sad:

Edit: I added my original e-mail content in the web interface after both attempts by e-mail failed. :cry: