-
Notifications
You must be signed in to change notification settings - Fork 306
Feature/allow changing of fixed rate price #399
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
Feature/allow changing of fixed rate price #399
Conversation
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/oceanprotocol/market/D5tH3yhSwJM3WaTvwQDWx35GaAGt |
|
This might be the first field where we need some activate/deactivate UI pattern. Because right now, we always save all fields when user hits submit. This was fine so far because we populate with existing values, and metadata updating is one transaction anyway. Price editing introduces another transaction but we can't have 2 transactions when user did not intend to change the price. Same the other way around, user only wants to change price so there should be no metadata editing transaction. So once we find a UI for selecting fields to edit, we can use it on all fields so users will be able to selectively change what they want, and based on selections we figure out which exact transactions to send. |
|
If you do a quick price fetch before you will get the exchangeId in |
Can't we do those checks in the edit method so we don't have to change the UI? |
|
Then for the last argument in |
That could also work, would imply checking every input value against existing DDO values, and then go from there to only update what has been changed by user |
|
In my case |
|
then we might have found a bug somewhere across the stack but requires more testing, I mean it's probably the first time that ocean.js method is used. Feel free to push any code change you have already so everybody has same testing base |
|
so the error in the image (invalid exchange owner) you get after calling setRate? |
|
Yes, interestingly It worked with the wrong |
|
It seems that something doesn't work in ocean.js. Suggest you drop it, i'll take a look |
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
|
One issue is with the new price component. If we have |
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
|
The price is being updated , the issue is that aqua is not updating it. Issue created oceanprotocol/aquarius#403 |
|
Oh, my bad, was trying to update the price on dataset with dynamic price. |
|
Yes, please add that |
|
Disabled the price input for dataset with |
|
|
Hmm, I only have to confirm 2 transactions when changing the price and 1 when not. |
|
ok, 2 transactions it is indeed. Either I can't count or this switching between 10 different market versions in my browser leads to unexpected results. Should be all perfect now. Immediately had this question regarding user transparency and since |
kremalicious
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome, all good. Pending decision to merge in Slack






Fixes #330.
Changes proposed in this PR: