Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The plugin is not working #5

Open
alejandrobarrios07 opened this issue Jul 4, 2017 · 3 comments
Open

The plugin is not working #5

alejandrobarrios07 opened this issue Jul 4, 2017 · 3 comments

Comments

@alejandrobarrios07
Copy link

Hi, can you update the plugin to work with the new version of taiga? I think that this fork can be a good idea.
https://github.com/LPgenerator/sentry-taiga

Regards,

Alejandro

@moorchegue
Copy link

Anyone still maintains this package? Would be nice to have it working, given that somebody already fixed the problem.

@moorchegue
Copy link

moorchegue commented Oct 9, 2017

@LPgenerator, you don't have the issues feature enabled on sentry-taiga repo, so I'll ask here.

Is the plugin still supposed to create Taiga issues or Taiga user stories? It says "US" in the title, it says "issue" on the submit button, and it creates a user story after all.

Also it seems to normally create a user story in Taiga, but in the end of the process Sentry displays an error message and doesn't have the user story linked to the Sentry issue. Is that a problem of my set up or a known bug? Here's the traceback:

JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Exception(most recent call first)
JSONDecodeError

Expecting value: line 1 column 1 (char 0)

    sentry_taiga/plugin.py in create_issue at line 106

            'subject': form_data['title'],
            'status': default_us_status,
            'description': form_data['description'],
            'tags': map(lambda x:x.strip(), labels.split(","))}
        us = project.add_user_story(**data)
        return us.ref
    def get_issue_label(self, group, issue_id, **kwargs):

And local variables provided by Sentry (might help?):

data	

{'description': u'https://sentry.***.***/***/sentry/issues/69/

` ``
TaigaRestException: Network error!
(7 additional frame(s) were not displayed)
...
  File "sentry/web/frontend/base.py", line 183, in dispatch
    return self.handle(request, *args, **kwargs)
  File "sentry/web/frontend/group_plugin_action.py", line 25, in handle
    response = plugin.get_view_response(request, group)
  File "sentry/p', 'status': 43, 'subject': u'Sentry creates a US but fails to link it to its own issue', 'tags': [u'sentry', u'issue', u'meta']}

default_us_status	
43

form_data	
{'description': u'https://sentry.vcnt.co/vericant/sentry/issues/69/

` ``

TaigaRestException: Network error!

(7 additional frame(s) were not displayed)

...
  File "sentry/web/frontend/base.py", line 183, in dispatch
    return self.handle(request, *args, **kwargs)
  File "sentry/web/frontend/group_plugin_action.py", line 25, in handle
    response = plugin.get_view_response(request, group)
  File "sentry/p', 'title': u'Sentry creates a US but fails to link it to its own issue'}

group	
<Group at 0x7fd0176a2050: id=69L, project_id=1L>

kwargs	
{}

labels	
u'sentry,issue,meta'

password	
*****

project	
Project(8)

project_slug	
u'***'

request	
<WSGIRequest at 0x140531725343952>

self	
<sentry_taiga.plugin.TaigaPlugin object at 0x7fd026169738>

tg	
<taiga.client.TaigaAPI instance at 0x7fd0178b3b00>

url	
u'https://taiga.***.***'

username	
u'sentry.taiga@***.***'

@moorchegue
Copy link

Figured out the latter issue. It was on the Taiga side. The US / Issue question still stands, although minor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants