Andy Carter
04/06/2023, 11:16 AMchats as I iterate over each ticket this messes up the pagination of tickets, and some get missed.
If I iterate over all the tickets first, then go back and query chats for each ticket I have collected, that should work. Is there an off-the-shelf way to do this, or do I have to put together something new?Denis I.
04/06/2023, 1:37 PMAndy Carter
04/06/2023, 1:46 PMall_tickets endpoint, then iterate over those in the main Ticket class, calling tickets/{iid} and then tickets/{iid}/conversations for my Conversations stream.Denis I.
04/06/2023, 1:51 PMtickets list ā individual ticket info ā ticket conversations, right?Andy Carter
04/06/2023, 2:00 PMtickets list stream written out, that only returns the ticket IDs that have updated, and then I need to iterate over those IDs, passing each one to the ticket endpoint in turn to retrieve full detail for a ticket.Andy Carter
04/06/2023, 2:01 PMtickets stream has no pagination itself, and relies on a series of input IDs generated dynamicallyDenis I.
04/06/2023, 2:11 PMtickets list endpoint have any input? E.g., last id or updated date?Andy Carter
04/06/2023, 2:27 PMupdated_since to tickets_list, which gets me a iterable of ticket ids.Andy Carter
04/06/2023, 2:28 PMtickets, one for each of the returned ids.Denis I.
04/06/2023, 2:28 PMEpicsStream from example)
a. Request tickets list endpoint inside get_records()
b. Iterate response and request individual ticket info endpoint for each ticket (still inside get_records())
c. Yield each row from the response
d. Use get_child_context() to return dict with keys required to request conversations
2. Conversations (similar to EpicIssuesStream)
a. Set parent_stream_type = Tickets
b. Request ticket conversations endpoint using keys received from parent (get_child_context() from Tickets stream)Andy Carter
04/06/2023, 2:29 PMget_records()Andy Carter
04/06/2023, 3:12 PMticket_ids , thanks! I feel like I am creating some kind of frankentap though š§Denis I.
04/06/2023, 3:21 PM