Skip to content

Conversation

@robertbrignull
Copy link
Contributor

@robertbrignull robertbrignull commented Jul 30, 2020

This avoids us sending status reports when running on enterprise. The endpoint currently doesn't do anything that would be useful on enterprise.

This will probably conflict a little bit with #117 but I'll fix that up when it happens.

The check and the point where we revert is currently just before we actually send the status report, but notably this is after we've constructed the report, so there is a little bit of wasted effort. I think this is acceptable for the first attempt, though there's clearly room for improvement to avoid constructing the report while also keeping the centralised check and avoiding having to add checks to every call.

Things that need to be checked and tested before merging:

  • Status reports are still sent as normal on github.com
  • Status reports are not sent on enterprise

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.

Copy link
Contributor

@aeisenberg aeisenberg left a comment

Choose a reason for hiding this comment

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

This looks right to me. A small note that when #117 is merged, the check for isEnterprise should happen after the check to isLocalRun.

@robertbrignull
Copy link
Contributor Author

I've tested this now and confirmed the reports are not sent and it doesn't fail.

@robertbrignull robertbrignull merged commit 30d2cce into main Aug 3, 2020
@robertbrignull robertbrignull deleted the enterprise_status_reports branch August 3, 2020 14:18
@github-actions github-actions bot mentioned this pull request Aug 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants