Code Monkey home page Code Monkey logo

Comments (6)

zpottie avatar zpottie commented on August 14, 2024 1

That's impressive. Even more-so, because the 'seen' field tracks each notification per-user. So a single user (perhaps admin?) has had a notification shown to them that many times.

I've pushed an update (826a322) to increase the maximum seen amount significantly. As per BIGINT:

Will just wait for TravisCI to finish successfully, and then I'll update it on Moodle Plugins Directory.

Thanks again,
Zander

from moodle-block_advnotifications.

zpottie avatar zpottie commented on August 14, 2024

Hi @caiado,

Looks like that notification has been seen a whopping 32767 times! 🤯

I'll update the next release of the plugin to either increase the maximum allowed 'seen' number or add a check if we've reached the maximum.

For now, a work-around would be to re-create the exact same notification - that way it will appear the same to users, but it will start counting from 0 again.

Or, possibly running (untested, please test on test-site first) in the database:

UPDATE mdl_block_advnotificationsdissed SET seen = 1 WHERE id=1

(will reset that specific user's view times of that notification to 1)
or

UPDATE mdl_block_advnotificationsdissed SET seen = 1 WHERE seen > 32000

(will reset all notification views of more than 32000 - close to max of 32767 - to 1)

Hope this helps in the meantime, thanks for reporting with detailed info! 😃

Thanks,
Zander

from moodle-block_advnotifications.

zpottie avatar zpottie commented on August 14, 2024

For reference...
Different DB's handle XMLDB's int type and LENGTH differently:
https://docs.moodle.org/dev/XMLDB_column_types

from moodle-block_advnotifications.

caiado avatar caiado commented on August 14, 2024

Zander,

Our list of users goes beyond 250K.

Looking forward for the update.

Ricardo

from moodle-block_advnotifications.

caiado avatar caiado commented on August 14, 2024

Thank you!

from moodle-block_advnotifications.

zpottie avatar zpottie commented on August 14, 2024

Have released the new version on Moodle Plugins Directory - https://moodle.org/plugins/block_advnotifications

Cheers!
Will close this issue now

from moodle-block_advnotifications.

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.