-
Notifications
You must be signed in to change notification settings - Fork 13
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
Make sure users enter correct city when creating ads #107
Conversation
(Rubocop issues)
(loading them statiacaly made browser unresponsive after clicking few times on it)
I've copied production database to review app on https://potres-features-filter--ovc3gb.herokuapp.com. It seems to me that data is ok but not sure why the select2 plugin is not working (no JS errors)? @mmorava @vfonic @radanskoric @shime @berislavbabic @Xenosb @Macxim Any ideas what could be wrong? UPDATE: forgot to say that locally everything works ok for me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is still failing on the first city it cannot find in the db (in my case it failed so many times on "Krizevci"
. Perhaps we should add it to the cities_mapping.yml
?
We should also get rid of NormalizeCityName
that's no longer in use as well as cities_mapping.yml
and ads.rake
which calls cities_mapping.yml
and will no longer be relevant after this PR.
EDIT: Nevermind, my seed data had Krizevci: city: %w[Slatina Neum Makarska Varaždin Varazdin Bibinje Zagreb Križevci Krizevci].sample,
Glad to hear everything works well with live site data.
@vlado I'll have a look now |
c8c252e
to
fcdbfd9
Compare
@vlado this should be ready for review: https://potres-features-filter--ovc3gb.herokuapp.com/ Here's the list of changes I've made:
EDIT: Nevermind, there IS a city of Sibenik in Bjelovarsko-bilogorska apparently. |
…county-and-city # Conflicts: # app/controllers/ads_controller.rb # app/models/ad.rb # app/views/ads/new.html.erb # config/routes.rb # db/schema.rb
@vlado please have a look. I believe this is ready to be merged. |
@vlado I take that back. :) One sec. I'm fixing some issue. |
@vlado all good. We should be able to deploy this to live site now. |
@vfonic looks perfect I'll deploy later tonight.
|
This is a follow up on #102
@mmorava I tested your changes with production data locally and I had to make some changes. I think that it is almost ready for merge (see below for the only issue I've found). Notable changes that I made: