codeeu / coding-events

A Django app for adding EU Code Week events and showing them on a map.
http://events.codeweek.eu
MIT License
17 stars 36 forks source link

Even more search improvements - 2nd attempt :) #359

Closed sparkica closed 9 years ago

sparkica commented 9 years ago

Sorry about creating a second PR, but the first one was a mess. @gandalfar please take a look at this one.

coveralls commented 9 years ago

Coverage Status

Coverage increased (+0.05%) when pulling 7ff12f2184340d928ec075b77cb8ec9cf13818d2 on sparkica:fea_search_get2 into cbcd4ae290cbb7c41071d269643bea55f44ce330 on codeeu:master.

coveralls commented 9 years ago

Coverage Status

Coverage increased (+0.55%) when pulling dceef98a246f7dfc53874b71db4a46353cbbab50 on sparkica:fea_search_get2 into cbcd4ae290cbb7c41071d269643bea55f44ce330 on codeeu:master.

coveralls commented 9 years ago

Coverage Status

Coverage increased (+0.54%) when pulling dd1d4cc90283597bbbe65ccf70d1942912036d21 on sparkica:fea_search_get2 into cbcd4ae290cbb7c41071d269643bea55f44ce330 on codeeu:master.

ialja commented 9 years ago

Looking good, great job! :+1:

A few minor comments:

sparkica commented 9 years ago
ialja commented 9 years ago

We've already shared links with past=yes, so it might be better to keep it that way :)

jurecuhalev commented 9 years ago

I think it was something with serialization, but no problem @sparkica can easily change that constant.

sparkica commented 9 years ago

@gandalfar Not quite sure what you're asking. Take a look at the History repo, this is from their documentation:

So if I understand correctly, we don't need any extra JS code to handle hashbangs.

coveralls commented 9 years ago

Coverage Status

Coverage increased (+0.54%) when pulling 9317cb66d153e6d87b5bad8ef5014dc9a61db12a on sparkica:fea_search_get2 into cbcd4ae290cbb7c41071d269643bea55f44ce330 on codeeu:master.

jurecuhalev commented 9 years ago

@sparkica try this url in IE9: /search/#?q=&country=SI&past_events=on and you'll see that you don't get correct results because hashbang part of URL is not sent to server.

See detailed list of issues with hashbangs from their URL: https://github.com/browserstate/history.js/wiki/Intelligent-State-Handling

I would propose to drop html4 history rewriting support and either do full refresh of page url or not bother with history rewriting for old browsers.

sparkica commented 9 years ago

@gandalfar Thanks for clarification (I don't have access to IE9 right now), I'll will figure something out.

jurecuhalev commented 9 years ago

@sparkica download IE9 from https://www.modern.ie/en-us

sparkica commented 9 years ago

Working on it :+1: Did a little research.

coveralls commented 9 years ago

Coverage Status

Coverage increased (+0.54%) when pulling d8841cb5703e51c8aafd1a9a03142d69c534bbab on sparkica:fea_search_get2 into cbcd4ae290cbb7c41071d269643bea55f44ce330 on codeeu:master.

sparkica commented 9 years ago

@ialja I've replaced all the past='yes' values to past=on. When using GET and Django forms checkboxes, True is converted to 'on' and False to 'off' by default. This way we can avoid serialization issues.

coveralls commented 9 years ago

Coverage Status

Coverage increased (+0.73%) when pulling a85457b2a8908c9cf854fbfde5396fd22a0d2ef7 on sparkica:fea_search_get2 into cbcd4ae290cbb7c41071d269643bea55f44ce330 on codeeu:master.

coveralls commented 9 years ago

Coverage Status

Coverage increased (+1.13%) when pulling d40d9414159bc61162fd64985e3c898b19fa1556 on sparkica:fea_search_get2 into cbcd4ae290cbb7c41071d269643bea55f44ce330 on codeeu:master.

sparkica commented 9 years ago

Well... it seems we already have modernizr included, I'll use it then.

coveralls commented 9 years ago

Coverage Status

Coverage increased (+1.2%) when pulling 62e9fe137c0e55d90272cad0c2ffaeef1679b826 on sparkica:fea_search_get2 into cbcd4ae290cbb7c41071d269643bea55f44ce330 on codeeu:master.

coveralls commented 9 years ago

Coverage Status

Coverage increased (+1.2%) when pulling 62e9fe137c0e55d90272cad0c2ffaeef1679b826 on sparkica:fea_search_get2 into cbcd4ae290cbb7c41071d269643bea55f44ce330 on codeeu:master.

coveralls commented 9 years ago

Coverage Status

Coverage increased (+1.24%) when pulling 27782fd198d41dc61697a40f8f573fc081a77528 on sparkica:fea_search_get2 into cbcd4ae290cbb7c41071d269643bea55f44ce330 on codeeu:master.

goranche commented 9 years ago

this was reverted, because of bugs... please create a new PR (found issues will be written)