Git Product home page Git Product logo

Comments (3)

LeandroLuccerini avatar LeandroLuccerini commented on September 24, 2024

Hello,
i'm working on a NotificationController#removeNotificationAction maybe tomorrow i will send a PR so if you want you can first check it, i also wanted to integrate also commands like you proposed.
I was thinking of a set of commands like

  1. mgilet:notification:remove_notification : (clear_notification in your case) deletes all the notifications and all the NotifiableNotifications
  2. mgilet:notification:remove_notification --notifiable=[id]: deletes all notification (NotifiableNotification) for given Notifiable Entity
  3. mgilet:notification:remove_notification --older_than=[time]: deletes all the notifications older than given time such, for example: 3m or 10d or 2y or 1w (where m=months, d=days, y=years and w=weeks) and combinations

Obviuosly the command can combine all the options.

Setting something like a cron, this could be useful to avoid uncontrolled growth of the tables.

If you will find my PR useful (and @maximilienGilet agrees) you can fork and work on it.

from notification-bundle.

GGGGino avatar GGGGino commented on September 24, 2024

Ok,

i agree on all the points. I'll wait @maximilienGilet response and i'll start working on it.

Thanks

from notification-bundle.

maximilienGilet avatar maximilienGilet commented on September 24, 2024

Hi !

This is a great idea that could be very useful !
I don't have much time so a pull request would be nice.

Thanks for the interest in this bundle 👍

from notification-bundle.

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.