-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Labels
kind:bugSomething isn't workingSomething isn't workingmodule:stdcmShort-Term DCMShort-Term DCMseverity:majorMajor severity bugMajor severity bug
Description
The current way to save and rerun past requests is to save editoast input payloads in datadog.
That relies on the input being smaller than 1024 characters. Which was fine up to now, but adding the list of allowed tracks to this payload brings it to a few hundreds kbs.
Possible fix 1
Object storage: #13640
It would take some time to set it up, but it would be straightforward, efficient, and reliable.
Possible fix 2
- Copy the input payload and remove the list of tracks from the copy, to keep its size under the threshold. Log that in datadog instead.
- Figure out which search environment was used in the request, and log that. May require an API change.
- Adapt the script that builds and save a payload
a. Identify the used search environment
b. Query that search environment to get the tracks. May require a new endpoint, or iterating through all the envs and their tracks.
c. Patch those tracks into the request to be sent to editoast.
While this delays the need for an object storage for a little longer, I don't think it would take less time / effort / complexity than option 1.
Metadata
Metadata
Assignees
Labels
kind:bugSomething isn't workingSomething isn't workingmodule:stdcmShort-Term DCMShort-Term DCMseverity:majorMajor severity bugMajor severity bug