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

bug #4921 - adds a workaround for the conflicting bugs #4876 and #4755 #4924

Merged
merged 1 commit into from
Jun 25, 2018

Conversation

goranjovic
Copy link
Contributor

@goranjovic goranjovic commented Jun 25, 2018

fixes #4921

Summary:

We've got two bugfixes causing each other's bugs.

If we clear :from-chat? from transaction, then we lose the read only state in chat transactions when user clicks cancel or say tries to sign with incorrect password. (bug #4755)

If we don't clear :from-chat? then if we have a dapp transaction before wallet onboarding has been done, then app will think that there is a chat tx in progress and will redirect to onboarding. Since there is no chat tx the app will crash (bug #4876)

This PR adds a workaround to have a special partial clean function for transactions started from chat - one that cleans everything except :from-chat? property. This will prevent the fields from getting unlocked and would not cause the onboarding crash since with chat transactions onboarding should happen before we get to this screen anyway (there is interception).

This is merely a hotfix. A proper solution would involve:

Steps to test:

test for #4876 and #4755

status: ready

Copy link
Contributor

@jeluard jeluard left a comment

Choose a reason for hiding this comment

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

Could you create an issue to track this today? Sounds like this is some area we want to clean sooner than later.

@goranjovic goranjovic self-assigned this Jun 25, 2018
@goranjovic goranjovic added this to the Beta milestone Jun 25, 2018
@status-comment-bot
Copy link

status-comment-bot commented Jun 25, 2018

@statustestbot
Copy link

94% of end-end tests have passed

Total executed tests: 33
Failed tests: 2
Passed tests: 31

Failed tests (2)

Click to expand
1. test_resend_message_offline

Looking for full text: 'test message'
Wait for ChatElementByText

E Failed: Progress indicator is shown during 17.29950891714543 seconds

Device sessions:

2. test_sign_message_from_daap

Looking for StatusTestDAppButton
Looking for StatusTestDAppButton

E AttributeError: 'NoneType' object has no attribute 'click'

Device sessions:

Passed tests (31)

Click to expand
1. test_sign_transaction_twice
Device sessions:

2. test_swipe_and_delete_1_1_chat
Device sessions:

3. test_one_to_one_chat_messages
Device sessions:

4. test_copy_and_paste_messages
Device sessions:

5. test_send_transaction_from_daap
Device sessions:

6. test_faucet_console_command
Device sessions:

7. test_username_and_profile_picture_in_chats
Device sessions:

8. test_send_eth_from_wallet_sign_now
Device sessions:

9. test_offline_login
Device sessions:

10. test_open_transaction_on_etherscan
Device sessions:

11. test_send_eth_to_request_from_wallet
Device sessions:

12. test_incorrect_password
Device sessions:

13. test_backup_seed_phrase_and_recover_account
Device sessions:

14. test_offline_messaging_1_1_chat
Device sessions:

15. test_contact_profile_view
Device sessions:

16. test_public_chat
Device sessions:

17. test_public_chat_management
Device sessions:

18. test_network_switch
Device sessions:

19. test_delete_1_1_chat
Device sessions:

20. test_messaging_in_different_networks
Device sessions:

21. test_wallet_error_messages
Device sessions:

22. test_transaction_send_command_one_to_one_chat
Device sessions:

23. test_network_mismatch_for_send_request_commands
Device sessions:

24. test_browse_link_entering_url_in_dapp_view
Device sessions:

25. test_transaction_send_command_wrong_password
Device sessions:

26. test_send_eth_to_request_in_one_to_one_chat
Device sessions:

27. test_profile_picture
Device sessions:

28. test_switch_users
Device sessions:

29. test_set_up_wallet
Device sessions:

30. test_send_stt_from_wallet_via_enter_recipient_address
Device sessions:

31. test_qr_code_and_its_value
Device sessions:

@Serhy Serhy self-assigned this Jun 25, 2018
@Serhy
Copy link
Contributor

Serhy commented Jun 25, 2018

Looks good! Could not reproduce #4921 and #4876 and #4755 issues.
There is a similar issue to #4876 described in #4930 which is reproduced for me here as well.

Two failed autotest rechecked manually and they are OK, team notified to look at them.

@mandrigin
Copy link
Contributor

@Serhy okay, merging :)

@mandrigin mandrigin force-pushed the bug/unlocked-chat-send-fields-4921 branch from e414e03 to 9a34839 Compare June 25, 2018 10:53
@mandrigin mandrigin merged commit 9a34839 into develop Jun 25, 2018
@rasom rasom deleted the bug/unlocked-chat-send-fields-4921 branch June 26, 2018 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

It's possible to modify Recipient, Asset and Amount if cancel transaction signing for send command in 1:1 chat
8 participants