Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Issue_tracker] bug fix for 20.3-release | can't edit an issue #4454

Merged
merged 4 commits into from
Apr 26, 2019

Conversation

kongtiaowang
Copy link
Contributor

Brief summary of changes

Give an issueID on url.

This resolves issue...

https://redmine.cbrain.mcgill.ca/issues/16241

To test this change...

edit an issue

@kongtiaowang kongtiaowang added the Bug PR or issue introducing/requiring bug fixes (not mutually exclusive with the Feature label) label Apr 10, 2019
@kongtiaowang
Copy link
Contributor Author

@ridz1208
This PR is for the 20.3-release

@@ -26,7 +26,7 @@ function formatColumn(column, cell, rowData, rowHeaders) {
if (column === 'Title') {
let cellLinks = [];
cellLinks.push(
<a href={loris.BaseURL + '/issue_tracker/issue/' + row['Issue ID']}>
<a href={loris.BaseURL + '/issue_tracker/issue/?issueID=' + row['Issue ID']}>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not correct. The ID should be coming from the handle method parsing the URL at https://github.com/aces/Loris/blob/minor/modules/issue_tracker/php/issue.class.inc#L144

Copy link
Contributor Author

@kongtiaowang kongtiaowang Apr 11, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@driusan If use RESTful API in this case, the "QueryString.get()" will get a null value.
Major branch is also using "?issueID=" on URL. I think if you need this to be fixed, it should be on Major branch.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in that case the major branch is wrong and also needs to be fixed. The ID should be coming from the URL, not the query string

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@driusan will look into the handle function and try to solve the issue

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@driusan @ridz1208 could u review again?

Copy link
Collaborator

@driusan driusan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see previous comment

@ridz1208 ridz1208 added this to the 20.3.0 milestone Apr 11, 2019
@ridz1208 ridz1208 added the Critical to release PR or issue is key for the release to which it has been assigned label Apr 11, 2019
@ridz1208
Copy link
Collaborator

#3942

@driusan driusan merged commit 7fa999b into aces:20.3-release Apr 26, 2019
ycAbout pushed a commit to ycAbout/Loris that referenced this pull request Apr 29, 2019
…4454)

Fix bug where an issue could not be edited in issue tracker, they would create a new issue instead.
nicolasbrossard pushed a commit to nicolasbrossard/Loris that referenced this pull request Jun 26, 2019
…4454)

Fix bug where an issue could not be edited in issue tracker, they would create a new issue instead.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Bug PR or issue introducing/requiring bug fixes (not mutually exclusive with the Feature label) Critical to release PR or issue is key for the release to which it has been assigned
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants