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

fix: update user search to fallback to GitHub API on error and zero results #3569

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

brandonroberts
Copy link
Contributor

Description

  • Updates the user search utility function to search the GitHub API under separate conditions
    • Our primary API fails
    • Our primary API returns 0 results
  • If the GitHub API fails then we return false which indicates no results were found in either.

Related Tickets & Documents

Mobile & Desktop Screenshots/Recordings

Steps to QA

  1. Go to deploy preview
  2. Open the network panel in browser devtools
  3. Search for a user that's not in our data
  4. See two requests made, one to our API, and one to the GitHub api
  5. See results from the searches

Tier (staff will fill in)

  • Tier 1
  • Tier 2
  • Tier 3
  • Tier 4

[optional] What gif best describes this PR or how it makes you feel?

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

PR Compliance Checks

Thank you for your Pull Request! We have run several checks on this pull request in order to make sure it's suitable for merging into this project. The results are listed in the following section.

Issue Reference

In order to be considered for merging, the pull request description must refer to a specific issue number. This is described in our Contributing Guide.
This check is looking for a phrase similar to: "Fixes #XYZ" or "Resolves #XYZ" where XYZ is the issue number that this PR is meant to address.

Copy link

netlify bot commented Jun 17, 2024

Deploy Preview for design-insights ready!

Name Link
🔨 Latest commit 50ddc50
🔍 Latest deploy log https://app.netlify.com/sites/design-insights/deploys/66705affcd6e550009d38e2c
😎 Deploy Preview https://deploy-preview-3569--design-insights.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jun 17, 2024

Deploy Preview for oss-insights ready!

Name Link
🔨 Latest commit 50ddc50
🔍 Latest deploy log https://app.netlify.com/sites/oss-insights/deploys/66705affd386b7000866866e
😎 Deploy Preview https://deploy-preview-3569--oss-insights.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@nickytonline nickytonline left a comment

Choose a reason for hiding this comment

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

🚢

@brandonroberts brandonroberts merged commit a5946d0 into beta Jun 17, 2024
13 checks passed
@brandonroberts brandonroberts deleted the fix-fallback-user-search branch June 17, 2024 21:17
open-sauced bot pushed a commit that referenced this pull request Jun 17, 2024
## [2.36.0-beta.4](v2.36.0-beta.3...v2.36.0-beta.4) (2024-06-17)

### 🐛 Bug Fixes

* Contributor Confidence styling ([#3572](#3572)) ([3e7c4ed](3e7c4ed))
* update user search to fallback to GitHub API on error and zero results ([#3569](#3569)) ([a5946d0](a5946d0))
open-sauced bot pushed a commit that referenced this pull request Jun 18, 2024
## [2.36.0](v2.35.0...v2.36.0) (2024-06-18)

### 🐛 Bug Fixes

* Contributor Confidence styling ([#3572](#3572)) ([3e7c4ed](3e7c4ed))
* remove GitHub organization permissions request from authentication ([#3570](#3570)) ([673923c](673923c))
* update user search to fallback to GitHub API on error and zero results ([#3569](#3569)) ([a5946d0](a5946d0))

### 🍕 Features

* add contributions filter to contributor profile ([#3556](#3556)) ([f588f9d](f588f9d))
* add workspace layout to user page ([#3537](#3537)) ([2504c34](2504c34))
* enabled loading an existing conversation in StarSearch ([#3563](#3563)) ([cc34e7b](cc34e7b))
* now StarSearch uses the new StarSearch API endpoints for chat creation/updates ([#3565](#3565)) ([0ac0145](0ac0145))
* Repo Pages - move devstats to top of mobile view ([#3574](#3574)) ([658b76a](658b76a))
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.

None yet

3 participants