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

Fix limit mode metadata blocking #4489

Merged
merged 2 commits into from
May 18, 2024
Merged

Conversation

JohnMcPMS
Copy link
Member

@JohnMcPMS JohnMcPMS commented May 17, 2024

Change

The serialization code should not be modifying the object that it is operating on. Move it to instead skip the output of some values rather than removing them.

When the remoting server is operating in limited mode, the metadata must match between the initial limitation set and the incoming unit. This removal was also breaking that, as the entry was now missing.

Validation

Manual confirmation that the limit mode works after the change.

Microsoft Reviewers: Open in CodeFlow

@JohnMcPMS JohnMcPMS requested a review from a team as a code owner May 17, 2024 00:02
yao-msft
yao-msft previously approved these changes May 17, 2024
Copy link
Contributor

@yao-msft yao-msft left a comment

Choose a reason for hiding this comment

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

So looks like during serialization "module" will be excluded from metadata, I guess the incoming unit will have "module" dropped in the metadata somewhere else?

@JohnMcPMS
Copy link
Member Author

So looks like during serialization "module" will be excluded from metadata, I guess the incoming unit will have "module" dropped in the metadata somewhere else?

No, module gets inserted from the resource name if present. This was removing it for serialization for brevity, but by actually removing it the limit matching broke.

@JohnMcPMS
Copy link
Member Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@JohnMcPMS
Copy link
Member Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@JohnMcPMS JohnMcPMS merged commit 6e35ddf into microsoft:master May 18, 2024
8 checks passed
@JohnMcPMS JohnMcPMS deleted the fix-limit branch May 18, 2024 02:34
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.

None yet

2 participants