question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Configurable version control service integration

See original GitHub issue
  • Which version of Django are you using?: 2.2
  • Which version of django-rosetta are you using?: 0.9.5
  • Have you looked trough recent issues and checked this isn’t a duplicate? Yes

Feature: Link to source file

The “Occurrence(s)” column in the Web UI lists file names and the line numbers of where the text was extracted from. It should be easy to configure an external service URL and generate a link to display the text location in the file under version control.

If the reference content (see definition) is directly a valid URL (e.g. when I edit the PO file and add a #. https://foo.bar.com line to an item) that URL should be turned into a clickable link either.

Related

See https://code.djangoproject.com/ticket/32356 for a related Django feature request.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mbicommented, May 13, 2021

To answer the original request, the way I’d implement this is by defining a new setting, e.g. ROSETTA_LINK_OCCURRENCES which should be a callable taking the occurrence string (e.g. "templates/test.html:3") and return an URL or None. We could then call that callable for every entry in the form page and if the result is a link, we’d add a hyperlink on the occurrence.

Thoughts?

0reactions
bittnercommented, Jun 14, 2021

Sounds good to me. Is your suggestion just about the setting and the implementation of turning the text into a link, or do you think about a default implementation of the callable, too?

If we had, say, a ROSETTA_VCS_URL and a ROSETTA_VCS_REVISION we could have a default implementation that might work for simple, single-repository projects. This could be a helpful starting point, aka reference implementation, for custom setups.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration Management and Version Control
The key features to look for would be version control integration and flexibility in managing tasks and issues. Both JIRA and TFS are...
Read more >
Top 5 BEST Version Control Software (Source Code ...
Version Control VCS is also referred as SCM (Source Code Management) tools or ... Integrates well with Windows, leading IDE and Agile tools....
Read more >
Distributed Version Control System Integration - Catch Software
Version control can be configured at an organisation or project level. To configure version control settings for an organisation, go to Admin -> ......
Read more >
Integrating a Version Control System (VCS) with webMethods ...
This video from Software AG shows how to configure packages with a VCS ... a Version Control System (VCS) with webMethods Service Designer ......
Read more >
DevOps tech: Version control - Google Cloud
Version control systems like Git, Subversion, and Mercurial provide a logical means to organize files and coordinate their creation, controlled access, updating ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found