Commit graph

588 commits

Author SHA1 Message Date
Max Wofford
3f55de928f Run rack mini profiler in production 2025-04-03 20:57:48 -04:00
Max Wofford
c3dac98855
Parse user agent on heartbeat upload (#151)
* Parse user agent on heartbeat upload

* Move parse_user_agent to be instance -> class method
2025-04-03 14:19:32 -04:00
Max Wofford
80d92717f1
Parse user agent on heartbeat upload (#150) 2025-04-03 13:41:33 -04:00
Max Wofford
184d3797ac
Fix n+1 in leaderboard controller (#149) 2025-04-03 12:41:47 -04:00
Max Wofford
7c33ca11be Merge branch 'main' of github.com:hackclub/harbor 2025-04-03 02:00:15 -04:00
Max Wofford
4978f0c6c1
Speed up streak calculation (#148)
* Revert "Make weekly leaderboard rolling (#145)"

This reverts commit 8c6a5450fd.

* Speed up streak calculation for groups

* Remove unused lines in leaderboard update job

* Switch to local timezone when calculating home page
2025-04-03 01:35:09 -04:00
Max Wofford
33daeb2b7d Merge branch 'main' of github.com:hackclub/harbor 2025-04-03 01:27:30 -04:00
dependabot[bot]
0891c45af2
Bump avo from 3.18.2 to 3.19.1 (#146)
Bumps [avo](https://github.com/avo-hq/avo) from 3.18.2 to 3.19.1.
- [Release notes](https://github.com/avo-hq/avo/releases)
- [Changelog](https://github.com/avo-hq/avo/blob/main/RELEASE.MD)
- [Commits](https://github.com/avo-hq/avo/compare/v3.18.2...v3.19.1)

---
updated-dependencies:
- dependency-name: avo
  dependency-version: 3.19.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-03 01:23:13 -04:00
Max Wofford
6914715cfd
Add rolling 7 days leaderboard (#147)
* Revert "Make weekly leaderboard rolling (#145)"

This reverts commit 8c6a5450fd.

* Add last_7_days rolling leaderboard

* Add last 7 days leaderboard to cron
2025-04-03 01:21:40 -04:00
Max Wofford
ddad037e68 Revert "Make weekly leaderboard rolling (#145)"
This reverts commit 8c6a5450fd.
2025-04-03 00:11:07 -04:00
Max Wofford
6be2e6fb09 Give better default times if no heartbeats are found 2025-04-02 18:39:03 -04:00
Max Wofford
f692a79ef7 Attempt to handle nil start or end times 2025-04-02 18:35:58 -04:00
Max Wofford
7487b45dff Move user not found guard up earlier on stats endpoint 2025-04-02 02:37:40 -04:00
Max Wofford
41ea56dac9 Switch to db pool of 50 connections 2025-03-31 14:05:35 -04:00
Max Wofford
8c6a5450fd
Make weekly leaderboard rolling (#145) 2025-03-30 23:02:34 -04:00
Max Wofford
91c802d5e7 Revert "Attempt to speed up production builds by skipping apt update (#144)"
This reverts commit 65b61dc241.
2025-03-30 22:12:57 -04:00
Max Wofford
0c1aecc760 Revert "Attempt to fix prod build from having to update every time"
This reverts commit 1a2a6dd168.
2025-03-30 22:12:50 -04:00
Max Wofford
1a2a6dd168 Attempt to fix prod build from having to update every time 2025-03-30 22:04:27 -04:00
Max Wofford
65b61dc241
Attempt to speed up production builds by skipping apt update (#144) 2025-03-30 22:01:39 -04:00
Max Wofford
7d9e2ed4f9 Add os/editor categorizer helpers 2025-03-28 13:07:01 -04:00
Max Wofford
177d2e3ad3 Update heartbeat UA processing job 2025-03-28 13:06:43 -04:00
Max Wofford
75381bc25d
Remove scrapyard from navbar (#139) 2025-03-28 10:58:51 -04:00
Max Wofford
d5527327bb
Get editor and OS details from UA (#138)
* Get editor and OS details from UA

* Update formatting of user_agent to be more ruby-like
2025-03-27 21:49:18 -04:00
dependabot[bot]
7c1857d48b
Bump avo from 3.18.1 to 3.18.2 (#135)
Bumps [avo](https://github.com/avo-hq/avo) from 3.18.1 to 3.18.2.
- [Release notes](https://github.com/avo-hq/avo/releases)
- [Changelog](https://github.com/avo-hq/avo/blob/main/RELEASE.MD)
- [Commits](https://github.com/avo-hq/avo/compare/v3.18.1...v3.18.2)

---
updated-dependencies:
- dependency-name: avo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-27 21:04:57 -04:00
Max Wofford
057884e743
Attempt to fix #134 (#136) 2025-03-27 21:03:51 -04:00
Max Wofford
8410040474 Fix formatting break on nav bar 2025-03-26 12:02:14 -04:00
Max Wofford
e720b073f4 Fix other instances of incorrect id used for sailors logs 2025-03-26 03:29:01 -04:00
Max Wofford
532b9da315 Add loading messages to the home page dashboard 2025-03-26 03:18:12 -04:00
Max Wofford
9ad3f1e73f Attempt to fix name lookup for sailorslog leaderboard 2025-03-26 02:52:18 -04:00
Max Wofford
1395c12d4a Handle null language in sailors log 2025-03-26 02:32:22 -04:00
Max Wofford
d27d3542ed Attempt to fix sailors log by handling switch to user id 2025-03-26 02:32:12 -04:00
Karthik Sankar
fa68200bf8
Removed scrapyard from dev env (#126)
* removed scrapyard from dev env

* Fix scrapyard showing in prod

---------

Co-authored-by: Max Wofford <max@maxwofford.com>
2025-03-26 02:09:22 -04:00
Max Wofford
1422a34f83
Attempt to fix #111 (#130) 2025-03-26 02:04:42 -04:00
Max Wofford
a8d2fcd5b9
Attempt to fix #125 (#129) 2025-03-26 02:01:16 -04:00
Max Wofford
c4c8e330ab
Make dashboard into partial (#127)
* Initial work to break out dashboard into own partial

* Fix chart initialization on filter change

* Factor out multiselect css & js

* Clean up js & css in filterable dashboard

* Refactor filter searching

* Fix projects filter

* Prevent race condition in dashboard async loading

* Move dashboard css / js out of user/show

* Move filterable dashboards over to homepage

* Clean up unused user controller routes
2025-03-26 01:54:00 -04:00
Max Wofford
80bf84f623 Remove accidental debugger in prod 2025-03-25 14:27:12 -04:00
Max Wofford
8cad2548a5 Add caching to filterable dashboard 2025-03-25 14:10:12 -04:00
Max Wofford
09135f9b04 Limit project durations to 4 2025-03-25 13:11:55 -04:00
Max Wofford
c7e43ae9e5 Add dev links for visualize-git 2025-03-25 13:06:25 -04:00
Max Wofford
6113ef8bf7 Only allow test entry heartbeats during initial setup 2025-03-25 01:52:44 -04:00
Max Wofford
a1aed018f0
Revert "Fixing #100 (#105)" (#118)
This reverts commit 00cea9993b.
2025-03-25 00:32:50 -04:00
Karthik Sankar
00cea9993b
Fixing #100 (#105)
* Fixing #100

* attempt to switch over

---------

Co-authored-by: Max Wofford <max@maxwofford.com>
2025-03-25 00:28:24 -04:00
dependabot[bot]
ff9d96a422
Bump selenium-webdriver from 4.29.1 to 4.30.1 (#113)
Bumps [selenium-webdriver](https://github.com/SeleniumHQ/selenium) from 4.29.1 to 4.30.1.
- [Release notes](https://github.com/SeleniumHQ/selenium/releases)
- [Changelog](https://github.com/SeleniumHQ/selenium/blob/trunk/rb/CHANGES)
- [Commits](https://github.com/SeleniumHQ/selenium/commits)

---
updated-dependencies:
- dependency-name: selenium-webdriver
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-25 00:26:00 -04:00
Karthik Sankar
2f84c11ed0
fixing 0 people (#115) 2025-03-25 00:25:45 -04:00
Karthik Sankar
b765fa5545
fixing #110 (#117) 2025-03-25 00:25:21 -04:00
Karthik Sankar
52d2b39dcc
switching 'tops' to time, not heartbeats (#116) 2025-03-25 00:12:08 -04:00
Max Wofford
4aeaa50477 Add streak count to leaderboard 2025-03-24 18:19:55 -04:00
Max Wofford
14c986ae85 Update date logic to count streaks correctly 2025-03-24 18:19:18 -04:00
Max Wofford
9c63c8f4cd Fix random impersonation bug 2025-03-24 17:48:18 -04:00
Max Wofford
185a346a8a Add streak calculation to leaderboard 2025-03-24 17:47:56 -04:00