Skip to content

fix: download site bundle correctly if site name has special chars #262

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

Merged
merged 5 commits into from
Nov 22, 2024

Conversation

pulkit0555
Copy link
Contributor

What does this PR do?

Fixes the bug when site name contains special chars and we need to download site bundle

What issues does this PR fix or reference?

@W-16552899@

@pulkit0555 pulkit0555 self-assigned this Nov 20, 2024
@pulkit0555 pulkit0555 requested a review from a team as a code owner November 20, 2024 21:18
@pulkit0555 pulkit0555 requested a review from nrkruk November 20, 2024 21:19
if (isInvalidSiteName) {
const updatedSiteName = replaceSpacesAndSpecialChars(this.siteName);
this.siteName = updatedSiteName;
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

@pulkit0555 Is there a reason why we can't do this in the constructor?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@nrkruk I was also debating on the same idea in a different PR to add these changes in the constructor but I guess that was missed. Let me add those changes now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Screenshot 2024-11-21 at 2 28 20 PM

@nrkruk nrkruk merged commit fd52cec into main Nov 22, 2024
11 checks passed
@nrkruk nrkruk deleted the pjain/siteBugFix branch November 22, 2024 17:30
pulkit0555 added a commit that referenced this pull request Nov 25, 2024
)

* fix: updated special chars in site name

* fix: minor fix

* fix: refactored code

* chore: change test naming

---------

Co-authored-by: Nicolas Kruk <nicolaskruk@gmail.com>
Co-authored-by: Nicolas Kruk <nkruk@salesforce.com>
nrkruk added a commit that referenced this pull request Dec 17, 2024
…l chars (#270)

* fix: download site bundle correctly if site name has special chars (#262)

* fix: updated special chars in site name

* fix: minor fix

* fix: refactored code

* chore: change test naming

---------

Co-authored-by: Nicolas Kruk <nicolaskruk@gmail.com>
Co-authored-by: Nicolas Kruk <nkruk@salesforce.com>
Co-authored-by: svc-cli-bot <Svc_cli_bot@salesforce.com>
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.

2 participants