-
Notifications
You must be signed in to change notification settings - Fork 900
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
Blacklisted events are not user-configurable #19707
Comments
This issue has been automatically marked as stale because it has not been updated for at least 3 months. If you can still reproduce this issue on the current release or on Thank you for all your contributions! More information about the ManageIQ triage process can be found in the traige process documentation. |
This issue has been automatically marked as stale because it has not been updated for at least 3 months. If you can still reproduce this issue on the current release or on Thank you for all your contributions! More information about the ManageIQ triage process can be found in the triage process documentation. |
so sounds like 2 options:
Do we really want this list to be user configurable? |
Autodetecting these changes seems a bit over the top. Especially since this will typically be done from rails console. Sure, auto detection would be nice, but the bigger fish to fry here is allowing this to be configurable by the customer)
Currently, we use the following code to add an event to vmware:
|
So, IMO, this should 100% be in settings. We come out of the box with a list of default events in the settings, pluggable by provider, then the user can update it as needed. We should delete the BlacklistedEvent model, the blacklisted_events table, and provide a data migration for any existing user records in blacklisted_events over to the settings, if possible. There is also the "sync" of blacklisted_events, which can go away because we already have syncing of settings. While we're at it, we should rename blacklisted_events to something else like filtered_events. I feel the latter is much clearer in intent. This is the original issue to move the event filters into the database: #3273 & #3636. However I don't know what the motivation was behind it. I think it was because way back we used to have separate files for different configurations, and this was also before the settings revamp allowing user changes and layering, so this looks like an effort to make it easier for users. |
@agrare I think the new PRs have broken a spec on master which verifies the count of BlacklistedEvent. See #23319 (comment)
|
There are two issues that are contributing to this problem.
ExtManagementSystem.default_blacklisted_event_names
super
) the user's events would at least get created at the next seed.Right now the only way for a user to create a new blacklisted event is to do so manually through the rails console.
Ideally there would be a UI and API for blacklisted events, but failing that we should at least honor the events configured in the advanced settings screen.
cc @agrare
The text was updated successfully, but these errors were encountered: