Skip to content

Commit

Permalink
snow: fix disappearing snow tickets
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalEgn authored and drjova committed Feb 2, 2024
1 parent cd81c54 commit 16a9df9
Show file tree
Hide file tree
Showing 5 changed files with 283 additions and 297 deletions.
2 changes: 1 addition & 1 deletion backend/inspirehep/snow/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ def get_tickets_by_recid(self, recid, exclude_resolved=True):
if exclude_resolved:
tickets_search_parameters[
"u_current_task_state"
] = f"{self.ticket_status_mapping['waiting']}^ORu_current_task_state={self.ticket_status_mapping['assigned']}"
] = f"{self.ticket_status_mapping['waiting']}^ORu_current_task_state={self.ticket_status_mapping['assigned']}^ORu_current_task_state={self.ticket_status_mapping['in progress']}"
try:
third_party_ticket = self.search(
self.third_party_ticket_endpoint, third_party_search_query_string
Expand Down
7 changes: 6 additions & 1 deletion backend/inspirehep/snow/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@
SNOW_CACHE_TIMEOUT = 86400
SNOW_TICKETS_ENDPOINT = "u_request_fulfillment"
SNOW_THIRD_PARTY_TICKET_ENDPOINT = "u_third_party_ticket_inspire"
SNOW_TICKET_STATUS_MAPPING = {"resolved": "9", "waiting": "6", "assigned": "2"}
SNOW_TICKET_STATUS_MAPPING = {
"resolved": "9",
"waiting": "6",
"in progress": "4",
"assigned": "2",
}
SNOW_QUEUE_TO_FUNCTIONAL_CATEGORY_MAPPING = {
"HEP_add_user": "Literature submissions",
"HAL_curation": "HAL curation",
Expand Down
Loading

0 comments on commit 16a9df9

Please sign in to comment.