Skip to content

Commit

Permalink
Merge PR #80 into 15.0
Browse files Browse the repository at this point in the history
Signed-off-by leemannd
  • Loading branch information
OCA-git-bot committed Jul 20, 2022
2 parents a97901f + 1943da8 commit af9ed8f
Show file tree
Hide file tree
Showing 15 changed files with 738 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -317,4 +317,58 @@ interactions:
X-XSS-Protection: [1; mode=block]
content-length: ["922"]
status: {code: 200, message: ""}
- request:
body: null
headers:
Accept:
- !!binary |
YXBwbGljYXRpb24vanNvbiwqLio7cT0wLjk=
Accept-Encoding:
- !!binary |
Z3ppcCwgZGVmbGF0ZQ==
Cache-Control:
- !!binary |
bm8tY2FjaGU=
Connection:
- !!binary |
a2VlcC1hbGl2ZQ==
Content-Type:
- !!binary |
YXBwbGljYXRpb24vanNvbg==
Cookie:
- !!binary |
SlNFU1NJT05JRD1BOUUyRjY3QUYyRjhDNjE0MkREN0I1RDU5NTA0QjA4MzsgYXRsYXNzaWFuLnhz
cmYudG9rZW49QllHMy02U1BGLTBVTTEtMkxCT19kMjc2ZTQzNmJkZWRhMDFhN2UwZWZkN2VmNjU4
MWExMTA3YWVkMzFjX2xpbg==
User-Agent:
- !!binary |
cHl0aG9uLXJlcXVlc3RzLzIuMjEuMA==
X-Atlassian-Token:
- !!binary |
bm8tY2hlY2s=
method: GET
uri: http://jira:8080/rest/api/2/search?startAt=0&validateQuery=True&fields=issuekey&fields=updated&jql=updated+%3E%3D+%222019-04-05+00%3A00%22+and+updated+%3C%3D+%222019-04-08+12%3A51%22&maxResults=100
response:
body:
{
string: '{"expand":"schema,names","startAt":0,"maxResults":50,"total":4,"issues":[{"expand":"operations,versionedRepresentations,editmeta,changelog,renderedFields","id":"10103","self":"http://jira:8080/rest/api/2/issue/10103","key":"TEST-7","fields":{"updated":"2019-04-08T12:38:01.000+0000"}},{"expand":"operations,versionedRepresentations,editmeta,changelog,renderedFields","id":"10102","self":"http://jira:8080/rest/api/2/issue/10102","key":"TEST-6","fields":{"updated":"2019-04-08T12:37:55.000+0000"}},{"expand":"operations,versionedRepresentations,editmeta,changelog,renderedFields","id":"10101","self":"http://jira:8080/rest/api/2/issue/10101","key":"TEST-5","fields":{"updated":"2019-04-08T12:37:44.000+0000"}},{"expand":"operations,versionedRepresentations,editmeta,changelog,renderedFields","id":"10100","self":"http://jira:8080/rest/api/2/issue/10100","key":"TEST-4","fields":{"updated":"2019-04-08T12:38:01.000+0000"}}]}',
}
headers:
Cache-Control: ["no-cache, no-store, no-transform"]
Content-Security-Policy: [frame-ancestors 'self']
Content-Type: [application/json;charset=UTF-8]
Date: ["Mon, 08 Apr 2019 12:51:45 GMT"]
Set-Cookie: [JSESSIONID=3EF9F21BED163A7F93DDA2F4E9E82C45; Path=/; HttpOnly]
Transfer-Encoding: [chunked]
Vary: [User-Agent]
X-AREQUESTID: [771x914x1]
X-ASEN: [SEN-L13384799]
X-ASESSIONID: [1km321n]
X-AUSERNAME: [gbaconnier]
X-Content-Type-Options: [nosniff]
X-Frame-Options: [SAMEORIGIN]
X-Seraph-LoginReason: [OK]
X-XSS-Protection: [1; mode=block]
content-length: ["922"]
status: {code: 200, message: ""}
version: 1
58 changes: 58 additions & 0 deletions connector_jira/tests/fixtures/cassettes/test_import_worklog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1143,4 +1143,62 @@ interactions:
X-XSS-Protection: [1; mode=block]
content-length: ["989"]
status: {code: 200, message: ""}
- request:
body: null
headers:
Accept:
- !!binary |
YXBwbGljYXRpb24vanNvbiwqLio7cT0wLjk=
Accept-Encoding:
- !!binary |
Z3ppcCwgZGVmbGF0ZQ==
Cache-Control:
- !!binary |
bm8tY2FjaGU=
Connection:
- !!binary |
a2VlcC1hbGl2ZQ==
Content-Type:
- !!binary |
YXBwbGljYXRpb24vanNvbg==
Cookie:
- !!binary |
YXRsYXNzaWFuLnhzcmYudG9rZW49QllHMy02U1BGLTBVTTEtMkxCT19kZDAxZTVjMDQxNmM0ZmI0
MDljOTZkZjExMTkyYjI0MTAzZjdiNjRjX2xpbjsgSlNFU1NJT05JRD03MkNGM0VGQjg4QThDM0VG
RURGNDgzNEIxMjRFMjk2Mw==
User-Agent:
- !!binary |
cHl0aG9uLXJlcXVlc3RzLzIuMjEuMA==
X-Atlassian-Token:
- !!binary |
bm8tY2hlY2s=
method: GET
uri: http://jira:8080/rest/tempo-timesheets/3/worklogs/10000
response:
body:
{
string:
'{"self":"http://jira:8080/rest/api/2/issue/10000/worklog/10000","author":{"self":"http://jira:8080/rest/api/2/user?username=gbaconnier","name":"gbaconnier","key":"gbaconnier","emailAddress":"guewen.baconnier@camptocamp.com","avatarUrls":{"48x48":"https://www.gravatar.com/avatar/ad252192c3f73885676b7d2e850ad13c?d=mm&s=48","24x24":"https://www.gravatar.com/avatar/ad252192c3f73885676b7d2e850ad13c?d=mm&s=24","16x16":"https://www.gravatar.com/avatar/ad252192c3f73885676b7d2e850ad13c?d=mm&s=16","32x32":"https://www.gravatar.com/avatar/ad252192c3f73885676b7d2e850ad13c?d=mm&s=32"},"displayName":"Guewen
Baconnier","active":true,"timeZone":"GMT"},"updateAuthor":{"self":"http://jira:8080/rest/api/2/user?username=gbaconnier","name":"gbaconnier","key":"gbaconnier","emailAddress":"guewen.baconnier@camptocamp.com","avatarUrls":{"48x48":"https://www.gravatar.com/avatar/ad252192c3f73885676b7d2e850ad13c?d=mm&s=48","24x24":"https://www.gravatar.com/avatar/ad252192c3f73885676b7d2e850ad13c?d=mm&s=24","16x16":"https://www.gravatar.com/avatar/ad252192c3f73885676b7d2e850ad13c?d=mm&s=16","32x32":"https://www.gravatar.com/avatar/ad252192c3f73885676b7d2e850ad13c?d=mm&s=32"},"displayName":"Guewen
Baconnier","active":true,"timeZone":"GMT"},"comment":"write
tests","created":"2019-04-04T04:01:47.597+0800","updated":"2019-04-04T04:01:47.597+0800","started":"2019-04-04T04:01:47.597+0800","timeSpent":"1h","timeSpentSeconds":3600,"id":"10000","issueId":"10000"}',
}
headers:
Cache-Control: ["no-cache, no-store, no-transform"]
Content-Security-Policy: [frame-ancestors 'self']
Content-Type: [application/json;charset=UTF-8]
Date: ["Fri, 12 Apr 2019 11:53:17 GMT"]
Set-Cookie: [JSESSIONID=FF2EBA4C55F6FEA7747853DD2BA77F96; Path=/; HttpOnly]
Transfer-Encoding: [chunked]
Vary: [User-Agent]
X-AREQUESTID: [713x10x1]
X-ASEN: [SEN-L13384799]
X-ASESSIONID: [nxenvu]
X-AUSERNAME: [gbaconnier]
X-Content-Type-Options: [nosniff]
X-Frame-Options: [SAMEORIGIN]
X-Seraph-LoginReason: [OK]
X-XSS-Protection: [1; mode=block]
content-length: ["1449"]
status: {code: 200, message: ""}
version: 1
95 changes: 95 additions & 0 deletions server_env_connector_jira/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
=====================================
Server environment for JIRA Connector
=====================================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fconnector--jira-lightgray.png?logo=github
:target: https://github.com/OCA/connector-jira/tree/15.0/server_env_connector_jira
:alt: OCA/connector-jira
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/connector-jira-15-0/connector-jira-15-0-server_env_connector_jira
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/233/15.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|

This module is based on the `server_environment` module to use files for
configuration. Thus we can have a different configuration for each
environment (dev, test, integration, prod). This module define the config
variables for the `connector_jira` module.

**Table of contents**

.. contents::
:local:

Configuration
=============

In the configuration file, you can configure the location, enable/disable
the SSL and the webhook base url of the JIRA Backends.

Exemple of the section to put in the configuration file::

[jira_backend.name_of_the_backend]
uri = http://jira
verify_ssl = 1
odoo_webhook_base_url = http://odoo:8069

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/connector-jira/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/connector-jira/issues/new?body=module:%20server_env_connector_jira%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Camptocamp

Contributors
~~~~~~~~~~~~

* `Camptocamp <https://camptocamp.com>`_:

* Guewen Baconnier <guewen.baconnier@camptocamp.com>

* `Trobz <https://trobz.com>`_:

* Son Ho <sonhd@trobz.com>

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/connector-jira <https://github.com/OCA/connector-jira/tree/15.0/server_env_connector_jira>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions server_env_connector_jira/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
14 changes: 14 additions & 0 deletions server_env_connector_jira/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2016 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)

{
"name": "Server environment for JIRA Connector",
"version": "15.0.1.0.0",
"author": "Camptocamp,Odoo Community Association (OCA)",
"license": "AGPL-3",
"category": "Tools",
"depends": ["server_environment", "connector_jira"], # oca/server-env
"website": "https://github.com/OCA/connector-jira",
"data": [],
"installable": True,
}
19 changes: 19 additions & 0 deletions server_env_connector_jira/i18n/server_env_connector_jira.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * server_env_connector_jira
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: server_env_connector_jira
#: model:ir.model,name:server_env_connector_jira.model_jira_backend
msgid "Jira Backend"
msgstr ""
1 change: 1 addition & 0 deletions server_env_connector_jira/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import jira_backend
21 changes: 21 additions & 0 deletions server_env_connector_jira/models/jira_backend.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2016-2018 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)

import logging

from odoo import models

_logger = logging.getLogger(__name__)


class JiraBackend(models.Model):
_name = "jira.backend"
_inherit = ["jira.backend", "server.env.techname.mixin", "server.env.mixin"]

@property
def _server_env_fields(self):
return {
"uri": {},
"verify_ssl": {},
"odoo_webhook_base_url": {},
}
9 changes: 9 additions & 0 deletions server_env_connector_jira/readme/CONFIGURE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
In the configuration file, you can configure the location, enable/disable
the SSL and the webhook base url of the JIRA Backends.

Exemple of the section to put in the configuration file::

[jira_backend.name_of_the_backend]
uri = http://jira
verify_ssl = 1
odoo_webhook_base_url = http://odoo:8069
7 changes: 7 additions & 0 deletions server_env_connector_jira/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
* `Camptocamp <https://camptocamp.com>`_:

* Guewen Baconnier <guewen.baconnier@camptocamp.com>

* `Trobz <https://trobz.com>`_:

* Son Ho <sonhd@trobz.com>
4 changes: 4 additions & 0 deletions server_env_connector_jira/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
This module is based on the `server_environment` module to use files for
configuration. Thus we can have a different configuration for each
environment (dev, test, integration, prod). This module define the config
variables for the `connector_jira` module.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit af9ed8f

Please sign in to comment.