Commit Graph

121 Commits

Author SHA1 Message Date
Danny van Kooten c9c30557db add cron dependency 2017-01-06 15:58:00 +01:00
Danny van Kooten 4170e30274 Add test for calculatePointPercentages. 2016-12-26 11:43:50 +02:00
Danny van Kooten 57c2905efe Fix date format in tests for `fill` func. 2016-12-26 11:43:37 +02:00
Danny van Kooten 7be11887ad Calculate point percentages separately & query total of metric. 2016-12-25 18:47:11 +02:00
Danny van Kooten e5391e46b4 Run `count.Archive` command hourly so an external cronjob task is no necessity. 2016-12-25 18:27:39 +02:00
Danny van Kooten 3d93e03e13 When running `-archive_data` multiple times a day, recount current day & update previous archived values. 2016-12-25 18:24:53 +02:00
Danny van Kooten 4a7dcf9439 Instead of querying total, calculate it from row values instead. 2016-12-24 15:57:37 +02:00
Danny van Kooten fd598da502 Add timestamp to Pageview model in collect method. 2016-12-24 15:57:04 +02:00
Danny van Kooten 3a99939800 Store `last_archived` option after storing aggregated daily totals & use that when re-running `-archive_data` command. This speeds up the archive command considerably & allows for multiple runs a day. 2016-12-24 15:14:25 +02:00
Danny van Kooten 4454b044d4 Add DROP TABLE statements for new total tables. 2016-12-24 15:12:55 +02:00
Danny van Kooten 68ab7985c8 Add options table. 2016-12-24 15:12:17 +02:00
Danny van Kooten 68a7a0caa9 Add `count.RealtimeVisitors` func. 2016-12-24 15:12:01 +02:00
Danny van Kooten 7dc7dee2f4 Get rid of /api/countries endpoint for now. 2016-12-24 15:11:36 +02:00
Danny van Kooten cd8e3c3d9a Get total # of visitors in each individual metric count func. 2016-12-24 15:11:15 +02:00
Danny van Kooten 86efee462a Don't export login struct. 2016-12-24 15:09:24 +02:00
Danny van Kooten 1b107a55d5 Get rid of `archive` table & introduce `total_*` tables for each metric. 2016-12-24 13:07:33 +02:00
Danny van Kooten c07b220c2d Allow for `-port` CLI argument. 2016-12-24 11:00:29 +02:00
Danny van Kooten d8e074191f Update location hash when choosing time period & parse on component init. 2016-12-24 10:42:05 +02:00
Danny van Kooten ccc93b12e0 Decrease global font-size to 14px. 2016-12-24 10:27:43 +02:00
Danny van Kooten 524bc4f6bd Repeat date in Graph tooltip. 2016-12-24 10:27:29 +02:00
Danny van Kooten 42e3f2134b Account for empty dataset in Table component. 2016-12-24 10:12:20 +02:00
Danny van Kooten 9bd461f8d5 Add `.italic` util class. 2016-12-24 10:11:25 +02:00
Danny van Kooten 7be07970e7 Update roadmap file. 2016-12-24 10:11:11 +02:00
Danny van Kooten d2ff7ede53 Add archive logic for referrers. 2016-12-24 10:00:45 +02:00
Danny van Kooten 84bc9e6e99 Remove `count.CreateArchives` func since we never want to call that from anything other than CLI anyway. 2016-12-24 10:00:16 +02:00
Danny van Kooten f436d87d95 Add heads up about cronjob'ing `-archive_data` command. 2016-12-23 17:59:38 +02:00
Danny van Kooten 04521dfc60 Merge branch 'master' of https://github.com/dannyvankooten/ana
* 'master' of https://github.com/dannyvankooten/ana:
  Update README.md
2016-12-23 17:57:26 +02:00
Danny van Kooten 0156385be1 Add archive logic for browser names 2016-12-23 17:52:08 +02:00
Danny van Kooten 4dd16daa98 Add archive logic for browser languages 2016-12-23 17:39:55 +02:00
Danny van Kooten 04a8f09e5e Remove stray fmt.Print call from screens API endpoint 2016-12-23 17:38:57 +02:00
Danny van Kooten e7cca8ee72 Add archive logic for screen sizes 2016-12-23 16:49:23 +02:00
Danny van Kooten 7ac4569b7a Update Yarn lockfile. 2016-12-23 16:03:20 +02:00
Danny van Kooten 1d75102d5f Fix gometalinter issues throughout count package. 2016-12-23 16:03:11 +02:00
Danny van Kooten 0289ba8cfe Create `pages` table before adding foreign key restraint on `pageviews`. 2016-12-23 16:02:49 +02:00
Danny van Kooten a5dc049fb5 Merge pull request #5 from DennyLoko/patch-1
Update README.md, thanks @DennyLoko
2016-12-19 17:13:18 +02:00
Danniel Magno 3692ef1710 Update README.md
Fix #2
2016-12-19 10:10:33 -02:00
Danny van Kooten c9a02c1a65 list dotenv dependency in do task 2016-12-12 10:36:39 +01:00
Danny van Kooten 6b672c55b4 archive pageviews per page 2016-12-11 16:23:13 +01:00
Danny van Kooten 8ca48819d3 return error from db.SetupDatabaseConnection 2016-12-11 15:37:51 +01:00
Danny van Kooten 7104397afa add tests for parseMajorMinor func 2016-12-11 15:33:23 +01:00
Danny van Kooten d8f1eb20ef add goreport & license badge 2016-12-11 15:23:11 +01:00
Danny van Kooten 593b3563d6 gofmt project 2016-12-11 14:50:01 +01:00
Danny van Kooten 5e4b878d19 add tests for api request helper funcs 2016-12-11 14:43:11 +01:00
Danny van Kooten 526a9aae28 add test for count.fill func 2016-12-11 14:33:05 +01:00
Danny van Kooten 4468b70601 Abstract calculating totals per category into count.Custom 2016-12-11 12:52:10 +01:00
Danny van Kooten 00f8d2cbba Use count package in /visitors/count and /pageviews/count endpoints. 2016-12-11 11:57:51 +01:00
Danny van Kooten 2f110fc059 abstract total visitor count away into count package 2016-12-11 11:53:03 +01:00
Danny van Kooten f25c18a7fe introduced table to x1000 UI performance when working with big datasets 2016-12-11 10:58:58 +01:00
Danny van Kooten 7d7121cf14 MIT license it is. Add readme instructions for getting a dev version running 2016-12-11 10:05:29 +01:00
Danny van Kooten f304b082a5 add loading indicator to most widgets 2016-12-10 18:19:44 +01:00