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

Remove edit button for BSQ offers #6679

Merged

Conversation

napoly
Copy link
Contributor

@napoly napoly commented May 6, 2023

Fixes #6668

We use a simple 'if' check to determine if our offer is for a BSQ swap. If it is, we do not show the button for editing.

@napoly napoly force-pushed the fix_hide_edit_button_bsq_offer branch from a09b3e0 to fc42044 Compare May 6, 2023 18:07
Copy link
Contributor

@HenrikJannsen HenrikJannsen left a comment

Choose a reason for hiding this comment

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

NACK
As far I remember the edit button worked for BSQ offers as @pazza83 commented in #6668 (comment). We should figure out what caused it to not work anymore.

@napoly
Copy link
Contributor Author

napoly commented May 9, 2023

I did some digging since I'm new to the code base, and it appears that the functionality is not available. This is supported by the fact that it was removed from even the open offers, as shown here: https://github.com/bisq-network/bisq/blob/master/desktop/src/main/java/bisq/desktop/main/portfolio/openoffer/OpenOffersView.java#L1007

Copy link
Contributor

@alvasw alvasw left a comment

Choose a reason for hiding this comment

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

NACK
After further debugging, I can confirm that the edit BSQ offer functionality is present.

When I press the edit button on a BSQ offer first it opens the edit tab:
bisq_bsq_edit

However, there are several bugs:

  • Pressing to fast on the edit button trigger a java.util.ConcurrentModificationException exception
  • Pressing the edit button on an BSQ offer breaks other offers edit buttons
  • Sometimes the edit button doesn't even open the edit tab

@ghost
Copy link

ghost commented Jun 30, 2023

This bug needs to get fixed, and @napoly has done correctly what was requested/required.

I will second what @ripcurlx said in #6668 (comment) that there is no edit of BSQ swap offers and the best thing would be to remove the edit button for BSQ offers, as implemented above. The screenshot Alva produced is the edit dialog for original (multisig) offers which is incompatible with BSQ swaps. There's not much sense trying to adapt it for BSQ swaps, as the offer UI code is complex / fragile / sensitive to change.

@alvasw
Copy link
Contributor

alvasw commented Jul 1, 2023

@jmacxx You are totally right!! Sorry.

Copy link
Contributor

@alejandrogarcia83 alejandrogarcia83 left a comment

Choose a reason for hiding this comment

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

utACK

@alejandrogarcia83 alejandrogarcia83 merged commit 3233996 into bisq-network:master Jul 1, 2023
13 checks passed
@alejandrogarcia83 alejandrogarcia83 added this to the v1.9.13 milestone Jul 1, 2023
@napoly napoly deleted the fix_hide_edit_button_bsq_offer branch July 2, 2023 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Edit button/pen symbol stops working for altcoin offers requiring restart
5 participants