Currently if an issue is moved from a non-public project into a public one, any self-references it contains will result in a 404. Similarly any references to it from other public issues will also 404 (though "Links" will automatically update).
To work around this, I want to introduce support for JIRAs moved issues functionality - that is, generate a page for that issue (regardless of whether it's parent project is public) which redirects the user to the new issue.
The original issue key as well as the ID of the new issue can be obtained from the table moved_issue_key
mysql> describe moved_issue_key;
+---------------+---------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+---------------+---------------+------+-----+---------+-------+
| ID | decimal(18,0) | NO | PRI | NULL | |
| OLD_ISSUE_KEY | varchar(255) | YES | UNI | NULL | |
| ISSUE_ID | decimal(18,0) | YES | | NULL | |
+---------------+---------------+------+-----+---------+-------+
We're going to want to limit result sets to only retrieve matches where the
new project is accessible by the user.
A page should be generated (under browse) which details that the page has been moved and attempts a JS redirect to the new page (providing a link for those who don't have JS enabled).
Also need to look at whether there's a good way to indicate to Google that the page has moved (can't send a 301/302 as it'll break sites created with a mirror script).
Activity
2016-04-29 12:39:31
2016-04-29 12:44:50
2016-04-29 12:49:12
2016-04-29 13:10:20
Commit 8072935 introduces an index page for all moved issues (required for the wget mirror to work)
2016-04-29 13:11:27
Webhook User-Agent
View Commit
2016-04-29 13:34:25
Will look at merging the changes into v0.1 shortly
2016-04-29 13:34:42
2016-04-29 13:35:09
2016-04-29 13:35:26
Webhook User-Agent
View Commit
2016-04-29 13:35:27
Webhook User-Agent
View Commit
2016-04-29 13:43:13
2016-04-29 13:43:15
2016-04-29 13:56:57
Moving onto merging the changes into V0.1
2016-04-29 13:56:58
2016-04-29 13:57:19
2016-04-29 13:57:26
Webhook User-Agent
View Commit
2016-04-29 14:16:06
2016-04-29 14:17:26
Webhook User-Agent
View Commit
2016-04-29 14:27:26
Webhook User-Agent
View Commit
2016-04-29 14:27:34
2016-04-29 14:30:20
2016-04-29 14:37:27
Webhook User-Agent
View Commit
2016-04-29 14:37:59
Will backport that change into 0.01b, though to avoid merge headaches later, I've created a new branch 0.01b-backports for any future backports to be applied to
2016-04-29 14:38:17
2016-04-29 14:43:28
Webhook User-Agent
View Commit
2016-04-29 14:44:53
Marking this issue as complete as there's not really anything extra to do for it. Although JILS-44 is creating plaintext representations of Issues, it relies on there being a rel="alternate" in the HTML page. I don't see a vast amount of value in adding that to the moved issue page just to display a text file which can't do any more than say "This issue has moved to x"
2016-04-29 14:45:15
2016-04-29 14:45:25
2016-04-29 14:45:25
2016-04-29 14:45:29