-
Description:/config is an internal endpoint that provides static data to the navigator frontend such as geographies, corpus and organisation info, languages and document variants. However, the way that the json response is currently structured has resulted in a significant amount of traversal and mapping code (including the various theme configs) so that the relevant information can be extracted and used. For example:
Open Questions:
Goals:Make the /config endpoint response easier to use for the frontend. Out of scope:
Notes:
Proposal:Separate the /config endpoint into individual endpoints for specific concerns (i.e. geographies, languages, etc.). Pros:
Cons:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Commenting here during discussion meeting as too long for meet chat: |
Beta Was this translation helpful? Give feedback.
-
We have accepted the proposed solution. |
Beta Was this translation helpful? Give feedback.
-
For me, representing the front-end, as a matter of priority I order the issues in this order:
For geographies I am far less concerned in the short-term because the existing structure is not too bad in my opinion and the code to transform it is because of how it is used, as opposed to transforming because the existing structure is unworkable. If that makes sense? |
Beta Was this translation helpful? Give feedback.
We have accepted the proposed solution.