Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

device filtering persist site-wide, don't persist between session (bug 1127080) #1057

Merged
merged 1 commit into from Mar 9, 2015

Conversation

ngokevin
Copy link
Contributor

@ngokevin ngokevin commented Mar 5, 2015

This was planned for the New Nav Project, but I'm doing this now so I can start UA tracking engagement with the device filter dropdown.

  • Remove the page groups in compatibility filtering
  • Strips out storage from compatibility filtering since we don't need to persist between sessions.
  • Remove device_override
  • Calculate the dropdown choices in JS rather than template
  • Merge compatibility_filtering_select.js into compat_filter.js
  • Have compat_filter unit test be more programmatic and shorter
  • Make separate compat_filter.js test suite, move it from app_list.js tests
  • Some cleaning and refactoring of compat_filter.js
  • s/compatibility_filtering/compat_filter/g

@ngokevin ngokevin changed the title device filtering persist site-wide, don't persist between session (bug 1127080) [WIP] device filtering persist site-wide, don't persist between session (bug 1127080) Mar 5, 2015
@ngokevin ngokevin force-pushed the compatglobal branch 2 times, most recently from f45546d to 68dabd1 Compare March 6, 2015 00:58
@ngokevin ngokevin changed the title [WIP] device filtering persist site-wide, don't persist between session (bug 1127080) device filtering persist site-wide, don't persist between session (bug 1127080) Mar 6, 2015
@ngokevin
Copy link
Contributor Author

ngokevin commented Mar 6, 2015

@diox r?

Also, do we need device_override?

@ngokevin ngokevin force-pushed the compatglobal branch 2 times, most recently from 04a718c to 2080dac Compare March 6, 2015 02:33
@diox
Copy link
Member

diox commented Mar 6, 2015

I think we can remove device_override. It was added for discoplace, which no longer exists.

var filterDevice = caps.device_type();

z.body.on('change', '#compat-filter', function() {
// Update stored preferences and reload view to refresh changes.
Copy link
Member

Choose a reason for hiding this comment

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

nit : do we want to keep the "stored" wording when we no longer store the pref in localStorage?

@diox
Copy link
Member

diox commented Mar 6, 2015

Uh, weird test failures.

@ngokevin ngokevin force-pushed the compatglobal branch 4 times, most recently from 6077af8 to 01648d5 Compare March 6, 2015 20:04
@ngokevin
Copy link
Contributor Author

ngokevin commented Mar 6, 2015

tests passing

@ngokevin
Copy link
Contributor Author

ngokevin commented Mar 9, 2015

Going to merge so I can add tracking on top of it, lmk if you see anything else.

ngokevin added a commit that referenced this pull request Mar 9, 2015
device filtering persist site-wide, don't persist between session (bug 1127080)
@ngokevin ngokevin merged commit 6b06a98 into mozilla:master Mar 9, 2015
@diox
Copy link
Member

diox commented Mar 9, 2015

oops yes sorry for the lack of reply, I thought it was merged already.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants