[FOLIO-857] Show the date that the FOLIO system was built Created: 26/Sep/17  Updated: 18/Jan/19

Status: Open
Project: FOLIO
Components: None
Affects versions: None
Fix versions: None

Type: New Feature Priority: P3
Reporter: Mike Taylor Assignee: Wayne Schneider
Resolution: Unresolved Votes: 0
Labels: for-next-sprint
Remaining Estimate: Not Specified
Time Spent: 1 hour
Original estimate: Not Specified

Sprint:
Development Team: Core: Platform

 Description   

Not for the first time, I found myself wondering when http://folio-stable.aws.indexdata.com/ was last built. It would probably be possible to narrow it down to a date-range based on the version of the various modules that are included and what's known about their release schedule. But it would be much nicer if the About page just said "Built on 2017-09-26T12:32:16".



 Comments   
Comment by Mike Taylor [ 26/Sep/17 ]

Fixing this will involve making the build-time information somehow available within a running FOLIO system, and then modifying the About page to read and display that information.

The latter should be trivial once we have the former. But how to tell a FOLIO installation when the last build was?

I guess practically I could have the package2md.js embed a timestamp in a generated field of the stripes-core module descriptor – but will that field make its way into the available information?

Or (yuck!) I could embed an ISO-format timestamp in the generated stripes-core module ID, at least as a short-term solution. Then the About page, knowing that convention, could pluck it out and display it.

The advantage of this ugly-ass solution is that it would only touch one part of the system: stripes-core, which both generates the UI modules' descriptors and displays the About page which summarises them.

Comment by Mike Taylor [ 26/Sep/17 ]

After discussion with Wayne, we concluded that much less ugly approach is to set an environment variable for Okapi – something like

BUILDTIMESTAMP=`date -u +'%Y-%m-%dT%H:%M:S'`

We think it should then be possible to obtain that at run-time using `/_/env`.

Comment by Mike Taylor [ 26/Sep/17 ]

See https://github.com/folio-org/okapi/blob/master/doc/guide.md#environment-variables

Generated at Thu Feb 08 23:08:50 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.