Skip to content
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

Feature/14285 migrate event definitions page to new bulk friendly design #14502

Conversation

moesterheld
Copy link
Contributor

@moesterheld moesterheld commented Jan 24, 2023

Migrate Event Definitions and Event Notifications to new Entity List

closes #14285

Description

  • added paginated endpoints for event definitions and notifications, deprecated old endpoints
  • changed entity list in ui to new component

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (non-breaking change)
  • Breaking change (fix or feature that would cause existing functionality to change)

@moesterheld moesterheld linked an issue Jan 24, 2023 that may be closed by this pull request
@ousmaneo ousmaneo force-pushed the feature/14285-migrate-event-definitions-page-to-new-bulk-friendly-design branch from 84bdaaa to 116fca0 Compare January 27, 2023 11:14
@moesterheld moesterheld force-pushed the feature/14285-migrate-event-definitions-page-to-new-bulk-friendly-design branch from bce953a to ead564b Compare February 6, 2023 09:10
@ousmaneo ousmaneo requested a review from a team February 15, 2023 11:47
@patrickmann patrickmann requested review from patrickmann and removed request for a team February 16, 2023 10:46
@patrickmann
Copy link
Contributor

patrickmann commented Feb 16, 2023

The UI doesn't adjust horizontally the way I'd expect. I can never get rid of the horizontal scroll bar, even in maximized view, because the more button is pushed out too far.

Also: System notification events is always shown as disabled. Even after enabling it and seeing a confirmation pop-up that it was successfully enabled.

@patrickmann
Copy link
Contributor

System Notification Events is still showing as disabled - should always be enabled. Note that this is not a scheduled event, so you can't use that as the conditional.

@ousmaneo
Copy link
Contributor

Hi @patrickmann, thank you, I fixed that.

@ousmaneo ousmaneo force-pushed the feature/14285-migrate-event-definitions-page-to-new-bulk-friendly-design branch from a845172 to 720bcd0 Compare February 24, 2023 09:38
@@ -0,0 +1,5 @@
type = "c" # One of: a(dded), c(hanged), d(eprecated), r(emoved), f(ixed), s(ecurity)
message = "Changed event definitions and notifications to new paginated list and entity list ui component."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still think the CL should mention bulk operations, since that is the new feature.

@Path("/bulk_schedule")
@Consumes(MediaType.APPLICATION_JSON)
@Timed
@ApiOperation(value = "Enable a bulk of event definitions", response = BulkOperationResponse.class)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Bulk" sounds strange in this context - "group" or "selection" or "multiple" would be better.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i used bulk to makes this consistent with bulk_delete used here and in streams.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's fine. I just mean the string "Enable a bulk of event definitions". Bulk as a noun refers to a homogeneous mass, rather than a grouping of distinct elements.
If we want to stick with it, then I prefer e.g. "Enable event definitions in bulk"

@Path("/bulk_unschedule")
@Consumes(MediaType.APPLICATION_JSON)
@Timed
@ApiOperation(value = "Disable a bulk of event definitions", response = BulkOperationResponse.class)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace "bulk" - see above

@patrickmann
Copy link
Contributor

patrickmann commented Feb 24, 2023

I can perform bulk disable on System Notification Events definition and get a success confirmation, even though it does not get disabled. For consistency, it should show a warning like it does for an attempted bulk delete.

@moesterheld
Copy link
Contributor Author

adjusted the swagger docs and added additional validation for disabling events in the backend

@patrickmann
Copy link
Contributor

Attempting to delete the System Event Definition is blocked with an appropriate error message.
But it still shows up as successfully deleted in the recent activity log. :)

@grotlue
Copy link
Contributor

grotlue commented Feb 24, 2023

Attempting to delete the System Event Definition is blocked with an appropriate error message. But it still shows up as successfully deleted in the recent activity log. :)

I think we should create a separate issue for handling this. When selecting multiple Event Definition and the System Event Definition, it shows the error message "One of the event definitions could not be deleted" which is expected, but in this case, it looks like something is broken - which is not. I think it's not blocking but would be nice to handle this case in the future.

Copy link
Contributor

@grotlue grotlue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked it again and looks good now! The build is still red though.

Copy link
Contributor

@patrickmann patrickmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I opened #14786 for the inconsistencies related to deleting System Notification event definition.
The rest looks good.

@patrickmann patrickmann merged commit 6554a6f into master Feb 27, 2023
@patrickmann patrickmann deleted the feature/14285-migrate-event-definitions-page-to-new-bulk-friendly-design branch February 27, 2023 08:59
mpfz0r added a commit that referenced this pull request Nov 22, 2023
On save, the UI is passing back the "scheduled=false" param
from the context.

There's several ways we could fix this, but it's probably
easiest to not throw an exception, but just ignore the unschedule
call.

This probably got broken with #14502
moesterheld pushed a commit that referenced this pull request Nov 23, 2023
* Fix saving of system notification event definition

On save, the UI is passing back the "scheduled=false" param
from the context.

There's several ways we could fix this, but it's probably
easiest to not throw an exception, but just ignore the unschedule
call.

This probably got broken with #14502

* changelog
mpfz0r added a commit that referenced this pull request Nov 23, 2023
On save, the UI is passing back the "scheduled=false" param
from the context.

There's several ways we could fix this, but it's probably
easiest to not throw an exception, but just ignore the unschedule
call.

This probably got broken with #14502

cherry-picked from d1b77ed
mpfz0r added a commit that referenced this pull request Nov 23, 2023
* Fix saving of system notification event definition

On save, the UI is passing back the "scheduled=false" param
from the context.

There's several ways we could fix this, but it's probably
easiest to not throw an exception, but just ignore the unschedule
call.

This probably got broken with #14502

* changelog

(cherry picked from commit d1b77ed)
moesterheld pushed a commit that referenced this pull request Dec 1, 2023
* Fix saving of system notification event definition

On save, the UI is passing back the "scheduled=false" param
from the context.

There's several ways we could fix this, but it's probably
easiest to not throw an exception, but just ignore the unschedule
call.

This probably got broken with #14502

* changelog

(cherry picked from commit d1b77ed)
moesterheld pushed a commit that referenced this pull request Dec 1, 2023
On save, the UI is passing back the "scheduled=false" param
from the context.

There's several ways we could fix this, but it's probably
easiest to not throw an exception, but just ignore the unschedule
call.

This probably got broken with #14502

cherry-picked from d1b77ed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate event definitions page to new bulk-friendly design
4 participants