Skip to content

Include new and existing ticket steps #1048

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

Merged
merged 6 commits into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Creating a python base with shared environment variables
FROM python:3.12.5 as base
FROM python:3.12.6 as base
ENV PIP_NO_CACHE_DIR=off \
PIP_DEFAULT_TIMEOUT=100 \
PIP_DISABLE_PIP_VERSION_CHECK=on \
Expand All @@ -22,7 +22,7 @@ COPY ./poetry.lock ./pyproject.toml ./
RUN $POETRY_HOME/bin/poetry install --without dev --no-root

# `production` stage uses the dependencies downloaded in the `base` stage
FROM python:3.12.5-slim as production
FROM python:3.12.6-slim as production

# Install pandoc for markdown to Jira conversions.
RUN apt-get -y update && \
Expand Down
20 changes: 20 additions & 0 deletions config/config.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,26 @@
parameters:
jira_project_key: SNG
labels_brackets: both
steps:
new:
- create_issue
- maybe_delete_duplicate
- add_link_to_bugzilla
- add_link_to_jira
- maybe_assign_jira_user
- maybe_update_issue_status
- maybe_update_issue_priority
- maybe_update_issue_severity
- maybe_update_issue_points
- sync_whiteboard_labels
existing:
- update_issue_summary
- maybe_assign_jira_user
- maybe_update_issue_status
- maybe_update_issue_priority
- maybe_update_issue_severity
- maybe_update_issue_points
- sync_whiteboard_labels
status_map:
UNCONFIRMED: Backlog
NEW: To Do
Expand Down
25 changes: 11 additions & 14 deletions jbi/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import secrets
from pathlib import Path
from typing import Annotated, Optional
from typing import Annotated, Any, Optional

from fastapi import APIRouter, Body, Depends, HTTPException, Request, status
from fastapi.encoders import jsonable_encoder
Expand Down Expand Up @@ -83,21 +83,18 @@ async def inspect_dl_queue(queue: Annotated[DeadLetterQueue, Depends(get_dl_queu
"""API for viewing queue content"""
bugs = await queue.retrieve()
results = []
fields: dict[str, Any] = {
"identifier": True,
"rid": True,
"error": True,
"payload": {
"bug": {"id", "whiteboard", "product", "component"},
"event": {"action", "time"},
},
}
for items in bugs.values():
async for item in items:
results.append(
item.model_dump(
include={
"identifier": True,
"rid": True,
"error": True,
"payload": {
"bug": {"id", "whiteboard", "product", "component"},
"event": {"action", "time"},
},
}
)
)
results.append(item.model_dump(include=fields))
return results


Expand Down
Loading
Loading