Repository navigation
Conversation
Otherwise display import date together with graphhopper back-end version.
|
Would it be fine if we just log this information in the console instead of putting it in the UI for now? We log the Maps version already here: https://github.com/graphhopper/graphhopper-maps/blob/master/src/index.tsx#L33 |
| <div className={styles.dataVersionLine}> | ||
| {(getApiInfoStore().state.data_date ==='') && ( | ||
| <div>Import from {getApiInfoStore().state.import_date} </div> | ||
| )} | ||
| {(getApiInfoStore().state.data_date !=='') && ( | ||
| <div>Graph data from {getApiInfoStore().state.data_date} </div> | ||
| )} | ||
| <div>Version {getApiInfoStore().state.version} </div> |
There was a problem hiding this comment.
Accessing the properties from the store directly shouldn't be done (reactjs might cause problems) and instead the props of the function (Search) should be extended or here probably a new argument would be necessary
There was a problem hiding this comment.
Thanks, I implemented the suggestion here: e1ab38d
|
Maybe we could put the data/import date into the UI and log the backend version? I believe that the data date is important information for most users, while the exact backend version is only interesting to developers. |
The problem about the data/import date is that it is not a single value. Behind the scene of our API we have different clusters and so there different values for this and a single value is misleading. But when print this via console.log we know that only devs read it and could comment in the logs about the shortcomings. |
If I understood this correctly then the data/import date would probably need to be moved from the |
|
@karussell maybe you could you set the backend information as a header to include it? e.g |
|
Closed in favour of graphhopper/graphhopper#2806 |
I'm missing the graph data date information in the new maps. Therefore I created this PR which shows the OSM data date if availailable and as a fallback the import date. Besides that the graphhopper back-end version is displayed.