Comments (6)
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:
- PostgreSQL - https://www.postgresql.org/docs/9.1/datatype-numeric.html
- MySQL - https://dev.mysql.com/doc/refman/8.0/en/integer-types.html
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.
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.
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.
Zander,
Our list of users goes beyond 250K.
Looking forward for the update.
Ricardo
from moodle-block_advnotifications.
Thank you!
from moodle-block_advnotifications.
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)
- Show no date if from/to date is not set HOT 1
- Support multilang tags & filter HOT 1
- Implement Privacy API HOT 1
- adding rss support HOT 3
- Validation failure HOT 4
- Different date format after saving a notification HOT 1
- Request: Use language strings in the values of the types HOT 1
- Proposal: show specific notifications to different user- or sitegroups HOT 2
- Proposal: enlarge min-width of message field HOT 1
- Icons cannot be overwritten by theme HOT 2
- Announcement Style is the same as Info style HOT 6
- How to adjust date format for USA form(MM-DD-YYYY) HOT 2
- Add capability to allow any role to create/manage notifications HOT 3
- Warning: key() expects parameter 1 to be array, string given in /moodle/blocks/advnotifications/settings.php on line 101 HOT 2
- Display the block to members of specific cohorts HOT 1
- Unit test failures HOT 3
- Request: add support for ISO standard date format YYYY-MM-DD HOT 1
- JavaScript error in console: No 'strings' response received. custom.js:270:17 HOT 2
- WYSIWYG/HTML Editor HOT 2
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 moodle-block_advnotifications.