Pagure migration incorrectly sets due dates for milestones #281

Closed
opened 2025-11-14 14:14:06 +00:00 by kparal · 13 comments

All milestones for a project that I migrated from Pagure (source, target) have the Due date set for all milestones at 01/01/0001 (I see this when editing the milestone; in the regular view, I just see a dash, probably meaning "incorrect date").

There seems to be some problem when migrating the dates.

All milestones for a project that I migrated from Pagure ([source](https://pagure.io/fedora-qa/roadmap?status=all), [target](https://forge.stg.fedoraproject.org/quality/tickets/milestones?state=open&q=&sort=closestduedate)) have the _Due date_ set for all milestones at `01/01/0001` (I see this when editing the milestone; in the regular view, I just see a dash, probably meaning "incorrect date"). There seems to be some problem when migrating the dates.
ryanlerch added this to the Backlog project 2025-11-17 10:20:22 +00:00
ryanlerch modified the project from Backlog to Sprint 12 2025-11-18 01:51:20 +00:00
Member
Associated PR. https://codeberg.org/fedora/forgejo/pulls/80
Member

Here's how the change works.

At source

image

At destination

image

image

Here's how the change works. At source ![image](/attachments/c51b1b12-fa76-4dfe-a392-d1553a73ece8) At destination ![image](/attachments/8f0b7480-7353-4431-b55f-a9f24d950d50) ![image](/attachments/90b97c6e-cd61-4898-b44b-793db2b2bf71)
Author

Huh, I had no idea that Pagure milestones can be configured with unix timestamps 🙂 Will it work for YYYY-MM-DD (as we use it) as well?

Huh, I had no idea that Pagure milestones can be configured with unix timestamps 🙂 Will it work for YYYY-MM-DD (as we use it) as well?
Member

I am uncertain as to which is the default. Pagure just had a textbox. I can make it work with YYYY-MM-DD as well but I need more info on this as there might be other formats used by others too. @ryanlerch, have you got ideas?

I am uncertain as to which is the default. Pagure just had a textbox. I can make it work with `YYYY-MM-DD` as well but I need more info on this as there might be other formats used by others too. @ryanlerch, have you got ideas?
Member
Associated PR. https://codeberg.org/forgejo/forgejo/pulls/10169
Author

If the fields in Pagure milestones are just a text box, it's very unlikely that anyone would use unix timestamps, because that would be unreadable for humans. So if anything, I'd love to see at least the most common YYYY-MM-DD to be implemented, thanks a lot.

If the fields in Pagure milestones are just a text box, it's very unlikely that anyone would use unix timestamps, because that would be unreadable for humans. So if anything, I'd love to see at least the most common `YYYY-MM-DD` to be implemented, thanks a lot.
Member

I would additionally add support for YYYY-MM-DD but restrict the scope of the ticket there only as the milestone dates on Pagure are not semantic in nature. Thanks!

I would additionally add support for `YYYY-MM-DD` but restrict the scope of the ticket there only as the milestone dates on Pagure are not semantic in nature. Thanks!
Author

Sorry, I don't understand. Is YYYY-MM-DD implemented now? I'm waiting for this before we migrate our main QA tickets repo, because I don't want to fix all the milestones by hand.

Sorry, I don't understand. Is `YYYY-MM-DD` implemented now? I'm waiting for this before we migrate our main QA tickets repo, because I don't want to fix all the milestones by hand.
Author

@t0xic0der Now that #306 is closed, I tested it on forge.stg and it still doesn't work. Should this be already deployed? If not, please tell me when, so that I can test it. Thanks.

@t0xic0der Now that #306 is closed, I tested it on forge.stg and it still doesn't work. Should this be already deployed? If not, please tell me when, so that I can test it. Thanks.
Author

This is still not working with https://pagure.io/fedora-qa , reopening. @t0xic0der Can you please look into this?

This is still not working with https://pagure.io/fedora-qa , reopening. @t0xic0der Can you please look into this?
kparal reopened this issue 2026-01-08 09:33:15 +00:00
Member

@kparal, this change is expected to be shipped with Forgejo v14.0.0 release as mentioned in this milestone associated with the pull request that I have sent upstream. We have Forgejo v13.0.3-10 deployed at the time of writing this issue comment. Could you please wait until the changes roll in this deployment before you attempt migrating again? Alternatively, you could consider reaching out to the upstream to see if they can ship this change at the earliest possible. Thanks!

@kparal, this change is expected to be shipped with Forgejo v14.0.0 release as mentioned in this milestone associated with the [pull request](https://codeberg.org/forgejo/forgejo/pulls/10299#issuecomment-9138804) that I have sent upstream. We have [Forgejo v13.0.3-10](https://codeberg.org/forgejo/forgejo/src/branch/forgejo/release-notes-published/13.0.3.md) deployed at the time of writing this issue comment. Could you please wait until the changes roll in this deployment before you attempt migrating again? Alternatively, you could consider reaching out to the upstream to see if they can ship this change at the earliest possible. Thanks!
Member

@kparal, I am opening another issue ticket that specifically tracks the deployment of this change. Rest assured, we will ensure that this change gets to us - either as soon as possible or whenever it is slated. Thanks!

@kparal, I am opening another issue ticket that specifically tracks the deployment of this change. Rest assured, we will ensure that this change gets to us - either as soon as possible or whenever it is slated. Thanks!
Author

@t0xic0der wrote in #281 (comment):

this change is expected to be shipped with Forgejo v14.0.0 release

Thanks for checking. Forgejo 14 milestone is currently marked for Jan 15th. We'll wait.

@t0xic0der wrote in https://forge.fedoraproject.org/forge/forge/issues/281#issuecomment-260871: > this change is expected to be shipped with Forgejo v14.0.0 release Thanks for checking. [Forgejo 14 milestone](https://codeberg.org/forgejo/forgejo/milestone/27583) is currently marked for Jan 15th. We'll wait.
Sign in to join this conversation.
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
forge/forge#281
No description provided.