Skip to content

Conversation

rohitpaulk
Copy link
Member

No description provided.

export default class LeaderboardPageEntriesTableRow extends Component<Signature> {
get isCurrentUser(): boolean {
return this.args.entry.user.username === 'ry';
}
Copy link

Choose a reason for hiding this comment

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

Bug: Hardcoded Username Causes Incorrect Highlighting

The isCurrentUser getter hardcodes the username 'ry' instead of comparing against the actual authenticated user. This means only the 'ry' user's row will be highlighted, regardless of who is logged in. This looks like development code that was accidentally committed.

Fix in Cursor Fix in Web


return {
language: language,
leaderboard: leaderboards[0]!, // TODO: Support actual filter of leaderboards
Copy link

Choose a reason for hiding this comment

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

Bug: Model Hook Fails with Non-Null Assertions

The model hook uses non-null assertions (!) when finding a language by slug and accessing leaderboards[0]. If no language matches the provided slug or the leaderboards array is empty, these assertions will cause runtime errors.

Fix in Cursor Fix in Web

<LeaderboardPage::EntriesTable::FillerRow />

{{#each this.sortedBottomHalfEntries as |entry index|}}
<LeaderboardPage::EntriesTable::Row @entry={{entry}} @index={{(add 33501 index)}} />
Copy link

Choose a reason for hiding this comment

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

Bug: Leaderboard Rank Calculation Error

The rank calculation for bottom half leaderboard entries uses a hardcoded offset of 33501. This causes these entries to display incorrect ranks, starting from 33501 instead of continuing sequentially from the top half.

Fix in Cursor Fix in Web

<span class="inline-block align-middle text-red-500 triangle-down mr-1.5" aria-hidden="true">
<EmberTooltip @text="Decreased from 199 to 99 in the past month" />
</span>
{{/if}}
Copy link

Choose a reason for hiding this comment

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

Bug: Score Trend Indicators Use Fixed Test Values

The score trend indicators and their tooltips are hardcoded to specific scores (142, 99) and fixed messages. This looks like test/demo code that was accidentally committed, so real score changes won't be reflected.

Fix in Cursor Fix in Web

Copy link

Test Results

  1 files  ±0    1 suites  ±0   10m 12s ⏱️ + 1m 28s
650 tests  - 5  600 ✅  - 7  48 💤 ±0  0 ❌ ±0  2 🔥 +2 
650 runs   - 5  598 ✅  - 9  48 💤 ±0  2 ❌ +2  2 🔥 +2 

For more details on these errors, see this check.

Results for commit 6144d88. ± Comparison against base commit 962994f.

This pull request removes 6 and adds 1 tests. Note that renamed tests count towards both.
Chrome 139.0 ‑ Acceptance | course-admin | view-submissions: it should be able to filter by stage(s) through a dropdown menu Chrome 139.0 ‑ Acceptance | course-admin | view-submissions: it should be accessible if user is course author and authored current course Chrome 139.0 ‑ Acceptance | course-admin | view-submissions: it should handle null value for tree SHA Chrome 139.0 ‑ Acceptance | course-admin | view-submissions: it should have the commit SHA in the header Chrome 139.0 ‑ Acceptance | course-admin | view-submissions: it should have the tree SHA in the header Chrome 139.0 ‑ Acceptance | course-admin | view-submissions: it should not be accessible if user is course author and did not author current course 
Chrome ‑ error 
Copy link

codecov bot commented Aug 27, 2025

❌ 2 Tests Failed:

Tests completed Failed Passed Skipped
602 2 600 48
View the top 2 failed test(s) by shortest run time
Chrome::error
Stack Traces | 0s run time
Error: Browser timeout exceeded: 10s Error while executing test: Acceptance | course-admin | view-submissions: it should be able to filter by stage(s) through a dropdown menu Stderr: [3319:3688:0827/232927.548171:ERROR:dbus/bus.cc:408] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") [3319:3688:0827/232927.584023:ERROR:dbus/bus.cc:408] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") [3319:3688:0827/232927.584030:ERROR:dbus/bus.cc:408] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") [3319:3688:0827/232927.584034:ERROR:dbus/bus.cc:408] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") [3319:3688:0827/232931.243307:ERROR:dbus/bus.cc:408] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") [3319:3688:0827/232931.652986:ERROR:dbus/bus.cc:408] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") DevTools listening on ws://127.0.0.1:.../devtools/browser/b85c147f-53b2-4b0a-8beb-747a7a1c1ce7 [3319:3319:0827/232933.602641:ERROR:dbus/object_proxy.cc:590] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= .............../org/freedesktop/DBus: unknown error type: [3319:3319:0827/232933.640106:ERROR:dbus/object_proxy.cc:590] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= .............../org/freedesktop/DBus: unknown error type: [3319:3688:0827/232933.640296:ERROR:dbus/bus.cc:408] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") [3319:3688:0827/232933.640310:ERROR:dbus/bus.cc:408] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") [3319:3319:0827/232933.641571:ERROR:dbus/object_proxy.cc:590] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= .............../org/freedesktop/DBus: unknown error type: [3319:3319:0827/232933.706417:ERROR:dbus/object_proxy.cc:590] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= .............../org/freedesktop/DBus: unknown error type: [3319:4979:0827/232933.707077:ERROR:dbus/object_proxy.cc:590] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= ........./org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files [3319:3319:0827/232933.707167:ERROR:dbus/object_proxy.cc:590] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= .............../org/freedesktop/DBus: unknown error type: [3319:4979:0827/232933.707331:ERROR:dbus/object_proxy.cc:590] Failed to call method: org.freedesktop.UPower.GetDisplayDevice: object_path= ........./org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files [3319:4979:0827/232933.707503:ERROR:dbus/object_proxy.cc:590] Failed to call method: org.freedesktop.UPower.EnumerateDevices: object_path= ........./org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files 
Chrome 139.0::Acceptance | course-page | course-stage-comments: comment has correct user label
Stack Traces | 5.44s run time
Test took longer than 5000ms; test timed out.

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

Copy link

codecov bot commented Aug 27, 2025

Bundle Report

Changes will increase total bundle size by 12.84kB (0.03%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
client-array-push 38.55MB 12.84kB (0.03%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: client-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/chunk.*.js 17.22kB 3.16MB 0.55%
assets/chunk.*.js -2.15kB 53.99kB -3.83%
assets/chunk.*.js -3.66kB 56.14kB -6.12%
assets/chunk.*.css 1.43kB 243.35kB 0.59%

Files in assets/chunk.*.js:

  • ./routes/leaderboard.ts → Total Size: 2.26kB

  • ./controllers/leaderboard.ts → Total Size: 1.18kB

  • ./models/leaderboard-entry.ts → Total Size: 2.83kB

Files in assets/chunk.*.css:

  • ./controllers/leaderboard.ts → Total Size: 1.18kB

  • ./models/leaderboard-entry.ts → Total Size: 2.83kB

  • ./routes/leaderboard.ts → Total Size: 2.26kB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant