Skip to content

Conversation

@pcdavid
Copy link
Member

@pcdavid pcdavid commented Oct 24, 2025

Bug: #5200
Signed-off-by: Pierre-Charles David [email protected]

General purpose

What is the main goal of this pull request?

  • Bug fixes
  • New features
  • Documentation
  • Cleanup
  • Tests
  • Build / releng

@pcdavid pcdavid added this to the 2025.12.0 milestone Oct 24, 2025
@pcdavid pcdavid linked an issue Oct 24, 2025 that may be closed by this pull request
4 tasks
@pcdavid pcdavid force-pushed the pcd/fix/xref-model-upload branch 2 times, most recently from 0415b34 to 42489b8 Compare October 27, 2025 16:18
@pcdavid pcdavid marked this pull request as ready for review October 27, 2025 16:18
@pcdavid pcdavid force-pushed the pcd/fix/xref-model-upload branch from 42489b8 to 13c2e23 Compare October 30, 2025 10:47
@sbegaudeau sbegaudeau self-assigned this Nov 3, 2025
Comment on lines 27 to 31
public record UploadDocumentInput(@NotNull UUID id, @NotNull String editingContextId, @NotNull UploadFile file, boolean allowProxies, boolean readOnly) implements IInput {
public UploadDocumentInput(@NotNull UUID id, @NotNull String editingContextId, @NotNull UploadFile file, boolean readOnly) {
this(id, editingContextId, file, false, readOnly);
}
}
Copy link
Member

Choose a reason for hiding this comment

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

This is mainly used to communicate between the frontend and backend. It would be very odd to use it to carry strictly internal data hidden from the GraphQL schema. I'll have to retrieve the code and look at it in more details to understand the flow of the code.

Copy link
Member Author

Choose a reason for hiding this comment

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

Indeed, it's no longer needed and I forgot to clean it up after rebasing the PR.

It was needed in my initial version, before #5446 rewrote the project import logic: in the old version, ProjectImporter used to import the documents by programmatically creating and sending UploadDocumentInput to the editingContextEventProcessor.

@pcdavid pcdavid force-pushed the pcd/fix/xref-model-upload branch from 13c2e23 to ad20614 Compare November 14, 2025 08:09
Copy link
Member

@sbegaudeau sbegaudeau left a comment

Choose a reason for hiding this comment

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

Everything I tried seems to work nicely 👍

@sbegaudeau sbegaudeau force-pushed the pcd/fix/xref-model-upload branch from ad20614 to 7003e2d Compare November 17, 2025 16:26
@sbegaudeau sbegaudeau force-pushed the pcd/fix/xref-model-upload branch from 7003e2d to 6790b9c Compare November 19, 2025 09:26
@sbegaudeau sbegaudeau merged commit 101d268 into master Nov 19, 2025
4 checks passed
@sbegaudeau sbegaudeau deleted the pcd/fix/xref-model-upload branch November 19, 2025 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot upload a project with a model referencing another

3 participants