-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Entity Registration cannot process branches with forward slash #4817
Comments
Related, though potentially not exactly the same: |
@rgbrizzlehizzle yep we're aware of this, and it's a little tricky to solve as without making a call out to the required git provider we don't know what is a branch name and what is a file path. More info can be found in the ticket @adamdmharvey mentioned and more in this one too IonicaBizau/git-url-parse#114 (comment) It's not impossible, just needs some more thought on how we do this I think. |
Wanted to add that we're also hitting this limitation to keep this issue relevant since #2815 was closed as stale. |
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. |
We are also getting this for Bitbucket Server (on-prem) while registering resource from non-default branch.
|
@kiranpatel11 I don't think that yours is the same issue. I think it's down to the support in the It doesn't seem to really support much other than that at the moment - but contributions are welcome 🙏 |
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. |
unfortunately, still relevant :( |
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. |
Keeping this alive. One proposed way forward is to support alternative URL formats, as seen in some other tools. For example, something along the lines of |
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. |
Keeping alive again. Still interested in alternative url formats - and this should probably be backed by a |
I'll help keep this issue alive as well to lengthen the stale-check time. I just ran into this at SeatGeek, where my branching pattern also uses a forward-slash on a gitlab instance. I did also figure out the uri-encoding ( |
Thanks. I started experimenting briefly on what a centralized parsing facility might look like, which would add support for alternative formats and might be a place to put per-provider special knowledge. But didn't get all that far. |
OMG, just found this issue, it killed my last... 3 hours? Worth fixing 😢 |
Would love at least a note in the docs about this. I also just lost a couple hours wondering what was going on :( |
Gonna close this as a duplicate of #2815, let's focus the discussion there. |
Expected Behavior
When testing out registering a service in backstage, say on a feature branch
feature/my-awesome-feature
, the user should be able to register by passinghttps://github.com/MyOrg/my-service/blob/feature/my-awesome-feature/catalog-info.yaml
to the entity registration formCurrent Behavior
Instead, the user will get the following error
my-awesome-feature
looks as though it is being truncated from?ref=...
Possible Solution
Haven't looked into it, but presumably a simple fix of just not truncating, and perhaps URL encoding the
/
?Steps to Reproduce
/
in the nameContext
Honestly, not a blocker, since 99/100 you are either going to have the entity registered on a scaffolding event or are going to track the head branch, but for testing this can be a bit of a rough start for people trying to be onboarded to backstage.
Your Environment
The text was updated successfully, but these errors were encountered: