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

Glean prep: moves data transformation to transform-data.js; utilizes config files for mappings #725

Merged
merged 9 commits into from
Jul 23, 2020

Conversation

hamilton
Copy link
Contributor

@hamilton hamilton commented Jul 13, 2020

closes #723, closes #688, closes #287, work toward #689

completely rewrites how we're handling data; transform-data.js now has a simple pipeline function that replaces similar functionality in probe-utils.

Adds in a Fenix config file that has the dimension selector information. This won't be functional until we change the state instantiation approach + add a product selector + search.

@hamilton hamilton changed the title moves data transformation to transform-data.js; utilizes config files for mappings Glean prep: moves data transformation to transform-data.js; utilizes config files for mappings Jul 13, 2020
src/utils/probe-utils.js Outdated Show resolved Hide resolved
src/utils/transform-data.js Outdated Show resolved Hide resolved
src/utils/transform-data.js Outdated Show resolved Hide resolved
@hamilton hamilton marked this pull request as ready for review July 14, 2020 15:02
}));
formatted.sort((a, b) => {
if (a.key > b.key) return -1;
if (a.key <= b.key) return 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

We can use < here since we return 0 otherwise.

@openjck
Copy link
Contributor

openjck commented Jul 23, 2020

r+ 🎉

@hamilton hamilton merged commit 4e2a2a8 into main Jul 23, 2020
@hamilton hamilton moved this from To do to Done in Fenix MVP work stream Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
2 participants