Skip to content

Commit 3167795

Browse files
authored
Merge bugzilla.py module with models.py (#183)
* Delete `bugzilla` module, move all models to `models.py` Since `bugzilla.py` was a collection of Pydantic BaseModels, in this commit we move them into `models.py` so that it is the one source of all models used in the app. When making this move, I noticed that there were some methods on `WebhookComment` model that were unused, so I deleted them.
1 parent a692c7b commit 3167795

14 files changed

+295
-337
lines changed

jbi/actions/default.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
import logging
88

99
from jbi import ActionResult, Operation
10-
from jbi.bugzilla import BugzillaBug, BugzillaWebhookRequest
1110
from jbi.environment import get_settings
1211
from jbi.errors import ActionError
12+
from jbi.models import BugzillaBug, BugzillaWebhookRequest
1313
from jbi.services import get_bugzilla, get_jira
1414

1515
settings = get_settings()

jbi/actions/default_with_assignee_and_status.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
JIRA_REQUIRED_PERMISSIONS as DEFAULT_JIRA_REQUIRED_PERMISSIONS,
1515
)
1616
from jbi.actions.default import DefaultExecutor
17-
from jbi.bugzilla import BugzillaBug, BugzillaWebhookRequest
17+
from jbi.models import BugzillaBug, BugzillaWebhookRequest
1818

1919
logger = logging.getLogger(__name__)
2020

jbi/bugzilla.py

Lines changed: 0 additions & 296 deletions
This file was deleted.

0 commit comments

Comments
 (0)