GithubHelp home page GithubHelp logo

ahelsing / tratihubis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from roskakori/tratihubis

0.0 0.0 1.0 250 KB

convert Trac tickets to Github issues; revised to support more labels, better wiki translation, etc

Home Page: http://pypi.python.org/pypi/tratihubis/

License: BSD 3-Clause "New" or "Revised" License

Python 100.00%

tratihubis's People

Contributors

ahelsing avatar andersk avatar dirocco avatar domoritz avatar roskakori avatar wd15 avatar

Watchers

 avatar

Forkers

kgersen

tratihubis's Issues

italics plus underline not translated

From gcf trac ticket 206:

Also attached the file omni_config-lnevers and omni_config-lnevers2.
Question [italics and underline]
The error reported by readyToLogin.py states: 
[indented and in italics]ERROR: No manifest found from describe at  https://www.emulab.net/protogeni/xmlrpc/am/2.0; review the logs.

[not indented or italics]What logs??

became:


___Question''__

The error reported by readyToLogin.py states: 

  ''ERROR: No manifest found from describe at https://www.emulab.net/protogeni/xmlrpc/am/2.0; review the logs._


What logs??

Reply to quotes need extra newline

If the Trac comment had a reply to someone else then it needs extra newlines at the end. See eg gcf trac 47

Reply to foo
> You said this
I say this

should be:

Reply to foo
> You said this

I say this

PG mapper error seed #s become commit links

Input like this from gcf trac ticket 132:
*** ERROR: mapper: Reached run limit. Giving up. seed = 1335813330 Physical Graph: 4 Calculating shortest paths on switch fabric.

Becomes:
*** ERROR: mapper: Reached run limit. Giving up. seed = [1335813330](https://github.com/ahelsing/tickettest2/commit/1335813330) Physical Graph: 4 ...

translator does not convert wiki syntax highlighting hints

If a wiki block quote uses syntax highlighting, like "#xml" to have it formatted as XML, that is not converted to the markdown equivalent. See trac ticket 323

In trac we use:

{{{
#xml
stuff here
}}}

In markdown that should become:

` ` `xml
` ` `

(without those extra spaces)

json lists mistakenly made into links

ticket #603: another example of faulty translation of wiki link to markdown:

      "members_to_add" [{"SLICE_MEMBER" : "urn:publicid:IDN+ch.geni.net+user+gec17dem, "SLICE_ROLE" : "MEMBER"}],

became

      "members_to_add" [: "urn:publicid:IDN+ch.geni.net+user+gec17dem, "SLICE_ROLE" : "MEMBER"}]({"SLICE_MEMBER"),

Note though that if we avoided translation of things within block quotes, that would solve this.

wiki bare urls leave square brackets behind

In wiki, to get a link whose label is itself, you do [https://www.example.com]. Nothing is done to this during conversion, but the link is recognized. So you get a link inside square brackets.

See protoch ticket 801

pseudo table gets mangled in translation

See gcf trac ticket 146
Source had:

Omni knows about the following aggregates...
============================================
| Nickname | Version | URL                 |
============================================
  pg-gpo        2      http://www...../2.0

Translation:

Omni knows about the following aggregates...
========================================h4. 
| Nickname | Version | URL                 |
========================================
  pg-gpo        2      http://www...../2.0
  plc           1      http://www.....:12346

apache error logs are made into links

Another example of the problem that things in block quotes get converted.

See EG protoch ticket 1373

[Thu Apr 30 19:32:28 2015] [error] [client 128.89.254.216] D...

becomes

[Apr 30 19:32:28 2015](Thu) [error] [128.89.254.216](client) De

A clever regex could tell it that the first thing in the square bracket cannot be one of Thu/Fri/etc/client

long timestamps become commit links

see gcf trac ticket 264:

ERROR:omni.protogeni:Cannot create a PG slice without a valid user credential: Your user certificate urn:publicid:IDN+pgeni.gpolab.bbn.com+user+inki has expired at 20130416163637Z. ProtoGENI users should log in to their account at the ProtoGENI website at

becomes

ERROR:omni.protogeni:Cannot create a PG slice without a valid user credential: Your user certificate urn:publicid:IDN+pgeni.gpolab.bbn.com+user+inki has expired at [20130416163637](https://github.com/ahelsing/tickettest2/commit/20130416163637)Z. ProtoGENI users should log in to 

Empty 2 single quotes becomes underscore

If there are 2 sets of empty single quotes, like '' then some stuff and then '', then the translator thinks you meant for that to be italic, and replaces each set of single quotes with an underscore.

See gcf trac ticket 421

conversion is slow

ticket conversion is slow - relatively slow even when running without --really, although that makes it slower. Why?

  • Try adding timestamps to the logger to see the problem.
  • Do I need to cache the hub or repo instances?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.