Skip to content

Feature request: Update the clan stock to include the furnitures that are set to be sold and/or set onto stall #841

@BillTheBeast

Description

@BillTheBeast

What do you want to see in the API?

Update the clan stock to include the furnitures that are set to be sold and/or set onto stall (Ie. are currently placed into the fleamarket)

How do you think this should work?

Currently the clans furniture are split into three groups:

  • Stock that contains most of the furniture clan has and can use.
    • These are fetched through the Stock endpoint.
  • Furniture that are approved for selling but aren't yet placed onto the stall.
    • These are fetched through the fleamarket endpoint.
      • The problem is that this endpoint contains all furniture in the fleamarket from every clan. This is mostly redundant now since all of the furniture in fleamarket should be fetched with the clans stalls. And also is liable to be clogged due to the number to furniture there would eventually be in this.
  • Furniture placed onto stalls.
    • These are fetched with the stalldata.

The second group is currently very problematic due to the things that I noted under it.

By deprecating the second group and moving it under allowing also the furniture that are tagged to be sold (as well as the furniture placed into stalls) also be available through the stock solves a lot of the issues here as that allows clients an easy access to all of the clans furniture regardless where they are.

  • Note: The furniture that are placed onto the stall should still also be available through the stall endpoint as this is how other clans would gain access to it.

The furniture currently has a "status" field that is mainly used to track the status of the furniture when it is approved to be sold. This could be expanded to also include a status for when the furniture is just "normally" in the stock. (InStock - enum). This would make it possible to differentiate if the furniture is being sold or not.

Any additional info?

The status field values are currently: "available", "shipping" and "booked".
There is lacking documentation on what each of these actually means. This should also be improved.

My personal understanding is that:
"available" = Tagged as to be sold but not on stall yet.
"shipping" = On stall waiting to be bought
"booked" = Another clan has reserved the furniture and are in a process of voting whether to buy the furniture.

But you should double check if this is how it actually works and document them properly.

Metadata

Metadata

Assignees

Labels

featureNew feature to add
No fields configured for Feature.

Projects

Status
Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions