-
Notifications
You must be signed in to change notification settings - Fork 897
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
Adds purging for notifications #17046
Conversation
5efeaed
to
3820086
Compare
* Sets notifications that are older than a week to be purged by default. * Purging is run daily * Clears out notification recipients as well
Checked commit NickLaMuro@3820086 with ruby 2.3.3, rubocop 0.52.0, haml-lint 0.20.0, and yamllint 1.10.0 |
I'm not sure if it would look like this PR, but Or, if we're going to go this route, should we remove that column entirely? It doesn't look like it gets used anywhere. |
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.
LGTM, although I'd like @carbonin to review since he added the vim performance states purging 🚌 💥
heheh, 🔥 ✂️ 🚽 ❤️ 😍 |
@carbonin @jrafanie If it is any indicator from the PR, since I basically committed "code plagiarism", I really was just doing some "copy pasta" here, so I really don't have an opinion one way or the other. That said, I did some git history digging, and this is where the notifications where added: Looks like the So, that said, should make the purging for this PR more dynamic and take into account the |
If you're game to try to incorporate I think the purging mixin assumes that everything in the table should be purged by the same interval so it might need multiple passes or some non-trivial database queries. If this won't fit into the existing purging mixin then I vote for removing the |
If nothing in the service ui or classic ui or backend code uses or has plans to to use |
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 get any simpler than this.
I like both PRs. will put some more comments in the other
@skateman @gtanzillo Should we care about expires_in for notification purging? |
@skateman unrecognized command 'request_review', ignoring... Accepted commands are: add_label, assign, close_issue, move_issue, remove_label, rm_label, set_milestone |
oh, this doesn't work yet 😞 |
Adding |
@Fryguy yes, I think the expires in reflects when the notification should be purged |
I'm in favor of this version of the purging of notifications for a few reasons:
If we don't have explicit features we'd be losing in ui classic, service ui, or the api by removing |
@jrafanie true story that the expires_in is not being used, so I leave it up to you guys. But I like simplicity 😉 |
Not my call either. I leave it up to who ever designed this in the first place or has a more valid stake in it than I am. Seems like it was Simon and @gtanzillo who first put together the notifications, for what that is worth: #10623 |
I just want to say I advocated for deleting something without using any emoji. |
@jrafanie False, you totally used emoji to agree with a statement that agreed with your own! Don't think I didn't see you doing that there! 🔍 |
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.
I think we're good if we received @skateman's seal of approval 😉 |
I'm 👍 for going with the simple approach since If everybody's in agreement, we can un-wip and merge this. |
Addressed in chat, we will discuss if this is needed at a later date. |
@NickLaMuro can you see if this will easily backport to fine and euwe and add those labels? I think this is a no-brainer if it's easy. |
@jrafanie Looks like there were some additions to Short story: No go on easy backport 😢 |
Adds purging for notifications (cherry picked from commit 427257a) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1553780
Gaprindashvili backport details:
|
@NickLaMuro The BZ has cfme-5.8.z flag (but not 5.7.z). Can you create a PR for Fine branch? |
@simaishi short answer: sure, I personally don't mind Long answer: I was under the impression that this was a "new feature" and an RFE BZ by my interpretation, so backporting wasn't something we were trying to target. I was unaware of/didn't notice the flag, so I wasn't planning to even have this backported to G in the first place, let alone Fine. Personally I don't think it makes sense to introduce a new feature like this into a older version, but I am not the boss around these parts, so will just do as I am told. </2cents> Will have a PR for the backport shortly. |
@NickLaMuro ha ha, I'm not the boss either! Feel free to ask the 'right' person and get that flag removed 😄 |
@NickLaMuro unrecognized command 'add', ignoring... Accepted commands are: add_label, add_reviewer, assign, close_issue, move_issue, remove_label, rm_label, set_milestone |
@miq-bot add_label fine/yes Talked with @dmetzger57 and it looks like we are going to go with putting this in |
Backported to Fine via #17294 |
@NickLaMuro we would like to have something similar for the |
Links