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

Auto-Refresh causes flickering of Message Flow #140

Closed
dannycohen opened this issue Dec 8, 2013 · 21 comments
Closed

Auto-Refresh causes flickering of Message Flow #140

dannycohen opened this issue Dec 8, 2013 · 21 comments
Assignees
Labels
Milestone

Comments

@dannycohen
Copy link

  1. When Auto-Refresh is turned on and message flow is displayed:
    1. a very noticeable flickering occurs (even when nothing has changed in the flow)
    2. When changing the zoom level or re-positioning the flow, the next refresh reverts to default zoom level / position.
      • I would argue that we need to maintain the user's zoom / position so that the user can focus easily on the requested part of the message flow diagram.

What do you think ?

// CC @joaquinjares

Tested on Particular.ServiceInsight-0.2.0-Unstable339

@ghost ghost assigned HEskandari Dec 8, 2013
@dannycohen
Copy link
Author

@HEskandari - I'd say this is relatively high prio; can you provide an estimate on options for fixing ?

@dannycohen
Copy link
Author

@HEskandari - Based on our conversation:

Options to check for avoiding flickering (in order of presumed priority / effectivness)

  1. Create a new flow in the Background and switch
  2. Do not update the screen when refreshing the
  3. Use animation instead of an outright change in order to make it less painful to the eye...

Regarding maintaining Zoom / Position - required, regardless of which option is taken on avoiding flickering.

@dannycohen
Copy link
Author

@HEskandari - Any response from Mindscape on this ?

@HEskandari
Copy link
Contributor

@dannycohen I'm trying a couple of things today, will keep you posted.

@dannycohen
Copy link
Author

@joaquinjares -
Although there is a nice improvement in flickering and display - there's a bug in the implementation of the flickering override -

  1. As discussed in Preserve Context Menu display on Auto-Refresh #173 (comment), there are several possible updates
  2. For example: status changes are not updated on list
  3. On refresh, the selected message is not "selected" in message properties / flow, so you do not get the expected display

//CC @HEskandari

@joj
Copy link
Contributor

joj commented Dec 18, 2013

I will test tomorrow with a live SC (meaning, retries and stuff). I think that I included status in the change list, but I might have overlooked it. If the flickering is acceptable, I think this is the right approach regardless.

@dannycohen
Copy link
Author

@HEskandari - please chime in on this since you were investigating this.

@joaquinjares - regarding the possible updates:
(see #173 (comment))
I'd consider any visible property (i.e. displayed in message list columns) as "can be changed", and also take into consideration the issue of order as a change.

Some flickering is acceptable and justified by a change in the underlying data. It is also worth it in order to compromise for complexity.

@joj
Copy link
Contributor

joj commented Dec 18, 2013

I undestood. I'm checking the current message, but that is not the only message visible, so problems. I have to check the whole conversation for changes. It should be fast enough anyway. A conversation will always have (I assume) less than 50 messages or so.

@dannycohen
Copy link
Author

A conversation will always have (I assume) less than 50 messages or so.

No, a conversation may span more than 50 msgs. Its easy to create such a conversation using SM. Ask Ezequiel.

What are you checking ?

@joj
Copy link
Contributor

joj commented Dec 18, 2013

Status, Time Sent, Processing Time, IsDeleted, count of messages in conversation.

@dannycohen
Copy link
Author

IsDeleted ?

also - sending+processing endpoint+machine, ProcessingStarted, ProcessingEnded

@joj
Copy link
Contributor

joj commented Dec 18, 2013

Can the endpoints change? IsDeleted is something that was there :)

@dannycohen
Copy link
Author

IsDeleted is something that was there :)

where ? do you mean IsDefered ?

Can the endpoints change?

On Retry, yes and likely in the near future.
Also - it may be the same message id sent to another endpoint.

@joj
Copy link
Contributor

joj commented Dec 18, 2013

Nope. IsDeleted. It's a property of StoredMessage. I don't know if it's actually used, but it's there.

@dannycohen
Copy link
Author

Does not make sense for Endpoint Explorer messages; May apply only to MSMQ messages. @HEskandari ?

@ghost ghost assigned joj Dec 19, 2013
@joj
Copy link
Contributor

joj commented Dec 19, 2013

Reassigned to me, to solve the pending issues.

@joj
Copy link
Contributor

joj commented Dec 19, 2013

Everything works correctly, except when there are changes. When something changes, I get a duplication of the diagram. I need to understand how the diagram gets created, to see where that is happening. @HEskandari, do you have some time to go over this?

@joj
Copy link
Contributor

joj commented Dec 19, 2013

On the other hand, I'm getting correct refresh when no changes and something happening when there are changes. Both of those are ok. I just need to figure out how to clear before updating when there are changes.

@HEskandari
Copy link
Contributor

@joaquinjares IsDeleted AFAIR should be part of MSMQ messages, which is set when a message that is loaded can not be found on a refresh. I believe with Queue explorer being phased out, this can be removed now since it is redundant (and along with it a few other bits and pieces like scratching the message on MessagesList if this flag is set, etc.) Ping me anytime on Skype if you think we need to talk.

HEskandari added a commit that referenced this issue Dec 24, 2013
@joj
Copy link
Contributor

joj commented Dec 26, 2013

Closed with @HEskandari's latest fix.

@joj joj closed this as completed Dec 26, 2013
@dannycohen
Copy link
Author

@joaquinjares / @HEskandari - So the fix is for Flickering, or faulty data display, or both ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants