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

Close issue on Gitlab not processing correctly #10

Closed
jmgasper opened this issue May 31, 2018 · 3 comments
Closed

Close issue on Gitlab not processing correctly #10

jmgasper opened this issue May 31, 2018 · 3 comments

Comments

@jmgasper
Copy link
Collaborator

jmgasper commented May 31, 2018

In testing the events on Gitlab, I found that closing a ticket isn't processed correctly. The "unknown event detected" is raised.

2018-05-31T07:50:00.163831+00:00 app[web.1]: info: unknown event detected
2018-05-31T07:50:00.164702+00:00 app[web.1]: debug:  object_kind=issue, event_type=issue, name=Justin Gasper, username=jmgasper, avatar_url=https://secure.gravatar.com/avatar/a6ca047b5d7a5b957129b4e12e86fa6b?
s=80&d=identicon, id=6546273, name=topcoder-x-dev-test, description=, 
web_url=https://gitlab.com/jmgasper/topcoder-x-dev-test, avatar_url=null, 
git_ssh_url=git@gitlab.com:jmgasper/topcoder-x-dev-test.git, 
git_http_url=https://gitlab.com/jmgasper/topcoder-x-dev-test.git, namespace=jmgasper, 
visibility_level=0, path_with_namespace=jmgasper/topcoder-x-dev-test, default_branch=null, 
ci_config_path=null, homepage=https://gitlab.com/jmgasper/topcoder-x-dev-test, 
url=git@gitlab.com:jmgasper/topcoder-x-dev-test.git, ssh_url=git@gitlab.com:jmgasper/topcoder-x-
dev-test.git, http_url=https://gitlab.com/jmgasper/topcoder-x-dev-test.git, author_id=61174, 
closed_at=2018-05-31 07:49:59 UTC, confidential=false, created_at=2018-05-31 07:33:22 UTC, 
description=This is a test Gitlab issue, due_date=null, id=11129662, iid=1, last_edited_at=null, 
last_edited_by_id=null, milestone_id=null, moved_to_id=null, project_id=6546273, 
relative_position=1073742323, state=closed, time_estimate=0, title=[$20] Test issue, 
updated_at=2018-05-31 07:49:59 UTC, updated_by_id=61174, 
url=https://gitlab.com/jmgasper/topcoder-x-dev-test/issues/1, total_time_spent=0, 
human_total_time_spent=null, human_time_estimate=null, assignee_ids=[91010], assignee_id=91010, 
action=close, labels=[id=4175822, title=Assigned, color=#445566, project_id=6546273, 
created_at=2018-05-31 07:26:59 UTC, updated_at=2018-05-31 07:26:59 UTC, template=false, 
description=null, type=ProjectLabel, group_id=null], previous=2018-05-31 07:49:59 UTC, 
current=2018-05-31 07:49:59 UTC, previous=[], current=[name=MyMedia CI, username=mymedia_ci, 
avatar_url=https://secure.gravatar.com/avatar/9aa3c046bc913b3dad67d21bcc86251c?
s=80&d=identicon], previous=[], current=[id=4175822, title=Assigned, color=#445566, 
project_id=6546273, created_at=2018-05-31 07:26:59 UTC, updated_at=2018-05-31 07:26:59 
UTC, template=false, description=null, type=ProjectLabel, group_id=null], previous=null, current=0,
 name=topcoder-x-dev-test, url=git@gitlab.com:jmgasper/topcoder-x-dev-test.git, description=, 
homepage=https://gitlab.com/jmgasper/topcoder-x-dev-test, assignees=[name=MyMedia CI, 
username=mymedia_ci, 
avatar_url=https://secure.gravatar.com/avatar/9aa3c046bc913b3dad67d21bcc86251c?s=80&d=identicon]
@jmgasper
Copy link
Collaborator Author

What should happen:

  1. When closed, the ticket is paid on the Topcoder site to the current assignee
  2. If there's no assignee, it will just be closed on the Topcoder site
  3. After the ticket is processed successfully and paid, the labels of the ticket should be changed to "Paid" and "Fix Accepted"
  4. A comment should be added that says "Payment task has been updated : "

@jmgasper
Copy link
Collaborator Author

jmgasper commented Jun 5, 2018

In looking at this, this may be due to missing configuration values for the Topcoder API. We need to validate that that is the case and add them back in.

@jmgasper
Copy link
Collaborator Author

jmgasper commented Jun 7, 2018

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

1 participant