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] Display attachments #8346

Merged

Conversation

CamilleBeau
Copy link
Contributor

@CamilleBeau CamilleBeau commented Jan 31, 2023

Brief summary of changes

This PR was originally made by Pierre Pac-Soo on CCNA here. The changes allow image attachments to be displayed in the issue instead of having to download.

  • Have you updated related documentation?

Testing instructions (if applicable)

  1. Upload attachment to an issue
  2. Make sure that attachment displays properly in issue

Link(s) to related issue(s)

@CamilleBeau CamilleBeau added the Feature PR or issue introducing/requiring at least one new feature label Jan 31, 2023
@laemtl laemtl added this to the 25.0.0 milestone Feb 28, 2023
@GeorgeMurad GeorgeMurad self-requested a review March 14, 2023 15:44
Copy link
Contributor

@GeorgeMurad GeorgeMurad left a comment

Choose a reason for hiding this comment

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

@LeighMac @CamilleBeau I have tested the new feature and it works perfectly.

@driusan
Copy link
Collaborator

driusan commented Mar 22, 2023

@CamilleBeau can't merge because of a conflict in the changelog, can you rebase?

@CamilleBeau
Copy link
Contributor Author

@CamilleBeau can't merge because of a conflict in the changelog, can you rebase?

Done! Sorry abou that.

@driusan driusan merged commit 40f4d59 into aces:main Mar 28, 2023
{regexImg.test(item.mime_type) ?
(<img
src={this.props.baseURL +
'/issue_tracker/Attachment' +
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think this is a very nice URL. It would be better if it was routed as something like https://example.com/issue_tracker/issue/1234/attachments/filename.pdf but I'm not gonna block over it because the endpoint is already there.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Feature PR or issue introducing/requiring at least one new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Issue tracker] - Attachment not visible
4 participants