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 the configuration file import feature in the Invoke-WPFImpex function #2658

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

Cryostrixx
Copy link
Contributor

@Cryostrixx Cryostrixx commented Aug 31, 2024

Pull Request

Title

Fix the configuration file import feature in the Invoke-WPFImpex function

Type of Change

  • Bug fix
  • UI/UX improvement

Description

This PR addresses an issue with the Invoke-WPFImpex function in winutil.ps1.
Recent changes to Invoke-WPFImpex require explicit string conversion for the $flattenedJson parameter.
The conversion was previously handled implicitly, but it now needs to be explicitly converted to ensure correct processing.

Testing

  • Validated that the $flattenedJson parameter is now correctly processed as a string.
  • Confirmed that configuration imports are successful with the updated function.

Impact

  • Ensures that the $flattenedJson parameter is handled correctly as a string, preventing errors during configuration imports.

Issues related to PR

Additional Information

  • None.

Screenshots

Before Fix

BeforeFix_1
BeforeFix_2

After Fix

AfterFix_1
AfterFix_2

Checklist

  • My code follows the project's coding and style guidelines.
  • I have performed a self-review of my code.
  • I have commented on my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no errors/warnings/merge conflicts.

@MyDrift-user
Copy link
Contributor

MyDrift-user commented Aug 31, 2024

Hello @Cryostrixx, thanks for adressing this.

I found a matching issue, which is related to this PR, may you please add "closes #2657" to the description so it will be closed on merge?

@Cryostrixx
Copy link
Contributor Author

Hello @Cryostrixx, thanks for adressing this.

I found a matching issue, which is related to this PR, may you please add "closes #2657" to the description so it will be closed on merge?

Apologies for the oversight. Just to confirm, should I use closes #2657 without quotes?

@MyDrift-user
Copy link
Contributor

MyDrift-user commented Aug 31, 2024

No issue, could happen to everyone, to answer the question: the quotes are not needed

@Cryostrixx
Copy link
Contributor Author

No issue, could happen to everyone, to answer the question: the quotes are not needed

Perfect, it’s added now. I also cleaned up the PR message a bit. Thanks for pointing that out!

@Cryostrixx Cryostrixx changed the title Add explicit string conversion to $flattenedJson in Invoke-WPFImpex.ps1 Fix configuration import feature in Invoke-WPFImpex function Sep 1, 2024
@Cryostrixx Cryostrixx changed the title Fix configuration import feature in Invoke-WPFImpex function Fix the configuration file import feature in the Invoke-WPFImpex function Sep 1, 2024
@ChrisTitusTech ChrisTitusTech merged commit 8b37420 into ChrisTitusTech:main Sep 2, 2024
1 check passed
@Cryostrixx Cryostrixx deleted the fix-config-import branch September 3, 2024 00:01
@ChrisTitusTech ChrisTitusTech added the skip-changelog Skip Change Logs label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog Skip Change Logs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can no longer import
4 participants