Coder Social home page Coder Social logo

tragit's Introduction

Usage : 1) Update tragit.conf with your repo details
        2) >python tragit.py

Tragit is a python tool to move tickets from TRAC to Github Issues conveniently.
It uses the Github API v3 and hence supports extra features which are not available in v2 API.
For e.g., an assigned ticket in TRAC is reassigned to the corresponding Github username automatically. This wasn't possible in API v2.

The best part is, it only needs the TRAC-generated CSV file and doesn't need access to the database. So its possible to move tickets from Sourceforge TRAC to Github. 

The CSV file can be generated via the link 'comma-separated text' which is present in the bottom of every report of TRAC.
For best results, please generate the CSV file using a custom report with the following TRAC query :

SELECT
id AS ticket, component, summary, t.priority AS priority, resolution, severity, t.type AS type, 
status, owner, reporter,cc,version, milestone, time AS created, description AS _description, keywords
FROM ticket t
LEFT JOIN enum p ON p.name = t.priority AND p.type = 'priority'
ORDER BY id DESC, CAST(p.value AS signed), milestone, t.type, time

But you can have your own custom queries, just in that case you'll have to modify tragit.conf [issue] section which is basically a map from Github Issue attribute to its equivalent Trac parameter. The Trac parameter (on the right side of the assignment operator) must be present in the field of your SELECT query. If its not there, then better keep that parameter blank in the configuration file and Tragit will ignore it.

tragit's People

Contributors

abhishekdelta avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

tragit's Issues

Re: Web integration

Hey Parag,

Just to clarify, the request is to make the event links open up in new tab
rather than the same iframe. Is that the only thing? Are other issues
reported by him in the past resolved?

On Wed, Feb 22, 2017 at 4:39 PM, Parag Sarda [email protected] wrote:

can we resolve this at priority please ?

Thanks,
Parag

---------- Forwarded message ---------
From: Dheer Lalit Gupta [email protected]
Date: Wed, Feb 22, 2017 at 4:27 PM
Subject: Re: Web integration
To: Parag Sarda [email protected]
Cc: Harish Ellikkal [email protected], Simran Dhaliwal <
[email protected]>, Nikesh Garera [email protected]

Hi Parag

Can you please get this fixed?

Event links opens up in new window with EventsHigh?

Regards,

Dheer Lalit Gupta / Co Founder
[email protected] / +91 9886 653346 <+91%2098866%2053346>

GreenBubbles Startup Services Pvt. Ltd.
L165, 1st Floor, Shri Gayathri Complex,HSR Layout Sector 6, Bangalore -
560 102
GreenBubbles.in http://greenbubbles.in/

[image: Twitter] https://twitter.com/greenbubblesin [image: Facebook]
http://www.facebook.com/greenbubbles [image: Google +]
https://plus.google.com/+GreenbubblesIn/ [image: LinkedIn]
https://www.linkedin.com/in/dheerlalitgupta [image: Maps]
http://bit.ly/gbdirection

On Mon, Dec 12, 2016 at 9:02 AM, Parag Sarda [email protected] wrote:

Hi Lalit,

We will fix all three issues and let you know. Thanks for reporting the
issues.

Thanks,
Parag

On Mon, Dec 12, 2016 at 2:02 AM Dheer Lalit Gupta [email protected]
wrote:

Two more changes required :D

Link: Show more events @ GreenBubbles. Can we make it open Eventshigh in a
new page?
Link: Powered by Eventshigh - This is opening EH site in the same iFrame.
This needs to be fixed.

Regards,

Dheer Lalit Gupta / Co Founder
[email protected] / +91 9886 653346 <098866%2053346>

GreenBubbles Startup Services Pvt. Ltd.
L165, 1st Floor, Shri Gayathri Complex,HSR Layout Sector 6, Bangalore -
560 102
GreenBubbles.in http://greenbubbles.in/

[image: Twitter] https://twitter.com/greenbubblesin [image: Facebook]
http://www.facebook.com/greenbubbles [image: Google +]
https://plus.google.com/+GreenbubblesIn/ [image: LinkedIn]
https://www.linkedin.com/in/dheerlalitgupta [image: Maps]
http://bit.ly/gbdirection

On Mon, Dec 12, 2016 at 1:58 AM, Dheer Lalit Gupta [email protected]
wrote:

Hey Parag

I have made it live on site. One small request, can we please make it
order by datetime? Right now its showing random events in the past list.

Regards,

Dheer Lalit Gupta / Co Founder
[email protected] / +91 9886 653346 <098866%2053346>

GreenBubbles Startup Services Pvt. Ltd.
L165, 1st Floor, Shri Gayathri Complex,HSR Layout Sector 6, Bangalore -
560 102
GreenBubbles.in http://greenbubbles.in/

[image: Twitter] https://twitter.com/greenbubblesin [image: Facebook]
http://www.facebook.com/greenbubbles [image: Google +]
https://plus.google.com/+GreenbubblesIn/ [image: LinkedIn]
https://www.linkedin.com/in/dheerlalitgupta [image: Maps]
http://bit.ly/gbdirection

On Fri, Nov 18, 2016 at 10:25 AM, Dheer Lalit Gupta <[email protected]

wrote:

Hey Parag.

Thanks for the ultra quick response.

What I meant was that widget shall show these events as well.

Greenbubbles events in bangalore

http://branch.eventshigh.com/r37l/GXFuKwAtoy

Use my referral code nyryb

Cheers
Lalit

On 18 Nov 2016 8:23 am, "Parag Sarda" [email protected] wrote:

Hi Lalit,

We have widget which can list all upcoming events for any topic / venue.
e.g. https://www.eventshigh.com/brwid/bangalore?topic=startup will list
all startup events.

This widget currently is not working for Green Bubbles as there is no
upcoming events -- https://www.eventshigh.com/brwid/bangalore?topic=green+
bubbles. We can modify this to show past events too. I will let you know
once we fix the issues.

We can change the Green Bubbles logo for you. We have not yet exposed this
to out users through dashboard yet. Please send the new logo file.

Thanks,
Parag

On Fri, Nov 18, 2016 at 1:00 AM, Dheer Lalit Gupta [email protected]
wrote:

Hi Folks

While trying to change the GB Logo to the new one, got to see your web
integration widget. I tested on my site... IT'S AWESOME. Please do let me
know these to type of new additions :-).

Having said that, how can I not have a change request...;-). This may be
unique for me only though.

  • It shows only the events which are created under GB account not all the
    events happening @ GB. (Like pradeeps events happening @ GB are missing in
    the widget as those are created under his account...).

If that can be done this widget is one stop solution for me on my site.

BTW... how do I change GB Logo on EH?

Regards,

Dheer Lalit Gupta / Co Founder
[email protected] / +91 9886 653346 <098866%2053346>

GreenBubbles Startup Services Pvt. Ltd.
L165, 1st Floor, Shri Gayathri Complex,HSR Layout Sector 6, Bangalore -
560 102
GreenBubbles.in http://greenbubbles.in/

[image: Twitter] https://twitter.com/greenbubblesin [image: Facebook]
http://www.facebook.com/greenbubbles [image: Google +]
https://plus.google.com/+GreenbubblesIn/ [image: LinkedIn]
https://www.linkedin.com/in/dheerlalitgupta [image: Maps]
http://bit.ly/gbdirection

--
Abhishek Shrivastava
Co-Founder & Head of Product
Events High
Phone: +91-7389143448
Web: http://www.eventshigh.com
Android App: http://eventshigh.me/eh-android
iOS App: http://eventshigh.me/eh-ios

From: Abhishek Shrivastava [email protected]

keyerror

Github API successfully loaded!
Creating label : {'color': '0011FF', 'name': u'Unknown'}
Creating label : {'color': 'FF7777', 'name': u'major'}
Creating label : {'color': '0011FF', 'name': u'None'}
Traceback (most recent call last):
File "tragit.py", line 195, in
tragit.transfer()
File "tragit.py", line 127, in transfer
self._process_ticket(row)
File "tragit.py", line 181, in _process_ticket
issue_id = self._github.create_issue(ticket[self._conf_map['title']], ticket
[self._conf_map['body']],
KeyError: 'description'

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.