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

[BAPL-1336] PIM UI usability and stability #1869

Merged
merged 19 commits into from Aug 16, 2019
Merged

Conversation

ruromero
Copy link
Member

@ruromero ruromero commented Jul 18, 2019

Fix https://issues.jboss.org/browse/JBPM-8474
Fix https://issues.jboss.org/browse/JBPM-8542
Fix https://issues.jboss.org/browse/JBPM-8508
Fix https://issues.jboss.org/browse/JBPM-8473
Fix https://issues.jboss.org/browse/JBPM-8663
Fix https://issues.jboss.org/browse/JBPM-8471
Fix https://issues.jboss.org/browse/JBPM-8472

Summary of changes:

JBPM-8474 process nodes mapping screen issues

  • Mappings are shown as tags using the name instead of the UID
  • Mappings can be removed using the (x) icon in the tag
  • Nodes can be only mapped once and must be of the same type

JBPM-8542 Migration Plan import does not work

  • Fixed migration plan import
  • Errors are shown to the user in case the import fails
  • Import button is not enabled until a valid JSON is added
  • Plans are refreshed after the import is successful

JBPM-8508 node mapping not loaded when editing Migration Plan

  • Definitions are loaded when the process selection step is displayed and the loaded map has a valid source/target process definition selected

JBPM-8473 improve container and process selection

  • Available containers and processes are loaded from the server and presented as a dependent dropdown
  • Definitions are loaded upon process selection to avoid the "Load definition" button
  • Validation messages have been added to ensure source/target are different
  • Errors are displayed as notifications if the definitions can't be loaded

JBPM-8663 Validation following PF3 style

  • Plan name must not be null
  • CallbackURL / scheduledStartTime must be valid but are optional
  • Required fields have a red asterisk after the label
  • Validation messages are displayed below the input field
  • Next button is disabled until the current step is valid

JBPM-8471 only basic css theme

  • Added Patternfly3 header
  • Set page title
  • Added some minimal css styles
  • Fixed migration filter validation to allow retrieve all
  • Align plans and migrations tables styles

JBPM-8472 horizontal scrollbar in basic view

  • Modified CSS

Other fixes

  • Refactor REST client to simplify communication with the server
  • Replace HTML with React components in many places (not all)
  • RunningInstances.status is converted into a literal
  • Move from sourceProcessId and sourceContainerId to source.processId and source.containerId
  • Enhanced development experience by mocking the JS server
  • Clean up npm dependencies and imported resources (PF fonts/css)
  • Add PropTypes for component validation in many places (not all)

@ruromero ruromero changed the title Import [BAPL-1336] PIM UI usability and stability Jul 18, 2019
@jstastny-cz
Copy link

JBPM-8663 - not allowing localhost as callback url, is that intended?

Copy link

@jstastny-cz jstastny-cz left a comment

Choose a reason for hiding this comment

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

A few comments inline.

Java classes probably do not follow our code style standards - indent width should be 4 spaces.

@ruromero
Copy link
Member Author

ruromero commented Aug 6, 2019

JBPM-8663 - not allowing localhost as callback url, is that intended?

Fixed

@ruromero
Copy link
Member Author

ruromero commented Aug 6, 2019

Added link to https://issues.jboss.org/browse/JBPM-8472

Copy link
Member

@MarianMacik MarianMacik left a comment

Choose a reason for hiding this comment

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

Mostly minor comments. Otherwise looks good. Very good refactoring, I like how clean the frontend REST clients are now. And BTW thanks for creating multiple JS tests inside one JS test classes, I think this is the way to go when writing JS tests.

@ruromero ruromero force-pushed the import branch 3 times, most recently from e4ca62f to dca85cf Compare August 9, 2019 10:54
Signed-off-by: Ruben Romero Montes <rromerom@redhat.com>
Signed-off-by: Ruben Romero Montes <rromerom@redhat.com>
Signed-off-by: Ruben Romero Montes <rromerom@redhat.com>
Signed-off-by: Ruben Romero Montes <rromerom@redhat.com>
Signed-off-by: Ruben Romero Montes <rromerom@redhat.com>
Signed-off-by: Ruben Romero Montes <rromerom@redhat.com>
Signed-off-by: Ruben Romero Montes <rromerom@redhat.com>
Signed-off-by: Ruben Romero Montes <rromerom@redhat.com>
Signed-off-by: Ruben Romero Montes <rromerom@redhat.com>
Signed-off-by: Ruben Romero Montes <rromerom@redhat.com>
Signed-off-by: Ruben Romero Montes <rromerom@redhat.com>
Signed-off-by: Ruben Romero Montes <rromerom@redhat.com>
Signed-off-by: Ruben Romero Montes <rromerom@redhat.com>
Signed-off-by: Ruben Romero Montes <rromerom@redhat.com>
Signed-off-by: Ruben Romero Montes <rromerom@redhat.com>
Signed-off-by: Ruben Romero Montes <rromerom@redhat.com>
Signed-off-by: Ruben Romero Montes <rromerom@redhat.com>
Signed-off-by: Ruben Romero Montes <rromerom@redhat.com>
Signed-off-by: Ruben Romero Montes <rromerom@redhat.com>
<exclusions>
<exclusion>
<artifactId>narayana-jts-idlj</artifactId>
<groupId>org.jboss.narayana.jts</groupId>
Copy link
Member

Choose a reason for hiding this comment

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

I checked with guys from Thorntail. This is not needed at all, so the exclusion is fine.

@MarianMacik
Copy link
Member

jenkins retest this

@MarianMacik MarianMacik merged commit cf5a12d into kiegroup:master Aug 16, 2019
@ruromero ruromero deleted the import branch August 16, 2019 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants