Please add the offer system
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Read the catalog model around Product fields VendorId, Sku, StockQuantity and Price, then trace how IPricingService uses Product. Compare ProductAttributeCombination, OrderItem, Vendor, InventoryJournal and ShoppingCartItem to understand the proposed design. This issue asks whether shared-catalog offers are in scope and explicitly does not commit to implementation; done means maintainers decide whether one-product-one-vendor is a deliberate boundary.
Written by the indexing model from the issue text.
Description
Shared catalog: can multiple vendors sell the same product?
I evaluated GrandNode2 for a marketplace project and read through the catalog domain model. One question I couldn't settle from the code, so I'd rather ask than assume.
Observation
Product carries the seller, price and stock on a single document — VendorId (line 82), Sku (147), StockQuantity (335), Price (431) — and IPricingService takes Product as the price-bearing entity throughout. One catalog record therefore belongs to one vendor.
That supports a marketplace where each vendor owns their own listings. It doesn't support a shared catalog, where several vendors compete on the same record and the storefront selects a winning offer — Amazon's buy box, Google Shopping. Under the current model, two vendors selling the same title produce two products, two URLs and two sets of reviews.
What already exists
Several pieces are in place. ProductAttributeCombination already models SKU, price and stock as a unit hanging off a product; it simply doesn't carry a VendorId. OrderItem already has VendorId and Commission. Vendor already has the rating aggregates a ranking would need. InventoryJournal is already polymorphic over ObjectType.
The gap appears to be one entity — an Offer holding vendor, product, price, stock and status — plus a selection service, and an OfferId on ShoppingCartItem so the cart remembers which vendor the customer chose.
On compatibility
This could be additive. If an offer service synthesises an implicit offer from the product when no explicit ones exist, an installation with zero offer rows behaves exactly as it does today: no migration, no setting change, no rewrite.
Question
Is a shared-catalog marketplace in scope for GrandNode2, or is one-product-one-vendor a deliberate boundary? Either answer is useful — if it's out of scope, I'll close this.
Happy to expand on any of the above. I can't commit to implementing it, so please treat this as a design question rather than a proposal of work.
- Dominant language
- C#
- Stars
- 1.3k
- Forks
- 549
- Avg merge
- 8h 14m
- Merged PRs (30d)
- 53
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from grandnode/grandnode2
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 65/100
grandnode/grandnode2#881 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
grandnode/grandnode2#880 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 50/100
grandnode/grandnode2#499 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
grandnode/grandnode2#410 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
grandnode/grandnode2#396 ·
Maintainers usually reply within 1 day
All issues in grandnode/grandnode2
Similar issues
-
area:jobads-cv BE mvp P2
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
klasolsson81/jobbliggaren#2099 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
0 - Backlog Bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
BrighterCommand/Brighter#4581 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
Esri/calcite-dotnet-toolkit#30 · 1 reaction ·
-
kind:docs simplification size:S status:todo
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
elsa-workflows/elsa-foundation#2604 ·
Maintainers usually reply within 1 day