Attempting to use projectless Git repos for a project results in unhelpful error messages

Bug #1693407 reported by Barry Price
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

For (a contrived) example:

1. Launchpad allows me to push code to e.g. lp:~myself/+git/mystuff
2. Launchpad allows me to create a project called e.g. 'mystuff'
3. Launchpad does NOT allow me to set the git repo of that project to that code branch, but it's unclear exactly why

If I type that code url into the 'Choose' box on the project's 'Configure Code' page, I get an error: No items matched "~myself/+git/mystuff".

If I type that code url into the form anyway, and submit it, I get another unhelpful error: Invalid value

More accurate/descriptive messages would be helpful here. I understand the limitation is intentional and documented[1], but there should at least be a link to that documentation when the error occurs, ideally with a short summary/explanation directly on the page where the error occurs.

[1] https://help.launchpad.net/Code/Git

Revision history for this message
Colin Watson (cjwatson) wrote :

We could possibly arrange for the "configure code" page to let you select a repository from outside the project and move it within the project. It would necessarily involve changing its URL (to e.g. lp:~myself/mystuff/+git/mystuff, which would then be aliased to lp:mystuff).

Changed in launchpad:
importance: Undecided → Low
status: New → Triaged
tags: added: confusing-ui git lp-code ui
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.