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

Start Work: Set up a provider that manages the issue querying and includes caching and error handling #3744

Open
sergeibbb opened this issue Nov 13, 2024 · 0 comments
Assignees
Labels
debt Technical debt feature New feature or request
Milestone

Comments

@sergeibbb
Copy link
Member

This issue is a follow-up of #3621

Set up a provider that manages the issue querying and includes caching and error handling as we have with Launchpad. Most of this would be for future-proofing purposes - we don't automatically query for issues with this feature like we do for Launchpad - but the need for that may arise sooner than we think (for example - some UX on the Home view showing a count of how many issues we have, etc.) #3698 (review)

Perhaps we can do one of the following:

  1. Create a startWorkProvider
  2. Rename the launchpadProvider to be a bit more flexible outside the domain of Launchpad itself and extend it

And then we can add functions to the provider to:

  1. Get searched issues, with caching and error handling like we do for Launchpad items, and the ability to filter out stale ones and other post-processing like we do with PRs for Launchpad (not that we have to implement any post-processing now, just the caching and error handling parts)
  2. Complete actions on "start work" items, like creating a branch, etc.
  3. Set up other utilities that we want in the future for Start Work so that the command file doesn't get out of hand.
  4. Use those functions here as needed, like launchpad does with launchpadProvider. PR on Start Work operation in Home view (#3621) #3698 (comment)
@sergeibbb sergeibbb added feature New feature or request debt Technical debt labels Nov 13, 2024
@sergeibbb sergeibbb added this to the Shortlist milestone Nov 14, 2024
@sergeibbb sergeibbb self-assigned this Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debt Technical debt feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant