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

Cura 12138 export for support option #19644

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

HellAholic
Copy link
Contributor

@HellAholic HellAholic commented Sep 12, 2024

CURA-12138
Requires Ultimaker/Uranium#970

  • Add option under Help: "Export project for support"
  • Make it easy to find: Place it either at the top with a line separator under it .. or.. under sponsor cura and put the line separator above and bellow it
  • Add a naming scheme that prevents users and support personnel from overwriting projects by accident
    "exported-(package/project)-for-support-timestamp/random-number).3mf"
    ex: exported-project-for-support-20240911-13-13.3mf
  • Should not impact the normal project saving flow or naming
  • Include log file in archive

@wawanbreton wawanbreton marked this pull request as ready for review September 27, 2024 13:48
@@ -33,7 +35,7 @@ def setExportModel(self, model: SettingsExportModel) -> None:
if self._ucp_model != model:
self._ucp_model = model

def _write(self, stream, nodes, mode=WorkspaceWriter.OutputMode.BinaryMode):
def _write(self, stream, nodes, mode, include_log):
Copy link
Member

Choose a reason for hiding this comment

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

Include log is a bool trap. I'd also argue that instead of removing the default for the mode, we should just set the include_log to be False by default

Copy link
Contributor

Choose a reason for hiding this comment

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

That's right, I have removed the mode default value not because of the include_log, but because it is a "private" method and only called at one place, with a value for the mode. Restoring the default value and setting include_log to False is also fine if you prefer.

plugins/3MFWriter/ThreeMFWorkspaceWriter.py Outdated Show resolved Hide resolved
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.

3 participants