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 minitest hooks and make seeding fast #113

Merged
merged 4 commits into from
Mar 21, 2024
Merged

Add minitest hooks and make seeding fast #113

merged 4 commits into from
Mar 21, 2024

Conversation

elsom25
Copy link
Collaborator

@elsom25 elsom25 commented Mar 21, 2024

More robust testing, but more importantly changes seeding from ~50s to ~2s

@elsom25 elsom25 merged commit e6c91b5 into main Mar 21, 2024
3 checks passed
@elsom25 elsom25 deleted the add-minitest-hooks branch March 21, 2024 17:31
Comment on lines +11 to +17
has_and_belongs_to_many :properties,
join_table: :categories_properties,
foreign_key: :category_id,
association_foreign_key: :property_friendly_id
def property_friendly_ids=(ids)
self.properties = Property.where(friendly_id: ids)
end
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this relationship is set up correctly. When I tried running it on your branch, the attributes array is empty for all the categories in categories.json

Copy link
Contributor

Choose a reason for hiding this comment

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

I imagine the other relationships will have similar issue, that's just the one I checked

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