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

Migrate multi listing submissions #624

Merged
merged 3 commits into from
Sep 21, 2020
Merged

Conversation

solebared
Copy link
Collaborator

@solebared solebared commented Aug 11, 2020

This got complicated when we started to consider sub-categories!

See af063ec for my attempt to deal with them. I'm not sure how well the code speaks for itself; happy to get on a call if that would be easier/better.

The one_time:split_listings rake task should be idempotent on repeated runs, though it will always have to pull and examine any listings with sub-categories (since the query looks for any listing with multiple tags). I formatted the puts output to be csv compatible with 3 columns:

  1. an indicator for visual scanning (# - listing being processed, - listing after processing, + newly created listings),
  2. the listing id (original or new),
  3. tag_list

Will definitely need some 👀 to verify my specs/logic and do some more testing.

@solebared solebared force-pushed the migrate-multi-listing-submissions branch from 378a3e1 to af063ec Compare August 11, 2020 12:44
@solebared
Copy link
Collaborator Author

solebared commented Aug 11, 2020

Force pushed with a simpler TagSplitter algorithm, see af063ec.

solebared and others added 3 commits September 2, 2020 18:49
Co-authored-by: Mae Beale <maebeale@users.noreply.github.com>
Co-authored-by: h-m-m <howard.m.miller@gmail.com>
Co-authored-by: exbinary <exbinary@gmail.com>
@solebared solebared force-pushed the migrate-multi-listing-submissions branch from af063ec to c0a8b34 Compare September 2, 2020 22:50
@solebared solebared changed the base branch from master to main September 2, 2020 23:43
@solebared solebared merged commit 176c94e into main Sep 21, 2020
@solebared solebared deleted the migrate-multi-listing-submissions branch September 21, 2020 22:09
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.

2 participants