-
Notifications
You must be signed in to change notification settings - Fork 302
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
bump ocean.js v0.16.2, ocean.assets.isConsumable implementation to disable buy button and display relevant message #463
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/oceanprotocol/market/Ee78XrvMKfCnrNEJkYAK8BQX7pYn |
@mihaisc @alexcos20 is |
i think |
I would go towards: isDisabled & isRetired. I will open a PR on oep |
…/market into feature/issues-452
what happened here? The PR tries to revert |
To not change all flows I would go with whatever we have as established pattern right now to keep it consistent which would be disabled button. Ideally if we have disabled buttons then the label of the disabled button should say why it's disabled (so in this case here we wouldn't need a dedicated "Unavailable" element, the button can just say that) but we don't need to solve this in here |
* accountId from useWeb3() returning lower case on switching metamask account
commit c6c5021 Merge: 1c4ba14 1ceb0f6 Author: Bogdan Fazakas <bogdan.fazakas@gmail.com> Date: Fri Jul 2 13:22:29 2021 +0300 Merge pull request #517 from oceanprotocol/issue510-match-providers-algo-dataset Match dataset providers with private algorithms providers commit 1c4ba14 Author: Kris Liew <39853992+krisliew@users.noreply.github.com> Date: Thu Jul 1 14:52:10 2021 +0800 Edit Advance Settings (updateMetadata() v3 workaround solution for free pricing) (#692) * v3 update metadata workaround commit 1ceb0f6 Author: Bogdan Fazakas <bogdan.fazakas@gmail.com> Date: Tue Jun 29 09:37:12 2021 +0300 fixed lint errors commit 127d31d Author: Bogdan Fazakas <bogdan.fazakas@gmail.com> Date: Tue Jun 29 09:20:35 2021 +0300 fixed issues after merge of main branch commit b0356f5 Merge: 0d1534d c81a986 Author: Bogdan Fazakas <bogdan.fazakas@gmail.com> Date: Tue Jun 29 00:08:45 2021 +0300 Merge branch 'main' into issue510-match-providers-algo-dataset commit 0d1534d Author: Bogdan Fazakas <bogdan.fazakas@gmail.com> Date: Thu Apr 15 10:55:58 2021 +0300 check ddo provider for assets in edit compute commit 1beb33d Author: Bogdan Fazakas <bogdan.fazakas@gmail.com> Date: Wed Apr 14 20:11:29 2021 +0300 check ddo provider for algo list in start compute
Code Climate has analyzed commit 9b86387 and detected 2 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
It seems to work well to me. As far as I can tell the issues mentioned above seem to have been fixed |
Fixes #452 and #685
Changes proposed in this PR:
datePublished
as''
insrc/utils/metadata.ts
forvalidate-remote
buy
button iffalse
is returned with relevant message belowbuy
button.src/components/molecules/FormFields/Credential/index.tsx
to convert all address to lowercase forallow
anddeny
list becauseaccountId
fromuseWeb3()
have case sensitive issue. (Returning all lowercase on change metamask account)To save your time on testing this PR, you may use the following DID to test 😄 (Rinkeby network)
Download test isOrderDisabled=true
https://market-3628a6svt-oceanprotocol.vercel.app/asset/did:op:d1Dae50a32f613B282BFCcb50fE33Bf987514882
Compute test isOrderDisabled=true
https://market-3628a6svt-oceanprotocol.vercel.app/asset/did:op:940F4d33C1886C050c5601ED6bd7F51d9084Cc16
Compute test isOrderDisabled=false
https://market-3628a6svt-oceanprotocol.vercel.app/asset/did:op:6A41c8f617686B4Dff27c8A3ee5ECc4f175cb8a4
Compute test allow list:
https://market-3628a6svt-oceanprotocol.vercel.app/asset/did:op:01530feD6aE9CFbfA602e05Ef51C447e8C145F1C
Algo test allow list:
https://market-3628a6svt-oceanprotocol.vercel.app/asset/did:op:CFD8E0a3188A0ED6665929e29e3716e3C2B50df8
Algo test deny list:
https://market-3628a6svt-oceanprotocol.vercel.app/asset/did:op:5DA103145F09FEf6C60d65A9c7033A1b0458B26a