public inbox for [email protected]
help / color / mirror / Atom feedFrom: Corey Huinker <[email protected]>
To: [email protected]
Subject: Expose version.firstreldate in versions.json
Date: Wed, 18 Oct 2023 11:03:42 -0400
Message-ID: <CADkLM=cmR5P7GpqCRibLmiuppoQ8tsXyjkZNYP+bCZqmh2Vy8A@mail.gmail.com> (raw)
It's already a part of the versions data structure, and I can see
consumers wanting to know when a major release first came out.
Attachments:
[application/octet-stream] v1-0001-Expose-version.firstreldate-in-versions.json.patch (892B, 3-v1-0001-Expose-version.firstreldate-in-versions.json.patch)
download | inline diff:
From 5df43f8406753afc5585717bea23f8565a5f2140 Mon Sep 17 00:00:00 2001
From: Corey Huinker <[email protected]>
Date: Wed, 18 Oct 2023 10:59:19 -0400
Subject: [PATCH v1] Expose version.firstreldate in versions.json.
It's already a part of the versions data structure, and I can see
consumers wanting to know when a major release first came out.
---
pgweb/core/json.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/pgweb/core/json.py b/pgweb/core/json.py
index 842dc529..ce5ef5da 100644
--- a/pgweb/core/json.py
+++ b/pgweb/core/json.py
@@ -8,6 +8,7 @@ def version_to_json(version):
'major': str(version.numtree),
'latestMinor': str(version.latestminor),
'relDate': version.reldate,
+ 'firstRelDate', version.firstreldate,
'eolDate': version.eoldate,
'current': version.current,
'supported': version.supported,
--
2.41.0
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: Expose version.firstreldate in versions.json
In-Reply-To: <CADkLM=cmR5P7GpqCRibLmiuppoQ8tsXyjkZNYP+bCZqmh2Vy8A@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox