Hide 'Code' tab, or replace with alternate information

Asked by Eric Butler

Hi there,

I would like to use launchpad to track bugs for my project, but to not plan to use bzr. Is there a way I can hide the 'Code' tab to avoid confusion, or replace it with a page of text explaining where the source code is located?

Thanks.
 - Eric

Question information

Language:
English Edit question
Status:
Answered
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Graham Binns (gmb) said :
#1

No, it isn't possible to disable the Code tab. However, bear in mind that Launchpad is capable of importing from both Subversion and CVS repositories, so even if you choose to host your code somewhere else it may be possible for you to expose it through Launchpad so that people using bzr and Launchpad can branch and work with it.

How are you planning to host your code?

Revision history for this message
Eric Butler (codebutler) said :
#2

Hi,

I am using a different distributed version control system, and don't want to import everything into bzr.

I don't expect launchpad to support every version control system out there, so that's why I think either being able to hide this tab, or replace it with an html blob would be a great solution.

Thanks,
Eric

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Eric Butler (codebutler) said :
#4

Reopening, this has not been answered yet.

Revision history for this message
Christian Reis (kiko) said :
#5

There's no way of currently doing that. There's the question of how this would interact with projects that had an imported source branch. I think you should file a bug on allowing this, and either close this or link this question to the bug.

Revision history for this message
Eric Butler (codebutler) said :
#6

Okay, I filed a bug.

No interaction with other projects is needed. As far as anything should be concerned, this would be no different than a project with no bzr branches. Or perhaps I don't understand what you mean?

Revision history for this message
Christian Reis (kiko) said :
#7

Well, for a project with imported source code, should we allow people to disable (or enable!) the code tab?

Revision history for this message
Eric Butler (codebutler) said :
#8

It seems fair that if a project has code hosted by launchpad, that the Code tab should always show up. Otherwise users may loose track of what they've done, and its never good to "hide" data in general.

Adding the ability to replace the contents of the Code tab with alternate information (rather than removing it entirely) might be a cleaner way to go. Here's what I'm thinking right now...

In the project options, add two new form items:

[ X ] This project's source code is maintained outside of launchpad.
Describe where: [ (HTML multi-line <textarea> supporting basic HTML) ]

These two new html form items would have the following rules:

The checkbox would only be check-able if NO branches are registered. If branches are already registered, put a note saying "You cannot select this option because this project has branches registered in launchpad. Remove all branches if you... etc"

The description textarea would not be editable if the checkbox is not checked.

Then back on the Code tab, if this option is set, don't display all the information that's currently displayed - just display the description instead. If no description was specified, display a generic method "This project's source code is maintained outside of launchpad. Refer to the project website and/or documentation for more information".

Let me know if this makes sense and if you have any questions or comments.

Thanks for following up on this!

 - Eric

Revision history for this message
Christian Reis (kiko) said :
#9

Cool. I've noted that in the bug -- let's hope it gets fixed soon!

Can you help with this problem?

Provide an answer of your own, or ask Eric Butler for more information if necessary.

To post a message you must log in.