-
Notifications
You must be signed in to change notification settings - Fork 22
Description
Is your feature request related to a problem? Please describe.
We currently save a part of the request URL redundantly. The query (held as array of key-value pairs in memory and on file system) is saved next to the string-based URL. This is redundant and if you check the code on the frontend synchronization between URL changes and changes in the "params" tab, it is quite messy.
Describe the solution you'd like
The request URL should be saved similar to the URL JS object. It must at least be split into query parameters (array including disabled query parameters) and the base URL.
It would make sense to use this TrufosURL class throughout the whole application and provide a toPojo() instance method and a static fromPojo() factory method to easily persist the class in the request info file.
Should also support a toString() and toURL() method.
Describe alternatives you've considered
I tried to reuse the existing JS URL class but then it would not be possible to save deactivated queries.
Additional context