Skip to content

Commit

Permalink
correction of Jira's PUT to POST method (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
teteumac authored Dec 4, 2023
1 parent 57ea493 commit 3f5a8f4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/controller/jira_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def add_comment(self, text):
connection.close()

class Jira():
def __init__(self, credentials_file, host='http://its.cern.ch/jira'):
def __init__(self, credentials_file, host='https://its.cern.ch/jira'):
self.client = None
self.logger = logging.getLogger()
self.credentials_file = credentials_file
Expand Down
2 changes: 1 addition & 1 deletion api/jira_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __init__(self):
@APIBase.ensure_request_data
@APIBase.exceptions_to_errors
@APIBase.ensure_role('manager')
def put(self):
def post(self):
"""
Create a ticket with the provided JSON content
"""
Expand Down
2 changes: 1 addition & 1 deletion application/tickets/static/js/Jira.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function jira_api(data) {
$('body').addClass('loading');
fetch('api/jira/create',
{
method: 'PUT',
method: 'POST',
body: JSON.stringify(data),
headers: {'Content-Type': 'application/json'}
}
Expand Down

0 comments on commit 3f5a8f4

Please sign in to comment.