Git Product home page Git Product logo

Comments (6)

pydis-bot avatar pydis-bot commented on August 27, 2024

Comment from Johannes Christ:

Should probably be postponed until infractions use the Django website's API

from bot.

MarkKoz avatar MarkKoz commented on August 27, 2024

@jchristgit You worked on updating the bot side of things to work with the new API, right? IIRC the API itself does support querying for more fields now. Have these new capabilities been transferred to the bot commands too?

from bot.

SebastiaanZ avatar SebastiaanZ commented on August 27, 2024

As far as I know, the implementation in the moderation cog hasn't changed: a moderator can search for infractions based on the user or the reason (with regex support). @scragly is planning on rewriting the moderation cog, which is probably a good time to look into improving the search capabilities as well.

from bot.

MarkKoz avatar MarkKoz commented on August 27, 2024

There's two ways to approach this (or a mix of both I suppose):

  1. A generic search command which will support partial matches on user and actor names along with the reason. It will also support exact matches for IDs. This is easier to implement and easier to use (just a single command covers everything) but at the cost of less control over the search query. For example, if one wishes to search for an actor by name, if their name appeared in an unrelated infraction's reason, that would also show up in the search result. On the site, the implementation would utilise the SearchFilter and search_fields. The date range would still need to be a separate command.
  2. Specific commands for each field. User IDs and names could likely be grouped into one command, and the field to search inferred by whether search query represents a valid user ID.

from bot.

Akarys42 avatar Akarys42 commented on August 27, 2024

We do not support searching by agent yet, adding that as a sub command would be nice.
You can get stats about the infractions through grafana and have fancy graph, I don’t think a command for that is much needed.

from bot.

mbaruh avatar mbaruh commented on August 27, 2024

All parts for this are done save for the statistics command, and like mentioned we have grafana for this. If a need arises for seeing the actual infractions in the timespan via a command we can open a separate issue.

from bot.

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.