-
Notifications
You must be signed in to change notification settings - Fork 24
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 properties pieces into listings #1328
Comments
cc @seanmalbert |
@seanmalbert I have hit som problems when approaching migrating property to listing:
Assuming we want to create an adapter layer in v1 over a new model, how do I handle a case where a v1 client wants to create a property using What I proposed here would make this problem go away #1269 (comment)
In this specific case we keep the With that approach we do not have to do anything immediately. We can migrate partners portal, and public apps to v2 in any time we want, but we have to keep the old schema under the hood. The requirement for moving onto the new schema is: every client has migrated to v2. Also moving schema to v2 requires writing a migration script. @seanmalbert Let me know what do you think or if I'm missing something. |
@pbn4 , I think what you're proposing makes sense and is probably the quickest and cleanest pathway. I do have some new thoughts though, that I'd like to dump out and get your feedback on first: In this case, don't we have the advantage in that we're the only ones who use the property endpoints? Is it the case that partners and public only ever get properties via the listing service If that's not true, then you can stop reading here. If that is true, then we could get away with removing the property service/endpoints altogether (we would keep the entity for now). This would require an update to listings-importer (and looks like it'd make it more simple) and the largest change would be to the listing service. In the listing service, we could remove the
This would also require making the property/listing relationship not required. So if listing.property_id is not null then query the What I don't like about what I'm thinking is it's less clean in that it relies on a conditional and requires more separate queries, which may affect performance. What I like about it is that it makes less for us to maintain and the bulk of this new logic for the listing service could be handled in one function and added in to |
@dominikx96 If could take a look at changes in partners |
Capturing issues for back end work to move property fields to listings
Blocks #1315, #1317, #1319
The text was updated successfully, but these errors were encountered: