-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update notifications for core and apps #24444
Conversation
By analyzing the blame information on this pull request, we identified @BernhardPosselt, @DeepDiver1975 and @LukasReschke to be potential reviewers |
Done, ready for review |
39b4e3b
to
dbf0a10
Compare
if (newChannel === 'git' || newChannel === 'daily') { | ||
$('#oca_updatenotification_groups em').removeClass('hidden'); | ||
} else { | ||
$('#oca_updatenotification_groups em').addClass('hidden'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
protip: $(...).toggleClass('hidden', boolValue)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't toggle, because then I need to catch the case when you change from stable to product and not toggle...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same for beta, and then it's messier than now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really, this code should behave the same as yours, but shorter:
$('#oca_updatenotification_groups em').toggleClass('hidden', !(newChannel === 'git' || newChannel === 'daily'))
Anyway, it's not a biggie.
Will the notification be recreated during the next update check or is there code that makes sure the notification only appears once ? I didn't seem to find it, maybe it's a feature of the notifications app ? |
Yes, each new update will generate a new notification, but before that we delete the old notifications, in case one had them still unread. |
return $this->users; | ||
} | ||
|
||
$notifyGroups = json_decode($this->config->getAppValue('updatenotification', 'notify_groups', '["admin"]'), true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if no groups were selected, disable the background job completely (or make it no-op)
In some scenarios an admin might not want to have a bkg job pinging the app store for every app regularily.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, maybe one can just disable the update notification app
App update notification doesn't seem to work for me.
There are no new entries in The core update notification works though, so the jobs does run but something might not work correctly with apps updates. |
Just debugged a bit, and I saw it go here: https://github.com/owncloud/core/pull/24444/files#diff-b720db44b64d429650b1fa2d2bbbc777R129 even though there is no entry in Ok, so I tried doing this: Now when I run cron, there's an entry in
However when I refresh the web UI, that entry just disappears and nothing appears in the UI ! |
I guess because your cheat was incomplete and the installed_version in appconfig is 2.0.1? |
Indeed. Works now 👍 |
Second review @schiesbn @ChristophWurst @rullzer |
👍 |
@nickvergessen mind rebasing so we can see at least the basic DB tests pass ? Thanks (results timed out) |
I just ran them locally and they all passed, but sure can slap jenkins in a bit |
@nickvergessen here, use this 👢 |
dbf0a10
to
a1e872a
Compare
Done |
CC @carlaschroder @jospoortvliet for this enhancement |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Automatically delete the notification when an app/core was updated=> No hooks, needs to move to "on rendering"