Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Images to attachments #47

Merged
merged 32 commits into from
Feb 12, 2024
Merged

Images to attachments #47

merged 32 commits into from
Feb 12, 2024

Conversation

micha91
Copy link
Collaborator

@micha91 micha91 commented Feb 6, 2024

Depends on #42, includes all functionality from #18
Closes #4, #15, #16, #18

Known issues:

  • Tests on GitLab fail due to missing cairo dependency
  • Tests on GitHub work, but take nearly forever on Windows as we need to install GTK-Runtine
  • The Word-Exporter of Polarion seems to not support images styled with a percent based width. At least the word export just breaks completely with a Java typical stack trace and the following exception somewhere in it:
    • Caused by: java.lang.IllegalArgumentException: Conversion %->px is not supported

Depends on py-capellambse #378.

Copy link
Member

@ewuerger ewuerger left a comment

Choose a reason for hiding this comment

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

Just this one suggestion. LGTM.

title="Diagram",
attachment_id="1-__C2P__diagram.svg",
width=750,
cls="diagram",
)
assert work_item.get_current_checksum() == DIAGRAM_CHECKSUM
Copy link
Member

Choose a reason for hiding this comment

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

Is that really sth. we want to test here. The checksum will change on any future change and needs an update then. I'd just ignore it. The interesting part is tested already.

@ewuerger ewuerger merged commit a296c82 into main Feb 12, 2024
0 of 5 checks passed
@ewuerger ewuerger deleted the images-to-attachments branch February 12, 2024 15:56
ewuerger added a commit that referenced this pull request Aug 27, 2024
ewuerger added a commit that referenced this pull request Aug 29, 2024
ewuerger added a commit that referenced this pull request Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Single work item Entity too large bad request handled by attaching image
2 participants