Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Fix order search in different networks #132

Merged
merged 6 commits into from
Jun 29, 2022

Conversation

ramirotw
Copy link
Contributor

@ramirotw ramirotw commented Jun 21, 2022

Summary

Close #130
Close #138

To Test

  1. Copy an orderID from Rinkeby
  2. Switch to Gnosis chain
  3. Navigate to the Home page
  4. Search for the copied order

@ramirotw ramirotw requested a review from elena-zh June 21, 2022 21:55
@github-actions
Copy link

@coveralls
Copy link

coveralls commented Jun 22, 2022

Pull Request Test Coverage Report for Build 2538512083

Warning: This coverage report may be inaccurate.

We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
To ensure accuracy in future PRs, please see these guidelines.
A quick fix for this PR: rebase it; your next report should be accurate.

  • 8 of 11 (72.73%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.004%) to 43.876%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/services/helpers/tryGetOrderOnAllNetworks.ts 8 11 72.73%
Totals Coverage Status
Change from base Build 2511347940: 0.004%
Covered Lines: 2164
Relevant Lines: 4181

💛 - Coveralls

@ramirotw
Copy link
Contributor Author

@elena-zh re-posting here your feedback from #130 (comment)

Hey @ramirotw , great changes!
However, I have noticed, that order TxHash does not appear when open a transaction for the 1st time using search in a different network. See the video: https://watch.screencastify.com/v/nuo4Q7xONKJ608sQ1UTj (the issue itself starts from 25s on the video)
Could you please take a look into this issue?

@elena-zh
Copy link

seems that the fix was reverted
image

Copy link
Contributor

@matextrem matextrem left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@henrypalacios
Copy link
Contributor

It does not work for me!

When I search on GC the tx 0x5dd8cab9849abc9ff04230d3c7432fa9206fd5b47fd5cb704bc04775f4ec65a2b638eda8c10005cb456b1913ad60a8f3d6a927146144b0ea I got 👇
Selection_583

It's a valid order on mainnet

@ramirotw ramirotw changed the base branch from develop to release/2.9.0 June 24, 2022 13:56
Copy link

@elena-zh elena-zh left a comment

Choose a reason for hiding this comment

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

Hey @ramirotw , I can't load a TX details page when I search for Rinkeby transaction in Ethereum. See the video: https://watch.screencastify.com/v/DRq2z7sKeGORMI8qYDeT

cant load

Refreshing the page helps, though.

Could you please take a look at it?

Here were my steps:

  1. Open user details in Rinkeby
  2. Copy an order ID from the list
  3. Open Home page in Ethereum
  4. Search for a copied order ID

@ramirotw
Copy link
Contributor Author

Hey @ramirotw , I can't load a TX details page when I search for Rinkeby transaction in Ethereum. See the video: https://watch.screencastify.com/v/DRq2z7sKeGORMI8qYDeT

This was caused by the hook that fetches the tokens. The tokens fetch was triggered while still on the mainnet and set a loading flag to true, but when on rinkeby it didn't re-run, so it stayed on loading indefinitely.

@elena-zh
Copy link

elena-zh commented Jun 28, 2022

Hey @ramirotw !
The issue is partially fixed, as search for:

  • Rinkeby orderID in GC- works fine
  • Mainnet orderID in GC - works fine
  • GC orderID in Rinkeby - works fine.
    BUT search for
  • GC orderID in Mainnet - not working
  • Rinkeby orderID in Mainnet- not working
  • Mainnet orderID in Rinkeby - not working
    See the video: https://watch.screencastify.com/v/LAveDbxnR9O13dOGmDnh

Besides, I have found a strange issue with orders list pagination in this Pr: https://watch.screencastify.com/v/YSoUCU7TRfQcyJ0yElph

Thanks!

@elena-zh
Copy link

elena-zh commented Jun 28, 2022

@ramirotw , search for orders IDs look good to me now!

However, amounts for TX details are not loaded in this PR when search for transactions from different networks. Could you please take a look at it, as the issue is not reproducible in #137
image

@elena-zh
Copy link

@ramirotw , search for orders IDs look good to me now!

However, amounts for TX details are not loaded in this PR when search for transactions from different networks. Could you please take a look at it, as the issue is not reproducible in #137 image

Steps to reproduce it:

  1. Copy a Tx hash of a filled order in Gnosis chain
  2. Open Home page in Ethereum
  3. Paste the copied TxHash from GC into the search field and search for it.

AR: Tx details page is opened, but amounts are not loaded

@ramirotw ramirotw force-pushed the ramirotw/issue-130-search-orderid branch from 3f190b3 to a352180 Compare June 28, 2022 21:45
@ramirotw
Copy link
Contributor Author

@elena-zh please re-test

@elena-zh
Copy link

@ramirotw , order search does not work at all (order from a different network)
image

Transaction search, pagination LGTM!

@ramirotw
Copy link
Contributor Author

@ramirotw , order search does not work at all (order from a different network)

A commit didn't apply while rebasing 🤦‍♂️, my bad sorry

@elena-zh
Copy link

@ramirotw , changes LGTM now!

@ramirotw ramirotw merged commit 1afd37e into release/2.9.0 Jun 29, 2022
@ramirotw ramirotw deleted the ramirotw/issue-130-search-orderid branch June 29, 2022 10:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Search for an order in different network does not work
6 participants