Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@sanjay-thiyagarajan
Copy link
Collaborator

Brief summary of changes

  • Added "description" field to "issues" table
  • Created script "update_issues_with_description.php" for copying all the existing descriptions from "issues_comments" table
  • Updated raisinbread SQL file to reflect the change in field
  • Added a new field to the issue creation / modification form in the UI.

Link(s) to related issue(s)

@sanjay-thiyagarajan sanjay-thiyagarajan changed the title Add description field to issues table [IssueTracker] Add description field to issues table Aug 11, 2023
@sanjay-thiyagarajan sanjay-thiyagarajan self-assigned this Aug 11, 2023
@christinerogers christinerogers added the Event: GSOC PR or issue accepted for Google Summer of Code label Sep 5, 2023
@christinerogers
Copy link
Contributor

@racostas is this ready for your review?

@racostas
Copy link
Contributor

racostas commented Sep 5, 2023

@racostas is this ready for your review?

Yes, I did a first pass with him "in person" before the end of the GSoC period. The comments were properly addressed but it's missing a second test/review. I had been a bit taken with CCNA upgrade since them. If after second review there is something to fix I will take care myself.

@christinerogers
Copy link
Contributor

Thanks @racostas

@SantiagoTG or @driusan or @ridz1208 could you please suggest/nominate an additional reviewer on this PR?
Just to confirm the Issue tracker comments/description will work as intended by the team.

Then it should be ready to merge to help our GSOC student wrap up his summer. thanks!

Copy link
Collaborator

@CamilleBeau CamilleBeau left a comment

Choose a reason for hiding this comment

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

Missing the patch in "New_patches" directory to add the changes

Getting this error:
image

@CamilleBeau CamilleBeau assigned racostas and unassigned driusan Feb 1, 2024
@racostas racostas requested a review from CamilleBeau February 6, 2024 19:23
@CamilleBeau CamilleBeau added the State: Needs work PR awaiting additional work by the author to proceed label Feb 6, 2024
@racostas racostas removed the State: Needs work PR awaiting additional work by the author to proceed label Feb 6, 2024
@racostas racostas requested a review from CamilleBeau February 6, 2024 21:47
Copy link
Collaborator

@CamilleBeau CamilleBeau left a comment

Choose a reason for hiding this comment

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

Everything works well now. The only thing (but I don't think it's related to this PR) is that the "New issue" page does not load because there is a missing jsx/Form import for FileElement. This can be solved by adding this line in IssueForm.js
image

I added it to test. Even though it's not caused by this PR I think it would be good to fix here

@racostas
Copy link
Contributor

racostas commented Feb 7, 2024

Everything works well now. The only thing (but I don't think it's related to this PR) is that the "New issue" page does not load because there is a missing jsx/Form import for FileElement. This can be solved by adding this line in IssueForm.js image

I added it to test. Even though it's not caused by this PR I think it would be good to fix here

Yes, definitely something we can address in as part of this PR too. Thanks Camille.

@racostas
Copy link
Contributor

racostas commented Feb 9, 2024

ready to be re-reviewed.

@ay-bh
Copy link
Contributor

ay-bh commented Jun 17, 2024

@racostas I have tested the changes, and they work as expected without any issues. Looks good to me!

@racostas racostas requested a review from ay-bh June 17, 2024 18:05
@ay-bh ay-bh added the Passed manual tests PR has been successfully tested by at least one peer label Jun 17, 2024
@driusan
Copy link
Collaborator

driusan commented Jun 17, 2024

@CamilleBeau GitHub still says you requested changes, can you re-review?

Copy link
Contributor

@ay-bh ay-bh left a comment

Choose a reason for hiding this comment

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

tools/update_issues_with_description.php gives this error.

[DEBUG] SELECT issueID FROM issues_comments
[DEBUG] SELECT `description` FROM issues WHERE issueID=:14 LIMIT 2
[DEBUG] SELECT issueComment
            FROM issues_comments ic
            WHERE ic.issueID = :14
            ORDER BY ic.dateAdded ASC
            LIMIT 1 LIMIT 2
PHP Fatal error:  Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 2' at line 5 in /var/www/loris/php/libraries/Database.class.inc:695
Stack trace:
#0 /var/www/loris/php/libraries/Database.class.inc(695): PDOStatement->execute()
#1 /var/www/loris/php/libraries/Database.class.inc(745): Database->execute()
#2 /var/www/loris/php/libraries/Database.class.inc(841): Database->pselect()
#3 /var/www/loris/php/libraries/Database.class.inc(981): Database->pselectRow()
#4 /var/www/loris/tools/update_issues_with_description.php(52): Database->pselectOne()
#5 {main}
  thrown in /var/www/loris/php/libraries/Database.class.inc on line 695

@CamilleBeau
Copy link
Collaborator

@CamilleBeau GitHub still says you requested changes, can you re-review?

@driusan Done!

ay-bh added 2 commits June 18, 2024 08:36
Fixed :    PHP Fatal error:  Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 2' at line 5 in /var/www/loris/php/libraries/Database.class.inc:695
Copy link
Contributor

@racostas racostas left a comment

Choose a reason for hiding this comment

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

@driusan, I re-reviewed this one. All looks good to me. If all fine, let merge it. It's a good feature for the study tracker.

@racostas racostas requested a review from driusan July 2, 2024 14:57
@driusan driusan added Release: Add to release notes PR whose changes should be highlighted in the release notes Release: Document at release PR whose changes need to be documented in the wiki (or other documentation) at release labels Jul 2, 2024
@driusan driusan merged commit e211783 into aces:main Jul 2, 2024
maximemulder pushed a commit to maximemulder/Loris that referenced this pull request Sep 25, 2024
Add an explicit "description" table to the issues table. The description is currently counter-intuitively taken from the first comment which is counter-intuitive and makes it impossible to edit a description after an issue is created. This adds an explicit column.

Resolves aces#8353
ZhichGaming pushed a commit to ZhichGaming/Loris that referenced this pull request Nov 25, 2024
Add an explicit "description" table to the issues table. The description is currently counter-intuitively taken from the first comment which is counter-intuitive and makes it impossible to edit a description after an issue is created. This adds an explicit column.

Resolves aces#8353
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Event: GSOC PR or issue accepted for Google Summer of Code Passed manual tests PR has been successfully tested by at least one peer Release: Add to release notes PR whose changes should be highlighted in the release notes Release: Document at release PR whose changes need to be documented in the wiki (or other documentation) at release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[issue tracker] Can not edit description of already created issue.

6 participants