#1592  Related issues randomly garbled when importing from YouTrack
Released
wojtek opened 7 months ago

Followup to https://code.onedev.io/onedev/server/~issues/704

The import and linking works, but the linked issues are incorrect or missing.

  • count of linked issues is correct - if there where 4 linked issues there are 4 linked issues, but those are random issues from the same project (the links are usually inter-project)
  • the other side of the link (the "linked issues") quite often (always?) lack the links.

(the import didn't finish with "success" as after 40 minutes I started getting 502/bad gateway from nginx while accessing endpoint ~projects/import/YouTrack?43-5.IBehaviorListener.0-rootComponents-1-dialog-content=, possibly related to https://code.onedev.io/onedev/server/~issues/1073)

Robin Shen commented 7 months ago

Thanks for reporting. Will check this.

wojtek commented 7 months ago

Is there anything I can provide you with that could help with solving the issue? I checked the logs but they seemed rather general.

Robin Shen commented 7 months ago

My test here is that only links to issues of same project will be processed. Links to issues of other projects will be ignored.

Are you importing projects from project list page, or importting issues from issues page of a project?

Robin Shen commented 7 months ago

I do find the bug that OneDev will link to issue with same number in current project for cross-project issue links. This will be fixed in upcoming 9.2 release.

Robin Shen commented 7 months ago

As to 502 error please make sure that the machine is not sleep during importing.

Referenced from commit 7 months ago
OneDev changed state to 'Closed' 7 months ago
Previous Value Current Value
Open
Closed
OneDev commented 7 months ago

State changed as code fixing the issue is committed (a0858b78)

OneDev changed state to 'Released' 7 months ago
Previous Value Current Value
Closed
Released
OneDev commented 7 months ago

State changed as build #4194 is successful

wojtek commented 7 months ago

My test here is that only links to issues of same project will be processed. Links to issues of other projects will be ignored.

Are cross-project links not supported at all?

Are you importing projects from project list page, or importting issues from issues page of a project?

From main project list (<hostname>/~projects)

I do find the bug that OneDev will link to issue with same number in current project for cross-project issue links. This will be fixed in upcoming 9.2 release.

Awesome, you mean this release/build: https://code.onedev.io/onedev/server/~builds/4194 ?

As to 502 error please make sure that the machine is not sleep during importing.

After the previous report (https://code.onedev.io/onedev/server/~issues/1073) I made sure that the computer didn't sleep, the page was active. In the dev console I saw a request to the server couple of times per second or so that failed hitting almost exactly 40m mark -- is there another hard limit to 40 minutes (in addition to 5 minutes inactivity timeout for when the computer sleeps or the session stops for some reason)?

image.png

Robin Shen commented 7 months ago

Are cross-project links not supported at all?

It is not supported at all. However for projects import, it should be possible to handle that if all related projects are imported all at once. I filed an improvement request for this (#1595).

As to 502 error, there is no other limit at OneDev side except for session timeout, which should not happen if browser remains active. Please connect to OneDev 6610 port directly to bypass your reverse proxy to see if the problem still exist.

Robin Shen commented 7 months ago

Awesome, you mean this release/build: https://code.onedev.io/onedev/server/~builds/4194 ?

Exactly

wojtek commented 7 months ago

Are cross-project links not supported at all?

It is not supported at all. However for projects import, it should be possible to handle that if all related projects are imported all at once. I filed an improvement request for this (#1595).

Indeed I'm using "import all projects" (hence my assumption that it should be supported, or at least possible). I subscribed to that issue :-)

As to 502 error, there is no other limit at OneDev side except for session timeout, which should not happen if browser remains active. Please connect to OneDev 6610 port directly to bypass your reverse proxy to see if the problem still exist.

Do you mean I should try doing import while connecting directly to 1dev altogether?

Robin Shen commented 7 months ago

Do you mean I should try doing import while connecting directly to 1dev altogether?

Yes, just in case there are some mis-configurations at nginx side.

wojtek commented 6 months ago

However for projects import, it should be possible to handle that if all related projects are imported all at once. I filed an improvement request for this (#1595).

I wonder if it would be possible to maintain the links upon (re-)importing single project if all other projects are already in the system - a case somewhat similar to "import all projects at once".

Robin Shen commented 6 months ago

To re-establish links between newly imported issues and existing issues, the import history info needs to be maintained which is very complicated and can also bloat the database.

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
Affected Versions
9.1.11
Labels
No labels
Issue Votes (0)
Watchers (3)
Reference
onedev/server#1592
Please wait...
Page is in error, reload to recover