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

🔌 Plugin: Sourcegraph #275

Closed
kissmikijr opened this issue Jul 22, 2021 · 9 comments
Closed

🔌 Plugin: Sourcegraph #275

kissmikijr opened this issue Jul 22, 2021 · 9 comments
Assignees
Labels
help wanted Extra attention is needed plugin stale

Comments

@kissmikijr
Copy link

Summary

The basic idea is that if you or your company already uses sourcegraph this plugin would give the possibility to search a components source code through the sourcegraph API.

It should extend the component entity page with a new tab called sourcegraph. It should introduce an annotation to be able to enable this for the appropriate components ( the ones that are indexed by your sourcegraph )
I have 2 features in my mind currently.

  • Search in the current component(repository) sourcecode and it would list the results under it.
  • A notification if your component( repository) has an open batch change

Probably only a frontend component is needed if we can use the built in proxy. To access the sourcegraph api we need to provide an authorization header so a sourcegrpah specific config extension is needed in the app-config.yaml

@benjdlambert benjdlambert added the help wanted Extra attention is needed label Jul 22, 2021
@kissmikijr
Copy link
Author

I plan to start working on this, but didn't figure it out how can I assigne it to myself :/

@benjdlambert
Copy link
Member

I can assign you!

@taras
Copy link
Member

taras commented Sep 14, 2022

@kissmikijr did you start working on this?

I've been collaborating with SourceGraph on a blog post on how to use Batch Changes to onboard projects Backstage. We've also been talking about creating an entity provider that would use SourceGraph Code Search to emit entities and Code Monitoring to get notifications when files change.

Could we combine efforts on this?

@kissmikijr
Copy link
Author

I did start working on it, but put it on a side track for quiet sometime now! I can dig this up. I'm happy to combine efforts!

@kissmikijr
Copy link
Author

I've been collaborating with SourceGraph on a blog post on how to use Batch Changes to onboard projects Backstage.

When I was at Prezi we used Batch Changes exactly for this, to rollout a bunch of catalog files to the services. For me the monitoring of these changes are the biggest value, I think rolling out could be also a scaffolder template with custom actions, but in that case no way to monitor the state of the PRs

@langeno
Copy link

langeno commented Mar 24, 2023

I am also interested in a plugin/component as described in the opening post, especially the integration of SourceGraph search into backstage in some form.
@kissmikijr do you have any ongoing development that you can share?

@freben freben transferred this issue from backstage/backstage Apr 23, 2024
@nia-potato
Copy link

any updates on this issue? am also very interested !

@langeno
Copy link

langeno commented Jun 2, 2024

@nia-potato : I started some activitiy on this, but never really finished it (and it also was a big hack).

Instead of doing a "proper" implementation, I executed a search via the Sourcegraph GraphQL API and appended the results to the normal search results data structure somewhere between them beeing returned and them beeing displayed.
I think this had limitations, e.g. proper pagination was broken.

If you want I can try to see if I still find that code, but I am somewhat convinced that this is no proper solution for upstream.

Copy link
Contributor

github-actions bot commented Sep 7, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Sep 7, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 15, 2024
@BethGriggs BethGriggs changed the title [Plugin] Sourcegraph 🔌 Plugin: Sourcegraph Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed plugin stale
Projects
None yet
Development

No branches or pull requests

5 participants