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

Add serialization to Price cast #1251

Closed
wants to merge 2 commits into from
Closed

Conversation

glennjacobs
Copy link
Contributor

@glennjacobs glennjacobs commented Sep 15, 2023

Closes #1250

Currently, when converting a model to an array, Price objects will be in the array. Ideally, these should also be converted to arrays so that they can be indexed etc.

  • Add failing test
  • Implement serialization
  • Determine what to do with Livewire as it appears to be using the Arrayable data now

@vercel
Copy link

vercel bot commented Sep 15, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lunar-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 15, 2023 5:38pm

@glennjacobs glennjacobs marked this pull request as draft September 15, 2023 17:12
@glennjacobs glennjacobs changed the title Add serialization to Price type Add serialization to Price cast Sep 15, 2023
@glennjacobs
Copy link
Contributor Author

@alecritson I feel like this might cause too much chaos to Livewire projects. Do you think we solve the immediate issue by simply implementing more Scout indexers for the different models?

@glennjacobs
Copy link
Contributor Author

Not happy with this direction, too risky.

@glennjacobs glennjacobs deleted the hotfix/serialize-price-type branch September 15, 2023 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant