OpenFn / OpenFn/lightning

Improve GitHub Sync error handling when dropdown disabled

Open
#4,972 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Elixir
Stars
296
Forks
86
Avg merge
1d 13h
Merged PRs (30d)
50

Description

Describe the bug A clear and concise description of what the bug is.

Users see this and can't select GitHub installations dropdown:
Image

It's not clear what they need to do but is normally because their GitHub token is expired.
The steps to fix this is to go into User Profile, disconnect GitHub and reconnect GitHub and it works again.
This isn't a great experience and should be improved.

Version number The version of Lightning you have seen the bug on: v2.16.8 (1.5.89-pre)

I have reproduced this locally on main:

  • Yes
  • No

To Reproduce Steps to reproduce the behavior:

  1. Go to a project
  2. Settings > Sync to GitHub

Expected behavior User can select from the dropdown. If they can't, it should be clear what to do to resolve and not leave the user stuck.

Additional context Not sure why this message appears but we should handle it more gracefully.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at Settings > Sync to GitHub and trace the GitHub installations dropdown, then inspect the User Profile disconnect/reconnect flow described in the report. Reproduce the disabled dropdown with an expired GitHub token and verify that the resulting experience clearly explains the next step instead of leaving the user stuck.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir, github
Domain
authentication, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.