--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/117e5e72-a33c-44a6-9cd6-b62c4805b167%40googlegroups.com.
+1 from my sideAnd thanks for looking at my changes, where I started to do this for the logs [1-2]. I will adapt these changes to use ISO 8601 and move them to master as you suggested.We should definitely use the same format in all places, IMHO.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/CAG7bb4Cex8SAYETxs52BPawOAbfB%3Dx%2BVKYBg6SaeraTuT7-VQw%40mail.gmail.com.
On Fri, Feb 28, 2020 at 12:10 PM Thomas Dräbing <thomas....@gmail.com> wrote:+1 from my sideAnd thanks for looking at my changes, where I started to do this for the logs [1-2]. I will adapt these changes to use ISO 8601 and move them to master as you suggested.We should definitely use the same format in all places, IMHO.+3 ;-0)On Fri, 28 Feb 2020 at 11:47, Sven Selberg <sven.s...@axis.com> wrote:Hi,The fact that Gerrit doesn't use ISO 8601 (logs, REST API, ....) has popped up in various places for me lately.The only place that uses ISO 8601 in Gerrit is when storing comments in Note DB[1].We are currently sooo close to ISO 8601 [2] that it doesn't make sense to me that we aren't taking the full step.REST API:'yyyy-mm-dd hh:mm:ss.fffffffff' -> 'yyyy-mm-ddThh:mm:ss.fffffffffZ'
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/CAKSZd3R7VWz_Q%3DkzxoqeCn-Q8h51Nwse0ynAEieiKTZtxujE5g%40mail.gmail.com.
On Fri, Feb 28, 2020 at 12:12 PM Matthias Sohn <matthi...@gmail.com> wrote:
On Fri, Feb 28, 2020 at 12:10 PM Thomas Dräbing <thomas....@gmail.com> wrote:
+1 from my sideAnd thanks for looking at my changes, where I started to do this for the logs [1-2]. I will adapt these changes to use ISO 8601 and move them to master as you suggested.We should definitely use the same format in all places, IMHO.+3 ;-0)
On Fri, 28 Feb 2020 at 11:47, Sven Selberg <sven....@axis.com> wrote:Hi,The fact that Gerrit doesn't use ISO 8601 (logs, REST API, ....) has popped up in various places for me lately.The only place that uses ISO 8601 in Gerrit is when storing comments in Note DB[1].We are currently sooo close to ISO 8601 [2] that it doesn't make sense to me that we aren't taking the full step.REST API:'yyyy-mm-dd hh:mm:ss.fffffffff' -> 'yyyy-mm-ddThh:mm:ss.fffffffffZ'
The suggestion makes sense to me but I worry about backwards compatibility.It will be a huge effort to find and fix all callers who parse timestamps that are returned from the REST API.
To unsubscribe, email repo-d...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/117e5e72-a33c-44a6-9cd6-b62c4805b167%40googlegroups.com.
--
--
To unsubscribe, email repo-d...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/CAG7bb4Cex8SAYETxs52BPawOAbfB%3Dx%2BVKYBg6SaeraTuT7-VQw%40mail.gmail.com.
--
--
To unsubscribe, email repo-d...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-d...@googlegroups.com.
Other services have mitigated similar issues by having versions of the REST API.
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/f9250569-2663-48b1-a13c-a5ac6cee380e%40googlegroups.com.
> On 28 Feb 2020, at 17:28, Martin Fick <mf...@codeaurora.org> wrote:
>
> On Friday, February 28, 2020 4:09:03 AM MST Sven Selberg wrote:
>> After getting some more feedback on this suggestion, I will put together a
>> feature-suggestion for using a global, configurable timestamp format.
>
> Global switches generally don't help users migrate. A smoother transition
> would likely be achieved by introducing new fields with the new format and
> then slowly deprecating the old fields with the old formats. This approach
> allows admins to run a version which supports both old and new formats at the
> same time so that their users have time to migrate to the new format
> incrementally after the upgrade making upgrades seemless to users,
+1 to that, we should also think about rolling upgrades and having the old and new field side-by-side would allow a smoother migration.
Luca.
>
> -Martin
>
>
> --
> The Qualcomm Innovation Center, Inc. is a member of Code
> Aurora Forum, hosted by The Linux Foundation
>
> --
> --
> To unsubscribe, email repo-d...@googlegroups.com
> More info at http://groups.google.com/group/repo-discuss?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to repo-d...@googlegroups.com.
On Saturday, February 29, 2020 at 12:57:01 PM UTC+1, lucamilanesio wrote:
> On 28 Feb 2020, at 17:28, Martin Fick <mf...@codeaurora.org> wrote:
>
> On Friday, February 28, 2020 4:09:03 AM MST Sven Selberg wrote:
>> After getting some more feedback on this suggestion, I will put together a
>> feature-suggestion for using a global, configurable timestamp format.
>
> Global switches generally don't help users migrate. A smoother transition
> would likely be achieved by introducing new fields with the new format and
> then slowly deprecating the old fields with the old formats. This approach
> allows admins to run a version which supports both old and new formats at the
> same time so that their users have time to migrate to the new format
> incrementally after the upgrade making upgrades seemless to users,
+1 to that, we should also think about rolling upgrades and having the old and new field side-by-side would allow a smoother migration.
Luca.
If we can live with the duplication and extra payload to the REST responses we could go for a duplication of time-stamps:created: "2020-03-02 08:45:44.000000000"created_iso8601: "2020-03-02T09:45:44.000000000+01.00"
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/117e5e72-a33c-44a6-9cd6-b62c4805b167%40googlegroups.com.
Thanks for taking the proposal under consideration.
With Martin's suggestion for the REST API: additional field with ISO8601 format, we keep backwards compatibility with the cost of a little bit of bandwidth.
I'll see if I can't find some time soon to drum up a change for the ESC to look at.
BR
Sven
We had discussed the additional field a little and had a few concerns:- There are a lot of timestamp fields in the API, so we would add quite some "clutter".- The name for the new fields would be pretty ugly (created_iso8601), so instead of eventually removing the original fields (created) you would probably want to get the new content into the old fields names.If you propose a change, then please also mention why this is important to you and what the benefit is for the community at large.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/CAEWS%2BaNp4jzQ81fhqWAh4jnX%2Bze3X1KN9TFHLdDBGj24734jTg%40mail.gmail.com.
Google Germany GmbH, Erika-Mann-Strasse 33, 80636 Munich
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Paul Manicle, Halimah DeLaine Prado
On Tue, Mar 24, 2020 at 4:01 PM 'Ben Rohlfs' via Repo and Gerrit Discussion <repo-d...@googlegroups.com> wrote:We had discussed the additional field a little and had a few concerns:- There are a lot of timestamp fields in the API, so we would add quite some "clutter".- The name for the new fields would be pretty ugly (created_iso8601), so instead of eventually removing the original fields (created) you would probably want to get the new content into the old fields names.If you propose a change, then please also mention why this is important to you and what the benefit is for the community at large.Not an ESC member, but I also have opinions, and experience with difficult cleanups.Adding an extra field is easy, but from the perspective of the gerrit code base, we only get benefit when we remove the old field, and that is extraordinarily difficult, because you have to find all the callers, and make them use the new field.This sets a bad precedent, and would open the door to adding more fields for compatibility sake, which doesn't scale.FWIW, I think it would be much more defensible if Gerrit would also accept ISO8601-formatted timestamps on the input, but that would only solve half of your problem.
-Ben
To unsubscribe, email repo-...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/117e5e72-a33c-44a6-9cd6-b62c4805b167%40googlegroups.com.
--
--
To unsubscribe, email repo-d...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/CAEWS%2BaNp4jzQ81fhqWAh4jnX%2Bze3X1KN9TFHLdDBGj24734jTg%40mail.gmail.com.