Page MenuHomePhabricator

[landing] shuffled investor data
ClosedPublic

Authored by ginsu on Oct 25 2022, 1:26 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 26, 5:21 PM
Unknown Object (File)
Tue, Nov 26, 5:20 PM
Unknown Object (File)
Tue, Nov 26, 5:20 PM
Unknown Object (File)
Sun, Nov 24, 11:07 PM
Unknown Object (File)
Nov 15 2024, 7:23 AM
Unknown Object (File)
Nov 15 2024, 5:21 AM
Unknown Object (File)
Nov 2 2024, 11:24 PM
Unknown Object (File)
Oct 22 2024, 2:37 PM

Details

Summary

shuffled investor data randomly so that every time a user refreshes the investor page, the order of investors should be different


Linear Task: ENG-2105

Test Plan

Please watch the before and after video demos to see the changes I made:

Before:

After:

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ginsu requested review of this revision.Oct 25 2022, 1:40 PM

Huh, I'm a little confused.

The video clearly shows that things are working as expected, but I assumed shuffledInvestorsData is defined and instantiated once and would remain the same indefinitely.. but looks like that assumption is incorrect

It's evaluated once per run of the JS code. The bundle will say _shuffle(investorsData), and the JS runtime that evaluates that bundle will generate a different shuffle every time it evaluates it

It's evaluated once per run of the JS code. The bundle will say _shuffle(investorsData), and the JS runtime that evaluates that bundle will generate a different shuffle every time it evaluates it

Ah gotcha, thanks for explaining

This revision is now accepted and ready to land.Oct 26 2022, 12:46 PM
This revision was automatically updated to reflect the committed changes.