-
Notifications
You must be signed in to change notification settings - Fork 198
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
kie-issues#1669: jBPM Quarkus DevUI seems to not update the # of items #2814
Conversation
…ols into kie-issues#1669
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.
@bncriju great work! I cannot get the counts initialized to 0
the first time I open Dev UI for first time (they stay as -
). Would you mind taking a look?
case "JobEvent": | ||
maybeRun(onJobEvent); | ||
break; | ||
default: |
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.
maybe we can get rid of the default
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.
Done
} | ||
|
||
public void refresh() { | ||
vertx.setTimer(500, id -> { |
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.
This timer looks like to short, in slow laptops (like main) this may not work, but I think we can go with it for 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.
Done and adjusted to 1000 instead of 500
Thanks for the comments @pefernan. Still cannot get the counts initialized to 0 the first time I open Dev UI for first time (they stay as -), but this works fine as expected when we open process-compact-architecture. |
…d Expression Editor (apache#2681) Co-authored-by: Luiz João Motta <[email protected]>
…les/kie-sandbox-commit-message-validation-service (apache#2812)
…n e2e tests (apache#2818) Signed-off-by: Ricardo Zanini <[email protected]>
…omatic change of platform images based on env context (apache#2794) Signed-off-by: Ricardo Zanini <[email protected]> Signed-off-by: Ricardo Zanini <[email protected]>
…eId each timer belongs to (apache#2820) Co-authored-by: Pere Fernández <[email protected]>
Done all the changes, and could you have a review once again |
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.
@bncriju great work, I'd just clean up a bit the logs to avoid printing info on every count refresh and that would be all.
} | ||
|
||
private void refreshCount() { | ||
LOGGER.info("Refreshing data for query: {}", query); |
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.
@bncriju I'd change this to debug
to have the logs a bit more clean
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.
Done
...quarkus-devui-runtime/src/main/java/org/jbpm/quarkus/devui/runtime/rpc/DataIndexCounter.java
Outdated
Show resolved
Hide resolved
Good job, @bncriju ! I just found some minor issues in the jbpm-dev-ui:
I don't know if this is an issue, but I think it doesn't looks correct. It can be an issue related to filters in tasks either. I'm not sure. What do you think @pefernan ? |
@danielzhe yes, issue 1 is something I already found. Looks like the new subscriptions added to the counter Multi aren't updated with the new values.. I provided @bncriju a PR with a fix (bncriju#2) Regarding 2.. yes, that's a filter thing, we are currently showing the count of all elements (process instances, tasks or jobs) indexed in data-index. When we first created we wanted to show a snapshot of what was present on the system, but we can definitelly change it. In the end I think that it's just matter of deciding what we want to display there, I don't have a strong opinion. |
- Adding `MultiCacheOp` to automatically replying emitted data to new subscribers
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.
great job @bncriju! I think we have it :D
…ols into kie-issues#1669
thanks Pere and Daniel for all the inputs and suggestions on this. now, in good position to merge seeing the ci build status. |
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.
Great job!
Merging, the failing 'CI :: License headers' is unrelated and already fixed. |
The wrong behavior is rectified by making the Process Instances, Tasks and Jobs to get dynamically updated, as and when user defines a process instance.
Closes apache/incubator-kie-issues#1669
Please note that earlier pull request got auto closed while renamed the branch name to match the correct kie-issue and the comments in the previous pull request are already incorporated in this one.