Skip to content

Commit 4bd996e

Browse files
committed
Merge branch 'release/3.803.0'
2 parents 77fcc2b + b1f861d commit 4bd996e

File tree

13 files changed

+157
-61
lines changed

13 files changed

+157
-61
lines changed

.editorconfig

Lines changed: 105 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,24 @@ root = true
33
[*]
44
charset = utf-8
55
indent_style = space
6-
indent_size = 4
6+
indent_size = 2
77
end_of_line = crlf
88
trim_trailing_whitespace = true
99
insert_final_newline = true
1010

11-
# Dotnet code style settings:
11+
# Project files
12+
[*.{csproj,props}]
13+
insert_final_newline = false
14+
15+
# HTML files
16+
[*.{html,htm}]
17+
insert_final_newline = false
18+
19+
# Code
20+
[*.{cs,js,ts,ps1,sh,bat,cmd}]
21+
indent_size = 4
22+
23+
# Dotnet code style settings
1224
[*.{cs,vb}]
1325

1426
# Sort using and Import directives with System.* appearing first
@@ -24,16 +36,24 @@ dotnet_style_qualification_for_event = false:suggestion
2436
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
2537
dotnet_style_predefined_type_for_member_access = true:suggestion
2638

39+
# Use explicit accessibility modifiers
40+
dotnet_style_require_accessibility_modifiers = true:suggestion
41+
2742
# Suggest more modern language features when available
2843
dotnet_style_object_initializer = true:suggestion
2944
dotnet_style_collection_initializer = true:suggestion
3045
dotnet_style_coalesce_expression = true:suggestion
3146
dotnet_style_null_propagation = true:suggestion
3247
dotnet_style_explicit_tuple_names = true:suggestion
48+
dotnet_prefer_inferred_tuple_names = true:suggestion
49+
dotnet_prefer_inferred_anonymous_type_member_names = true:suggestion
3350

34-
# CSharp code style settings:
51+
# CSharp code style settings
3552
[*.cs]
3653

54+
# Prefer curly braces even for one line of code
55+
csharp_prefer_braces = true:suggestion
56+
3757
# Prefer "var" everywhere
3858
csharp_style_var_for_built_in_types = true:suggestion
3959
csharp_style_var_when_type_is_apparent = true:suggestion
@@ -55,6 +75,9 @@ csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
5575
csharp_style_inlined_variable_declaration = true:suggestion
5676
csharp_style_throw_expression = true:suggestion
5777
csharp_style_conditional_delegate_call = true:suggestion
78+
csharp_prefer_simple_default_expression = true:suggestion
79+
csharp_style_deconstructed_variable_declaration = true:suggestion
80+
csharp_style_pattern_local_over_anonymous_function = true:suggestion
5881

5982
# Newline settings
6083
csharp_new_line_before_open_brace = all
@@ -63,12 +86,84 @@ csharp_new_line_before_catch = true
6386
csharp_new_line_before_finally = true
6487
csharp_new_line_before_members_in_object_initializers = true
6588
csharp_new_line_before_members_in_anonymous_types = true
89+
csharp_new_line_between_query_expression_clauses = true
6690

67-
#JSON code style settings
68-
[*.json]
69-
indent_style = space
70-
indent_size = 2
91+
csharp_indent_case_contents = true
92+
csharp_indent_switch_labels = true
93+
csharp_indent_labels = flush_left
94+
95+
csharp_space_after_cast = false
96+
csharp_space_after_keywords_in_control_flow_statements = true
97+
csharp_space_between_method_declaration_parameter_list_parentheses = false
98+
csharp_space_between_method_call_parameter_list_parentheses = false
99+
csharp_space_between_parentheses = false
100+
101+
csharp_preserve_single_line_statements = false
102+
csharp_preserve_single_line_blocks = true
103+
csharp_using_directive_placement = outside_namespace:silent
104+
csharp_prefer_simple_using_statement = true:suggestion
105+
csharp_style_namespace_declarations = file_scoped:silent
106+
csharp_style_prefer_method_group_conversion = true:silent
107+
csharp_style_prefer_top_level_statements = true:silent
108+
csharp_style_expression_bodied_lambdas = true:silent
109+
csharp_style_expression_bodied_local_functions = false:silent
110+
111+
[*.{cs,vb}]
112+
#### Naming styles ####
113+
114+
# Naming rules
115+
116+
dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
117+
dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
118+
dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
119+
120+
dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion
121+
dotnet_naming_rule.types_should_be_pascal_case.symbols = types
122+
dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
123+
124+
dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion
125+
dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
126+
dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
127+
128+
# Symbol specifications
129+
130+
dotnet_naming_symbols.interface.applicable_kinds = interface
131+
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
132+
dotnet_naming_symbols.interface.required_modifiers =
133+
134+
dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
135+
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
136+
dotnet_naming_symbols.types.required_modifiers =
137+
138+
dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
139+
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
140+
dotnet_naming_symbols.non_field_members.required_modifiers =
141+
142+
# Naming styles
143+
144+
dotnet_naming_style.begins_with_i.required_prefix = I
145+
dotnet_naming_style.begins_with_i.required_suffix =
146+
dotnet_naming_style.begins_with_i.word_separator =
147+
dotnet_naming_style.begins_with_i.capitalization = pascal_case
148+
149+
dotnet_naming_style.pascal_case.required_prefix =
150+
dotnet_naming_style.pascal_case.required_suffix =
151+
dotnet_naming_style.pascal_case.word_separator =
152+
dotnet_naming_style.pascal_case.capitalization = pascal_case
71153

72-
#HTML code style settings
73-
[*.html]
74-
insert_final_newline = false
154+
dotnet_naming_style.pascal_case.required_prefix =
155+
dotnet_naming_style.pascal_case.required_suffix =
156+
dotnet_naming_style.pascal_case.word_separator =
157+
dotnet_naming_style.pascal_case.capitalization = pascal_case
158+
dotnet_style_operator_placement_when_wrapping = beginning_of_line
159+
tab_width = 4
160+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
161+
dotnet_style_prefer_auto_properties = true:silent
162+
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
163+
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
164+
dotnet_style_prefer_conditional_expression_over_return = true:silent
165+
dotnet_style_prefer_inferred_tuple_names = true:suggestion
166+
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
167+
dotnet_style_prefer_compound_assignment = true:suggestion
168+
dotnet_style_prefer_simplified_interpolation = true:suggestion
169+
dotnet_style_namespace_match_folder = true:suggestion

.github/CODEOWNERS

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Common settings
22

3-
.github/* @mvktsk @Vectorfield4
4-
.gitignore @mvktsk @Vectorfield4
5-
.dockerignore @mvktsk @Vectorfield4
3+
.github/* @VirtoCommerce/platform
4+
.gitignore @VirtoCommerce/platform
5+
.dockerignore @VirtoCommerce/platform
66

77
# Main Code and Tests
88

@@ -13,4 +13,4 @@ tests/* @VirtoCommerce/platform
1313
VirtoCommerce.Platform.sln @VirtoCommerce/platform
1414

1515
# Docs
16-
docs/* @zashchitnik-kuka
16+
docs/* @VirtoCommerce/platform

.github/workflows/module-ci.yml

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# v3.800.4
2-
# https://virtocommerce.atlassian.net/browse/VCST-488
1+
# v3.800.9
2+
# https://virtocommerce.atlassian.net/browse/VCST-1260
33
name: Module CI
44

55
on:
@@ -15,10 +15,10 @@ on:
1515
- '**/cloudDeploy.json'
1616
- samples/**
1717
branches:
18-
[master, dev]
18+
[master, main, dev]
1919
pull_request:
2020
branches:
21-
[master, dev]
21+
[master, main, dev]
2222
paths-ignore:
2323
- 'docs/**'
2424
- 'build/**'
@@ -69,7 +69,7 @@ jobs:
6969
java-version: '17'
7070

7171
- name: Set RELEASE_STATUS
72-
if: ${{ github.ref == 'refs/heads/master' && github.event_name == 'push' }}
72+
if: ${{ (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main') && github.event_name == 'push' }}
7373
run: |
7474
echo "RELEASE_STATUS=true" >> $GITHUB_ENV
7575
@@ -99,7 +99,7 @@ jobs:
9999
echo "VERSION_SUFFIX=${{ steps.artifact_ver.outputs.suffix }}" >> $GITHUB_ENV
100100
fi;
101101
- name: Add version suffix
102-
if: ${{ github.ref != 'refs/heads/master' }}
102+
if: ${{ github.ref != 'refs/heads/master' && github.ref != 'refs/heads/main' }}
103103
uses: VirtoCommerce/vc-github-actions/add-version-suffix@master
104104
with:
105105
versionSuffix: ${{ env.VERSION_SUFFIX }}
@@ -128,11 +128,11 @@ jobs:
128128
run: vc-build Compress -skip Clean+Restore+Compile+Test
129129

130130
- name: Publish Nuget
131-
if: ${{ github.ref == 'refs/heads/master' }}
131+
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' }}
132132
uses: VirtoCommerce/vc-github-actions/publish-nuget@master
133133

134134
- name: Publish to Blob
135-
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' || github.event_name == 'pull_request' || (github.event_name == 'workflow_dispatch' && github.ref != 'refs/heads/master') }}
135+
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev' || github.event_name == 'pull_request' || (github.event_name == 'workflow_dispatch' && github.ref != 'refs/heads/master') || (github.event_name == 'workflow_dispatch' && github.ref != 'refs/heads/main') }}
136136
id: blobRelease
137137
uses: VirtoCommerce/vc-github-actions/publish-blob-release@master
138138
with:
@@ -157,7 +157,7 @@ jobs:
157157
downloadComment: 'Artifact URL:'
158158

159159
- name: Publish Github Release
160-
if: ${{ github.ref == 'refs/heads/master' }}
160+
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' }}
161161
id: githubRelease
162162
with:
163163
changelog: ${{ steps.changelog.outputs.changelog }}
@@ -167,14 +167,14 @@ jobs:
167167
- name: Set artifactUrl value
168168
id: artifactUrl
169169
run: |
170-
if [ '${{ github.ref }}' = 'refs/heads/master' ]; then
170+
if [ '${{ github.ref }}' = 'refs/heads/master' ] || [ '${{ github.ref }}' = 'refs/heads/main' ]; then
171171
echo "download_url=${{ steps.githubRelease.outputs.downloadUrl }}" >> $GITHUB_OUTPUT
172172
else
173173
echo "download_url=${{ steps.blobRelease.outputs.packageUrl }}" >> $GITHUB_OUTPUT
174174
fi;
175175
176176
- name: Create deployment matrix
177-
if: ${{ github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/master'}}
177+
if: ${{ github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' }}
178178
uses: VirtoCommerce/vc-github-actions/cloud-create-deploy-matrix@master
179179
id: deployment-matrix
180180
with:
@@ -192,13 +192,13 @@ jobs:
192192
fi
193193
194194
- name: Setup Git Credentials
195-
if: ${{ (github.ref == 'refs/heads/dev' && github.event_name != 'workflow_dispatch') || github.ref == 'refs/heads/master' }}
195+
if: ${{ (github.ref == 'refs/heads/dev' && github.event_name != 'workflow_dispatch') || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' }}
196196
uses: VirtoCommerce/vc-github-actions/setup-git-credentials-github@master
197197
with:
198198
githubToken: ${{ secrets.REPO_TOKEN }}
199199

200200
- name: Publish Manifest
201-
if: ${{ (github.ref == 'refs/heads/dev' && github.event_name != 'workflow_dispatch') || github.ref == 'refs/heads/master' }}
201+
if: ${{ (github.ref == 'refs/heads/dev' && github.event_name != 'workflow_dispatch') || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' }}
202202
uses: VirtoCommerce/vc-github-actions/publish-manifest@master
203203
with:
204204
packageUrl: ${{ steps.artifactUrl.outputs.download_url }}
@@ -241,7 +241,8 @@ jobs:
241241
if: ${{ ((github.ref == 'refs/heads/dev') && (github.event_name == 'push') && (needs.ci.outputs.run-e2e == 'true')) ||
242242
(github.event_name == 'workflow_dispatch')}}
243243
needs: 'ci'
244-
uses: VirtoCommerce/.github/.github/workflows/e2e.yml@v3.800.4
244+
uses: VirtoCommerce/.github/.github/workflows/e2e.yml@v3.800.9
245+
245246
with:
246247
katalonRepo: 'VirtoCommerce/vc-quality-gate-katalon'
247248
katalonRepoBranch: 'dev'
@@ -257,11 +258,9 @@ jobs:
257258
katalonApiKey: ${{ secrets.KATALON_API_KEY }}
258259

259260
deploy-cloud:
260-
if: ${{ ((github.ref == 'refs/heads/master') ||
261-
(github.ref == 'refs/heads/dev')) &&
262-
github.event_name == 'push' }}
261+
if: ${{ (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev') && github.event_name == 'push' }}
263262
needs: ci
264-
uses: VirtoCommerce/.github/.github/workflows/deploy-cloud.yml@v3.800.4
263+
uses: VirtoCommerce/.github/.github/workflows/deploy-cloud.yml@v3.800.9
265264
with:
266265
releaseSource: module
267266
moduleId: ${{ needs.ci.outputs.moduleId }}

.github/workflows/module-release-hotfix.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# v3.800.4
2-
# https://virtocommerce.atlassian.net/browse/VCST-488
1+
# v3.800.9
2+
# https://virtocommerce.atlassian.net/browse/VCST-1260
33
name: Release hotfix
44

55
on:
@@ -13,12 +13,12 @@ on:
1313

1414
jobs:
1515
test:
16-
uses: VirtoCommerce/.github/.github/workflows/test-and-sonar.yml@v3.800.4
16+
uses: VirtoCommerce/.github/.github/workflows/test-and-sonar.yml@v3.800.9
1717
secrets:
1818
sonarToken: ${{ secrets.SONAR_TOKEN }}
1919

2020
build:
21-
uses: VirtoCommerce/.github/.github/workflows/build.yml@v3.800.4
21+
uses: VirtoCommerce/.github/.github/workflows/build.yml@v3.800.9
2222
with:
2323
uploadPackage: 'true'
2424
uploadDocker: 'false'
@@ -46,11 +46,12 @@ jobs:
4646
publish-github-release:
4747
needs:
4848
[build, test, get-metadata]
49-
uses: VirtoCommerce/.github/.github/workflows/publish-github.yml@v3.800.4
49+
uses: VirtoCommerce/.github/.github/workflows/publish-github.yml@v3.800.9
5050
with:
5151
fullKey: ${{ needs.build.outputs.packageFullKey }}
5252
changeLog: '${{ needs.get-metadata.outputs.changeLog }}'
5353
incrementPatch: ${{ github.event.inputs.incrementPatch }}
54+
makeLatest: 'false'
5455

5556
secrets:
5657
envPAT: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/publish-nugets.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# v3.800.4
2-
# https://virtocommerce.atlassian.net/browse/VCST-488
1+
# v3.800.9
2+
# https://virtocommerce.atlassian.net/browse/VCST-1260
33
name: Publish nuget
44

55
on:
@@ -13,12 +13,12 @@ on:
1313

1414
jobs:
1515
test:
16-
uses: VirtoCommerce/.github/.github/workflows/test-and-sonar.yml@v3.800.4
16+
uses: VirtoCommerce/.github/.github/workflows/test-and-sonar.yml@v3.800.9
1717
secrets:
1818
sonarToken: ${{ secrets.SONAR_TOKEN }}
1919

2020
build:
21-
uses: VirtoCommerce/.github/.github/workflows/build.yml@v3.800.4
21+
uses: VirtoCommerce/.github/.github/workflows/build.yml@v3.800.9
2222
with:
2323
uploadPackage: 'true'
2424
uploadDocker: 'false'
@@ -29,7 +29,7 @@ jobs:
2929
publish-nuget:
3030
needs:
3131
[build, test]
32-
uses: VirtoCommerce/.github/.github/workflows/publish-github.yml@v3.800.4
32+
uses: VirtoCommerce/.github/.github/workflows/publish-github.yml@v3.800.9
3333
with:
3434
fullKey: ${{ needs.build.outputs.packageFullKey }}
3535
forceGithub: false

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# v3.800.4
2-
# https://virtocommerce.atlassian.net/browse/VCST-488
1+
# v3.800.9
2+
# https://virtocommerce.atlassian.net/browse/VCST-1260
33
name: Release
44

55
on:
66
workflow_dispatch:
77

88
jobs:
99
release:
10-
uses: VirtoCommerce/.github/.github/workflows/release.yml@v3.800.4
10+
uses: VirtoCommerce/.github/.github/workflows/release.yml@v3.800.9
1111
secrets:
1212
envPAT: ${{ secrets.REPO_TOKEN }}

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project>
33
<!-- These properties will be shared for all projects -->
44
<PropertyGroup>
5-
<VersionPrefix>3.802.0</VersionPrefix>
5+
<VersionPrefix>3.803.0</VersionPrefix>
66
<VersionSuffix>
77
</VersionSuffix>
88
<VersionSuffix Condition=" '$(VersionSuffix)' != '' AND '$(BuildNumber)' != '' ">$(VersionSuffix)-$(BuildNumber)</VersionSuffix>

src/VirtoCommerce.ExportModule.Core/VirtoCommerce.ExportModule.Core.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
</PropertyGroup>
1515
<ItemGroup>
1616
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
17-
<PackageReference Include="VirtoCommerce.Platform.Core" Version="3.800.0" />
17+
<PackageReference Include="VirtoCommerce.Platform.Core" Version="3.853.0" />
1818
</ItemGroup>
1919
</Project>

0 commit comments

Comments
 (0)