Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor tweaks in [github] auth code #1862

Merged
merged 8 commits into from
Aug 9, 2018
Merged

Minor tweaks in [github] auth code #1862

merged 8 commits into from
Aug 9, 2018

Conversation

paulmelnikow
Copy link
Member

These were cherry-picked from #1205.

@paulmelnikow paulmelnikow added the core Server, BaseService, GitHub auth, Shared helpers label Aug 8, 2018
@shields-ci
Copy link

Warnings
⚠️

This PR modified the server but none of the service tests. That's okay so long as it's refactoring existing code.

Messages
📖

✨ Thanks for your contribution to Shields, @paulmelnikow!

Generated by 🚫 dangerJS

@paulmelnikow paulmelnikow requested a review from PyvesB August 8, 2018 02:46
Copy link
Member

@PyvesB PyvesB left a comment

Choose a reason for hiding this comment

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

Mostly looks good to me! 👍

@@ -219,6 +219,12 @@ class TokenPool {
this.fifoQueue.forEach(visit);
this.priorityQueue.forEach(visit);
}

allValidTokenIds() {
Copy link
Member

Choose a reason for hiding this comment

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

Simple code, but adding a small test to our existing suite wouldn't hurt! 😄

Copy link
Member Author

Choose a reason for hiding this comment

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

Done!

if (allReleases === undefined) {
apiUrl = apiUrl + '/latest';
}
var badgeData = getBadgeData('release', data);
Copy link
Member

Choose a reason for hiding this comment

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

I'm unsure how this change is relevant to this pull request?

Copy link
Member Author

Choose a reason for hiding this comment

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

I came across it because it’s in the middle of a github badge affected by #1861.

# Conflicts:
#	lib/token-pool.spec.js
#	lib/token-provider.js
#	lib/token-provider.spec.js
@paulmelnikow paulmelnikow merged commit 8af48c0 into badges:master Aug 9, 2018
@shields-deployment
Copy link

This pull request was merged to master branch. Now this change is waiting for deployment.
Deploys usually happen every few weeks. After deployment changes are copied to gh-pages branch.

This badge displays deployment status:

@paulmelnikow paulmelnikow deleted the github-tweaks branch August 9, 2018 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Server, BaseService, GitHub auth, Shared helpers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants