Skip to content
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

🧹🛠️ Marketplace: return only Marketplaces! #1423

Merged
merged 2 commits into from
May 4, 2023

Conversation

zspencer
Copy link
Member

There's something appealing about switching to Rails' built in Single Table Inheritance for Furniture, rather than our flyweight registry; but I also know that STI can be a bit of a smell...

Anyway, now when you call Marketplace.all and get only Marketplaces. Maybe someday we'll pull this up in to the Furniture classes responsibilities so we don't have to do it on every single piece of Furniture...

@zspencer zspencer added the 🧹 refactor Includes non-behavioral changes label Apr 30, 2023
@zspencer zspencer requested a review from a team April 30, 2023 18:44
@zspencer zspencer force-pushed the marketplace/filter-down-to-just-marketplaces branch from f1eb642 to d2ae68b Compare April 30, 2023 19:48
- #831
- #709

There's something appealing about switching to Rails' built in `Single
Table Inheritance` for `Furniture`, rather than our flyweight registry;
but I also know that STI can be a bit of a smell...

Anyway, now when you call `Marketplace.all` and get *only*
`Marketplace`s. Maybe someday we'll pull this up in to the `Furniture`
classes responsibilities so we don't have to do it on every single piece
of Furniture...
Copy link
Contributor

@KellyAH KellyAH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💎

@zspencer zspencer merged commit c335e73 into main May 4, 2023
@zspencer zspencer deleted the marketplace/filter-down-to-just-marketplaces branch May 4, 2023 00:21
@zspencer zspencer added the 🛠️ infrastructure ci, build, deploy, networking, etc. label May 6, 2023
@zspencer zspencer changed the title 🧹 Marketplace: return only Marketplaces! 🧹🛠️ Marketplace: return only Marketplaces! May 6, 2023
@zspencer zspencer added this to the 1.0 - Andromeda milestone May 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🛠️ infrastructure ci, build, deploy, networking, etc. 🧹 refactor Includes non-behavioral changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants