psyinfra / onyo

text-based inventory system on top of git
ISC License
3 stars 5 forks source link

Feature Request: expose git metadata as pseudo-keys #662

Open aqw opened 2 weeks ago

aqw commented 2 weeks ago

We have long discussed making various bits of git metadata queryable, most especially the creation date and last modification date.

Git already has all this information, and would support use-cases such as #428 .

The two "must haves" are creation date and last modification date. However, there is additional metadata we could expose such as committer and author (though I have no real use-cases for it).

All keys will live under the onyo.git namespace (see #688).

Proposed names: 1) - created

aqw commented 2 weeks ago

Ideas are most welcome. :-)

aqw commented 1 week ago

After some though, I prefer option 1. It's the only known use-case.

I dislike adding _date as the type, aa the returned data will actually be date-time.

If we do eventually end up adding the other fields, I propose the following:

created
created_author
created_committer
modified
modified_author
modified_committer