-
Notifications
You must be signed in to change notification settings - Fork 1
Added a selling price for selling items votings #624
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
Added a selling price for selling items votings #624
Conversation
…param. Fix the relevant tests
…he sell API call request
MikhailDeriabin
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.
Good job
|
Doesn't this cause an issue where users can change the item price with this endpoint? You could start the voting with new price of 999999 and that will be updated as item price no matter the outcome of the voting and since the old value is replaced with the new one it can't be changed back. Also like I asked earlier in ossue comments why is this price field even necessary? Why isn't the item sold at the price that is already present for all items. And the price changing would be handled with the change item price voting? |
|
There is a need to set the price for a flea market in this voting, mostly for convenience and that the right price from the beginning. If you set the price later with another voting, it will take some time and in theory item can be bought cheaper by someone. There can be a price voting as well sure. You are right, actually the price can be set for any item. I have a look on how to fix it |
|
I mean you could vote on the price before you put the item on sale for fleamarket |
It was requested by the game UI team to have it that way. On the second thought, it is actually not possible to set any price for any flea market item via this endpoint. There are multiple places where it will fail to be updated.
Does it make sense or I have missed something? |
|
HandleSellItem line 159 calls the update function with dto price field. This updates the price when voting starts. If the voting fails the price would still be the updated value pthers didnt agree on. The item doesnt go on sale to fleamarket but the price would still get updated. Since the failes voting calls handleRejectedSellVoting that creates item based on fm item from voting |
|
Ok, I see now. It is fine to have any price in the flea market. It is up to clan members, but problems can happen when the price of item in the stock can be set by the members. How about changing the |
|
That works but if there is a changed price already from passed voting that would then get overwritten. Maybe the fleamarket item voting schema could hold a sell price value that is used for successful votings? |
|
Ok, probably it is the most straight forward way. I do it now then |
Brief description
Add price for selling item voting
Change list