Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Use GitHub login info to associate pages with a user #467
Conversation
|
LGTM with the follow-up changes you suggested! |
|
Thank you for tackling this!!!
Just re-using the GitHub values seems sensible IMHO. Let’s do that!
No strong opinion here.
The intention is that users can edit any revision they created themselves within the same session. This is what jsPerf v1 did. I’d be fine with giving the same GitHub user the ability to change these revisions indefinitely with this change if we can base it on some kind of GitHub user ID rather than user name (which might be re-used in case of deleted accounts).
@maxbeatty, can you help? |
|
Thanks for putting this together! I don't have any strong opinions about outstanding issues. e2e tests can be run locally by starting a selenium server locally. If you're familiar with docker, this should work:
Then, you would set environment variables to point at your running selenium server (note port from above 4444):
e2e tests were removed from CI because of their instability. My experience with GoogleChrome/puppeteer has been much more positive than with selenium. Not to suggest that it should be addressed in this PR, but that would remove the dependency on SauceLabs and be easier to run locally. |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

Addresses #312,
This changes everything so that GitHub usernames will be the indexed/associated element of all pages/tests, rather than the loose lookup of the author's name or the current user session to tie the users pages together.
These changes unfortunately won't allow users to associate their old tests with their GitHub accounts. It is possible to create a "retrieval" of their tests. By sending an email out then asking them which GitHub username they want their changes to be associated with, then checking to see that the GitHub username's email address matches. And if the addresses match, fill the
authorGitHubproperty with said GitHub username. I don't know exactly how many people would want to get their old tests back.Things this PR does not change that should be addressed before merging:
Few small nitpicks to consider:
authorGitHub, better if itsauthorGithubor something completely different likegithubUsername?authorGitHubfield (or whatever it ends up being called) by set to NOT NULL? The reason I did this was to make sure it returned an error if there was no GitHub username provided and make it easier to spot problems (rather than making it default to '', which would silently allow for errors). However, I could see issues maybe with older pages/tests...Also I can't seen to run e2e tests. Seems like I need a saucelabs account and provide by GitHub username/password? I'm sure these need to be updated or they won't pass. Would appreciate assistance in setting that up or having those tests fixed up if they're broken.