-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
build: payload github status #4549
build: payload github status #4549
Conversation
devversion
commented
May 14, 2017
- Show payload deta on PRs using the Github Statuses API.
24f74d6
to
d5bc7e9
Compare
Now since we can also build HTTP API's using Firebase we can use that for the payload status. Those functions can will be used for the team dashboard too. |
753995d
to
7a4556e
Compare
@jelbourn Reworked this to use the Firebase function now. Once we fully switched to the new firebase instance and the remote config is set up we can just replace the function URL in a follow-up PR and proceed. |
@devversion needs rebase now |
abe892e
to
ebe1bf3
Compare
@jelbourn Rebased. |
tools/gulp/util/firebase.ts
Outdated
@@ -6,18 +6,26 @@ const cloudStorage = require('@google-cloud/storage'); | |||
const screenshotFirebaseConfig = require('../../screenshot-test/functions/config.json'); | |||
|
|||
/** Opens a connection to the Firebase dashboard app. */ | |||
export function openFirebaseDashboardApp() { | |||
export function openFirebaseDashboardApp(asGuest = false) { | |||
const databaseURL = 'https://material2-board.firebaseio.com'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
databaseUrl
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only did it like that because the firebase-admin
also uses it like that and so I can just pass it like that. But can change it.
tools/gulp/util/firebase.ts
Outdated
// a guest works fine. For example in Pull Requests the payload task just wants to read data. | ||
if (asGuest) { | ||
return firebase.initializeApp({ databaseURL }); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd just make this a different function: openFirebaseDashboardAppAsGuest
(same thing about flag arguments https://martinfowler.com/bliki/FlagArgument.html)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay I'm fine doing this.
tools/gulp/util/firebase.ts
Outdated
// In some situations the service account credentials are not available and authorizing as | ||
// a guest works fine. For example in Pull Requests the payload task just wants to read data. | ||
if (asGuest) { | ||
return firebase.initializeApp({ databaseURL }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any reason not to always authenticate as guest for diffs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For master builds we need to upload data using firebase-admin
.
ec5f73e
to
ecbfd97
Compare
@jelbourn Addressed your feedback. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Needs rebase |
ecbfd97
to
d7b618b
Compare
* Show payload deta on PRs using the Github Statuses API.
5252ede
to
25fe80a
Compare
@andrewseguin Rebased. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |