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

VP-1558: Merge settings between base and current themes #383

Merged
merged 4 commits into from
Mar 3, 2020

Conversation

asvishnyakov
Copy link
Contributor

Fully backward-compatible: see changes in settings
Support merge between themes in different stores and themes in the same store

Fully backward-compatible: see changes in settings
Support merge between themes in different stores and themes in the same store
!string.IsNullOrEmpty(_options.BaseThemePath) ? Path.Combine("Themes", _options.BaseThemePath) :
#pragma warning disable 618
// We need to use obsolete value here for backward compatibility.
!string.IsNullOrEmpty(_options.BaseThemeName) ? Path.Combine("Themes", _options.BaseThemeName, "default") : null;
Copy link
Contributor

Choose a reason for hiding this comment

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

MAJOR Extract this nested ternary operation into an independent statement. rule

@t13ka t13ka self-requested a review March 2, 2020 07:17
}

return retVal;
return result.ToObject<Dictionary<string, object>>().ToDictionary(x => x.Key, x => x.Value).WithDefaultValue(defaultValue);
Copy link
Contributor

Choose a reason for hiding this comment

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

MAJOR 'result' is null on at least one execution path. rule

@vc-ci
Copy link
Contributor

vc-ci commented Mar 3, 2020

SonarQube analysis reported 6 issues

  • MAJOR 4 major
  • MINOR 1 minor
  • INFO 1 info

Watch the comments in this conversation to review them.

4 extra issues

Note: The following issues were found on lines that were not modified in the pull request. Because these issues can't be reported as line comments, they are summarized here:

  1. MAJOR ShopifyLiquidThemeEngine.cs#L153: Remove this commented out code. rule
  2. MAJOR ShopifyLiquidThemeEngine.cs#L264: Split this method into two, one handling parameters check and the other handling the asynchronous code. rule
  3. MINOR ShopifyLiquidThemeEngine.cs#L411: Remove this hardcoded path-delimiter. rule
  4. INFO ShopifyLiquidThemeEngine.cs#L310: Complete the task associated to this 'TODO' comment. rule

@tatarincev tatarincev merged commit 078c499 into dev Mar 3, 2020
@tatarincev tatarincev deleted the feature/mergesettings branch March 3, 2020 12:50
@yecli
Copy link
Contributor

yecli commented Mar 5, 2020

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.

4 participants