getsentry / sentry-redmine

Sentry integration for creating Redmine issues
20 stars 15 forks source link

NoReverseMatch/{organization_slug}/{project_slug}/issues/{group_id}/actions/{slug}/ #14

Open niQo opened 6 years ago

niQo commented 6 years ago

I have this error when I click on "Create Redmine Task" button:

NoReverseMatch/{organization_slug}/{project_slug}/issues/{group_id}/actions/{slug}/
errorReverse for 'sentry-group' with arguments '()' and keyword arguments '{'project_id': u'wam-interface', 'group_id': 71L, 'team_slug': u'sentry'}' not found. 1 pattern(s) tried: ['(?P<organization_slug>[\\w_-]+)/(?P<project_id>[\\w_-]+)/issues/(?P<group_id>\\d+)/$']
Sayorus commented 6 years ago

I found solution. 1) Open file /path/to/sentry_root/lib/python2.7/site-packages/sentry_redmine/plugin.py 2) Open in editor and find string #70 : 'team_slug': group.team.slug, 3) Replace team_slug to organization_slug

A little bit later I'll create pull request

hugoseabra commented 6 years ago

@Sayorus, still remains. What about the pull request? It is possible to create it?

qunabu commented 5 years ago

please fix this @Sayorus can you help with pull request ?

ruisantos78 commented 5 years ago

Work for me....

Sayorus commented 5 years ago

@hugoseabra , @qunabu , i'm sorry but i cannot do it because this bug and fix work only for legacy plugin (facconi/sentry-redmine). In current project another code structure and this bug not for this project.

P.S. Sorry for my english...

hugoseabra commented 5 years ago

I found solution.

  1. Open file /path/to/sentry_root/lib/python2.7/site-packages/sentry_redmine/plugin.py
  2. Open in editor and find string #70 : 'team_slug': group.team.slug,
  3. Replace team_slug to organization_slug

A little bit later I'll create pull request

I have done these steps and it worked for me.

@hugoseabra , @qunabu , i'm sorry but i cannot do it because this bug and fix work only for legacy plugin (facconi/sentry-redmine). In current project another code structure and this bug not for this project.

P.S. Sorry for my english...

Ok then! =)