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

Mediator UI shows closed state when mediation ticket isn't closed. #3731

Closed
julianknutsen opened this issue Dec 3, 2019 · 7 comments · Fixed by #3796
Closed

Mediator UI shows closed state when mediation ticket isn't closed. #3731

julianknutsen opened this issue Dec 3, 2019 · 7 comments · Fixed by #3796

Comments

@julianknutsen
Copy link
Contributor

julianknutsen commented Dec 3, 2019

Description

Mediator UI shows closed state when mediation isn't closed.

Version

c2e8806

Steps to reproduce

Working on a repro, but this is what I did...

  1. Start localnet cluser
  2. Have existing mediation case open
  3. Run Arbitration/Support Process 0030
  4. Start closing mediation tickets to move on to next test
  5. Only close Bob's mediation ticket for an issue
  6. See UI state that is asymmetrical (Mediator thinks all are closed, Alice sees ticket open)

Expected behaviour

Mediation ticket with required actions should show as OPEN and not be grey

Actual behaviour

Mediation ticket with required action shows CLOSED and is grey

Screenshots

mediator_ui_shows_closed

Device or machine

Ubuntu 19.10

Additional info

After reboot the mediation UI is correct
mediator_ui_shows_open_after_reboot

alice-bisq.log
bob-bisq.log
mediator-bisq.log

@chimp1984
Copy link
Contributor

The filtering of the list by the "open" predicate is not applied after closing a ticket but only at view activation (switch views or restart). It would require to refresh the list with the filter predicate after the close action.

@julianknutsen
Copy link
Contributor Author

It is more than just a filtering issue. Trade 67144 is in state Closed in the mediation UI, but OPEN on Alice.

@chimp1984
Copy link
Contributor

Oh... Does Alice have received the close message?

@ripcurlx
Copy link
Contributor

ripcurlx commented Dec 3, 2019

So it seems the dispute result message for Alice wasn't sent out or failed somehow else.

private void doClose(Button closeTicketButton) {
disputeResult.setLoserPublisher(isLoserPublisherCheckBox.isSelected());
disputeResult.setCloseDate(new Date());
dispute.setDisputeResult(disputeResult);
dispute.setIsClosed(true);
String text = Res.get("disputeSummaryWindow.close.msg",
DisplayUtils.formatDateTime(disputeResult.getCloseDate()),
formatter.formatCoinWithCode(disputeResult.getBuyerPayoutAmount()),
formatter.formatCoinWithCode(disputeResult.getSellerPayoutAmount()),
disputeResult.summaryNotesProperty().get());
if (dispute.getSupportType() == SupportType.MEDIATION) {
text += Res.get("disputeSummaryWindow.close.nextStepsForMediation");
} else if (dispute.getSupportType() == SupportType.REFUND) {
text += Res.get("disputeSummaryWindow.close.nextStepsForRefundAgentArbitration");
}
checkNotNull(getDisputeManager(dispute)).sendDisputeResultMessage(disputeResult, dispute, text);

As the closed state is set before sending the message it could be that the mediation case is closed, but the message isn't delivered (we properly should move the setting of the closed state only if onArrived or onStoredInMailbox was successful). What I don't get is that the mediation case is open again after a restart. It should be already queued up to be saved and I don't see any code part that could reset the property. It looks like storage of the dispute failed?

For the failed sending part: Did you see the ...arrived at peer... log statement in the mediator for Alice`s dispute closed message? Or do you see a ...failed: ...?

@julianknutsen
Copy link
Contributor Author

So, after a restart the Mediator sees the state as OPEN which is what I would have expected. I only closed Bob's ticket so it is probably a UI bug somewhere where it marked both rows as CLOSED even though only Alice's should have been CLOSED.

I've updated the description to make it more clear what actions I took.

@chimp1984
Copy link
Contributor

I only closed Bob's ticket so it is probably a UI bug

Yes I think there are some list item update bugs.

@ripcurlx
Copy link
Contributor

ripcurlx commented Dec 6, 2019

Yes, maybe it is some list item caching bug, so that the opacity property is not cleared properly.

ripcurlx added a commit to ripcurlx/bisq-desktop that referenced this issue Dec 16, 2019
This fixes update issues reported in bisq-network#3731.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants