I'm looking for a part-time remote job.

Hire me


I'm the author of:

Mastering Redmine is a comprehensive guide with tips, tricks and best practices, and an easy-to-learn structure.

Check the book's project or

Buy the book

Social pages of the book:

By buying this book you also donate to Redmine (see this page).


Follow me:

Feature #2078

Show users a friendly URL instead of the repo's full path

Added by Humberto Anjos over 12 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
29 Jun 2012
Due date:
% Done:

100%

External issue:

Description

It’s the same situation as #2075 (Redmine-as-SourceForge), but another issue: since users cannot access the server’s filesystem, the server must provide URLs for external access. They will exist, but the Repository tab shows the repo’s full path instead, and the URLs users can actually use have to be shown elsewhere.

The way I see it, given #2075, since nobody but the Redmine admins can access the filesystem, nobody but the Redmine admins should be able to see the paths in the first place. So, in the vein of the Redmine Checkout plugin, I propose an extra functionality where Redmine admins may provide a mapping from the repo’s path (what Redmine actually stores and uses) to its corresponding public URL (which is what users and project managers can see and use).

file-URL-being-shown.PNG View - screenshot (53.6 KB) Humberto Anjos, 29 Jun 2012 13:43


Related issues

Related to SCM Creator (+Github) - Feature #2075: Make an option to fully automate repository creation without editing the URL field Open 26 Jun 2012

Associated revisions

Revision 128 (diff)
Added by Andriy Lesyuk about 11 years ago

Showing external URL under Repositories tab (#2078), replaced [] with more safe gsub! and more

History

#1 Updated by Humberto Anjos over 12 years ago

The External Issue I put makes no sense (I thought it linked to this Redmine ); can you please clear it?

#2 Updated by Andriy Lesyuk over 12 years ago

  • Status changed from New to Incomplete
  • Assignee set to Andriy Lesyuk
  • External issue deleted (#2075)

I did not get the issue...

Can you show by examples? What external URL is shown and what it should be?

#3 Updated by Humberto Anjos over 12 years ago

Andriy Lesyuk wrote:

I did not get the issue...

Can you show by examples? What external URL is shown and what it should be?

The URLs the Repository tab shows are the ones Redmine stores and uses: say, file:///var/lib/svn/project.repo_id. But users can’t get to the server’s filesystem, so they need externally accessible URLs, like http://redmine.host/svn/project.repo_id. It’s easy to configure Apache to make the HTTP URLs, but there’s no way to configure Repository tab to show users the HTTP URL instead of the file:// URL, which is useless to the user.

Also, on the heels of #2075, the actual file:// URLs should only seen by the Redmine admins, for whom this information is relevant. All the other users have no need to know where in the server the repos actually are. So, when project managers are creating a new repository, they should see something like http://redmine.host/svn/project.repo_id the whole time, even though what Redmine actually stores is file:///var/lib/svn/project.repo_id.

Does all this make sense? I can expand more once I get to work

#4 Updated by Andriy Lesyuk over 12 years ago

Where is file:///var/lib/svn/project.repo_id shown for users? Please give me screenshot.

#5 Updated by Humberto Anjos over 12 years ago

Andriy Lesyuk wrote:
I may have expressed myself poorly (again). I’ll start posting these at work where I can actually see the Redmine instance...

Where is file:///var/lib/svn/project.repo_id shown for users? Please give me screenshot.

The file:// URL is visible at the project’s Settings tab, subtab Repositories, column Repository, accessible at http://<redmine-host>/projects/<project>/settings?tab=repositories, as in the screenshot below:

screenshot

In my situation any user can create projects, and so they will encounter file:// URLs sooner or later.

#6 Updated by Andriy Lesyuk over 12 years ago

  • Status changed from Incomplete to Open

Oh, I see now... Thanks!

#7 Updated by Andriy Lesyuk about 12 years ago

I think this can be done only using some option... Because, in this case, you actually want to replace the real information with the fake. Maybe be :fake_url option...

#8 Updated by Humberto Anjos about 12 years ago

I was thinking strictly of a Redmine Checkout -like solution: a Regular expression field to parse and capture the real information, and a Replacement text field for the generated URL.

#9 Updated by Alatar Al over 11 years ago

Can you explain why you use local path for redmine pero setting? As I understand, you need local path only on repo create stage but after creation redmine can work with this repo over common interface (svn: or http:).

#10 Updated by Andriy Lesyuk about 11 years ago

Alatar Al wrote:

Can you explain why you use local path for redmine pero setting? As I understand, you need local path only on repo create stage but after creation redmine can work with this repo over common interface (svn: or http:).

I guess, this question was to me (please use Forums in such cases)... The same way SVN can access a repo using file:// and file:// is much faster as it does not involve client-server.

#11 Updated by Andriy Lesyuk about 11 years ago

  • Status changed from Open to In Progress
  • % Done changed from 0 to 20

#12 Updated by Andriy Lesyuk about 11 years ago

Please check 0.4.3 and tell, if that’s what you wanted.

#13 Updated by Alatar Al over 10 years ago

Please check 0.4.3 and tell, if that’s what you wanted.

Yes that’s it, thanks!

PS: Sorry for late answer.

#14 Updated by Andriy Lesyuk almost 8 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 20 to 100

Ok. Assuming, that this issue was fixed in 0.4.3. Please reopen or create new issue, if you think, that it was not.

Also available in: Atom PDF

Terms of use | Privacy policy