Skip to content

Commit

Permalink
Default to day granularity for charts on thematic pages
Browse files Browse the repository at this point in the history
  • Loading branch information
majakomel committed Feb 15, 2023
1 parent bad54ab commit 0541f87
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions components/country/Apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@ const ChartsContainer = () => {
probe_cc: countryCode,
since,
until,
time_grain: 'day',
}), [countryCode, since, until])

const queryCircumventionTools = useMemo(() => ({
axis_x: 'measurement_start_day',
probe_cc: countryCode,
since,
until,
time_grain: 'day',
}), [countryCode, since, until])

return (
Expand Down
1 change: 1 addition & 0 deletions components/country/Websites.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const WebsitesSection = ({ countryCode }) => {
since,
until,
test_name: 'web_connectivity',
time_grain: 'day',
}), [countryCode, since, until])

return (
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/mat.e2e.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('MAT Tests', () => {

describe('MAT Basics', () => {
before(() => {
cy.visit('http://localhost:3100/chart/mat?test_name=web_connectivity&since=2022-03-01&until=2022-04-01&axis_x=measurement_start_day')
cy.visit('http://localhost:3100/chart/mat?test_name=web_connectivity&since=2022-03-01&until=2022-04-01&axis_x=measurement_start_day&time_grain=day')
})

it('it loads', () => {
Expand Down
3 changes: 3 additions & 0 deletions pages/network/[asn].js
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,23 @@ const ChartsContainer = () => {
since,
until,
test_name: 'web_connectivity',
time_grain: 'day',
}), [asn, since, until])

const queryMessagingApps = useMemo(() => ({
axis_x: 'measurement_start_day',
asn,
since,
until,
time_grain: 'day',
}), [asn, since, until])

const queryCircumventionTools = useMemo(() => ({
axis_x: 'measurement_start_day',
asn,
since,
until,
time_grain: 'day',
}), [asn, since, until])

return (
Expand Down

1 comment on commit 0541f87

@vercel
Copy link

@vercel vercel bot commented on 0541f87 Feb 15, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

explorer – ./

explorer-git-master-ooni1.vercel.app
explorer-one.vercel.app
explorer-ooni1.vercel.app

Please sign in to comment.