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

V15: Merge #16801

Merged
merged 143 commits into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
143 commits
Select commit Hold shift + click to select a range
52c21b0
Updates JSON schema for Umbraco 10 with latest references for Forms a…
AndyButland Mar 20, 2024
6379f2f
Ported over #15928 changes for 13.3 RC (#16023)
kjac Apr 16, 2024
a6a76d1
Make the API content response builder extendable (#16056)
kjac Apr 16, 2024
a325ba3
bump rc to regular
Migaroez Apr 18, 2024
adc2435
Merge branch 'release/13.3.0' into v13/dev
Migaroez Apr 18, 2024
a27a4dc
Bump to next minor
Migaroez Apr 18, 2024
0980350
Add blocks in RTE telemetry (#16104)
nikolajlauridsen Apr 22, 2024
119fde2
V10: Fix for fallback file upload (#14892) (#15868)
Zeegaan Apr 24, 2024
cae106b
Fix logic for retrieving lastKnownElement
jdpnielsen Apr 19, 2024
599ec18
Implementors using Umbraco.Tests.Integration won't have to override G…
lars-erik Apr 4, 2024
5b46c71
Fix logic for retrieving lastKnownElement
jdpnielsen Apr 19, 2024
b6031de
bump version
bergmania May 3, 2024
edb516f
Bump version
bergmania May 3, 2024
fee222d
Bump version
bergmania May 3, 2024
23d0a6b
Since v13 properties can sometimes be of type IRichTextEditorIntermed…
nul800sebastiaan May 6, 2024
cfcdc9c
Webhook log improvements (#16200)
rasmusjp May 6, 2024
ba9ddd1
V13: Optimize custom MVC routing (#16218)
nikolajlauridsen May 10, 2024
1876546
V13: Optimize custom MVC routing (#16218)
nikolajlauridsen May 10, 2024
ab32bac
Property source level variation should only be applied when configure…
kjac May 13, 2024
94cef50
Property source level variation should only be applied when configure…
kjac May 13, 2024
c17d4e1
Merge pull request from GHSA-j74q-mv2c-rxmp
bergmania May 17, 2024
d8df405
Merge pull request from GHSA-j74q-mv2c-rxmp
bergmania May 17, 2024
5f24de3
Merge pull request from GHSA-j74q-mv2c-rxmp
bergmania May 17, 2024
9bacd13
Merge remote-tracking branch 'refs/remotes/origin/release/13.3' into …
bergmania May 17, 2024
0ee0db8
Merge remote-tracking branch 'refs/remotes/origin/release/10.8' into …
bergmania May 21, 2024
5c777f3
Merge remote-tracking branch 'refs/remotes/origin/v10/dev' into v11/dev
bergmania May 21, 2024
60f6560
Merge remote-tracking branch 'refs/remotes/origin/release/12.3' into …
bergmania May 21, 2024
4f382ab
Merge remote-tracking branch 'refs/remotes/origin/v11/dev' into v12/dev
bergmania May 21, 2024
04ed514
Merge remote-tracking branch 'refs/remotes/origin/v12/dev' into v13/dev
bergmania May 21, 2024
0f3160f
Move publishing notification after validation (#16331)
Zeegaan May 22, 2024
fd2138c
Bump version
bergmania May 22, 2024
eb6bb99
Ensure there is always at least 1 valid candidate (#16344)
nikolajlauridsen May 22, 2024
5f082df
Ensure there is always at least 1 valid candidate (#16344)
nikolajlauridsen May 22, 2024
696a711
Ensure ufprt-token requests are handle in the UmbracoRouteValueTransf…
bergmania May 23, 2024
5285834
Merge remote-tracking branch 'refs/remotes/origin/release/13.3' into …
bergmania May 23, 2024
5795cf1
Typo when getting query parm
jrunestone Apr 12, 2024
0aaac78
A bunch of minor performance optimizations (#16335)
bergmania Jun 3, 2024
100f2c3
Add check to ensure that RenderControllers and SurfaceControllers are…
nikolajlauridsen Jun 3, 2024
c3e7dad
bumb to rc version
Zeegaan Jun 3, 2024
46e9991
Merge branch 'v13/contrib' into v13/dev
nul800sebastiaan Jun 3, 2024
f15be3e
Merge branch 'v13/dev' into release/13.4
Zeegaan Jun 3, 2024
32912b0
Update to query to SqlRaw (#16542)
Zeegaan Jun 3, 2024
3dace4f
RTE and media picker should route medias the same way in the Delivery…
kjac Jun 4, 2024
ae7db56
Decreased retry count (#16554)
andr317c Jun 4, 2024
78bf04e
bump version.json
Zeegaan Jun 4, 2024
fc951ee
Merge branch 'release/13.4' into v13/dev
Zeegaan Jun 6, 2024
5f8eac0
bump version.json
Zeegaan Jun 6, 2024
5ae5fe3
V13: Set request culture for VirtualPageController (#16572)
nikolajlauridsen Jun 7, 2024
24abc11
update version.json
Zeegaan Jun 7, 2024
5e31fde
V13 QA Updated depedencies (#16606)
andr317c Jun 17, 2024
8e98c1e
Bump braces from 3.0.2 to 3.0.3 in /tests/Umbraco.Tests.AcceptanceTest
dependabot[bot] Jun 14, 2024
82b4f50
bump version to rc2
Zeegaan Jun 18, 2024
344245b
bump to final version
Zeegaan Jun 18, 2024
a686ba2
V13: Update nuget packages (#16616)
Zeegaan Jun 19, 2024
65c76fc
Decreased to 1 retry for this file only (#16623)
andr317c Jun 19, 2024
1f52d01
Do not rely on claims to figure out user access + prepare for claims …
kjac Jun 19, 2024
75c42f4
Added post configuration of OpenIddictServerOptions that removes the …
bergmania Jun 19, 2024
f717a5d
Simplified how we disable the TransportSecurityRequirement in OpenIdd…
bergmania Jun 20, 2024
00ca9e0
V13: Eaglery route domains for virtual page controllers (#16635)
nikolajlauridsen Jun 20, 2024
56710d5
V13: Eaglery route domains for virtual page controllers (#16635)
nikolajlauridsen Jun 20, 2024
b2b112e
V13 QA Updated depedencies (#16606)
andr317c Jun 17, 2024
6e3a691
Decreased to 1 retry for this file only (#16623)
andr317c Jun 19, 2024
73408f1
Merge branch 'release/13.4' into v13/dev
Zeegaan Jun 20, 2024
e3d6596
Bump version.json
Zeegaan Jun 20, 2024
4629033
test
georgebid Jun 21, 2024
53139a1
Revert "test"
georgebid Jun 21, 2024
de74ae4
Added custom mvc setup method to testserver base class (#16545)
lars-erik Jun 21, 2024
cb09035
Fix unguarded calls to ServiceDescriptor.ImplementationType for keyed…
xdjoshuaaz Jun 22, 2024
2a57af8
update backoffice submodule
iOvergaard Jun 24, 2024
4cfa021
Merged v13/dev into v14
bergmania Jun 25, 2024
bda23c3
Merge remote-tracking branch 'refs/remotes/origin/v14/dev' into v14/f…
bergmania Jun 25, 2024
9ad67e2
Fixed test by moving when the publishing notification is fired.
bergmania Jun 25, 2024
215fc43
Merge pull request #16652 from umbraco/v14/feature/merge-2024-06-25
bergmania Jun 25, 2024
76bb2b0
Add endpoint for calculating effective user start nodes (#16609)
kjac Jun 25, 2024
3c3d926
Merge remote-tracking branch 'refs/remotes/origin/v13/dev' into v14/dev
bergmania Jun 25, 2024
3c34eaf
Updated nuget packages
bergmania Jun 25, 2024
a01be0d
Merge pull request #16653 from umbraco/v14/nuget-update-2024-06-25
bergmania Jun 25, 2024
0afb4f7
Make GetHeaderValue support HttpContext unavailable (#16654)
bergmania Jun 25, 2024
37d2276
Merge remote-tracking branch 'refs/remotes/origin/v13/dev' into v14/dev
bergmania Jun 25, 2024
0b86863
V14 QA updated dictionary naming in E2E test (#16657)
andr317c Jun 25, 2024
8ca637d
V14: Fix source code editor not showing on fresh install / upgrade (#…
Zeegaan Jun 26, 2024
7e8dd02
update backoffice submodule
iOvergaard Jun 26, 2024
3ce2e97
Merge branch 'v14/dev' into contrib
nul800sebastiaan Jun 26, 2024
bb058c4
update lockfile
iOvergaard Jun 26, 2024
f1b54fe
fix login build errors
iOvergaard Jun 26, 2024
1774d4e
update backoffice submodule
iOvergaard Jun 26, 2024
195d8b5
backoffice submodule release/14.1
iOvergaard Jun 26, 2024
dacd324
Merge remote-tracking branch 'refs/remotes/origin/v14/dev' into relea…
iOvergaard Jun 26, 2024
ed22003
backoffice submodule release/14.1
iOvergaard Jun 26, 2024
d8b4361
V13: Update url scheme for Twitter OEmbedProvider (#16650)
elit0451 Jun 27, 2024
1ea65c1
Use the configured backoffice url to initialize openiddict if it is a…
bergmania Jun 27, 2024
2fa4149
Use the configured backoffice url to initialize openiddict if it is a…
bergmania Jun 27, 2024
d170193
Fixed toolbar not showing for seeded,untouched and then migrated RTE …
Migaroez Jun 28, 2024
921598b
Fixed toolbar not showing for seeded,untouched and then migrated RTE …
Migaroez Jun 28, 2024
2010a24
Bumb version
Zeegaan Jun 28, 2024
2185be1
update backoffice submodule
iOvergaard Jun 28, 2024
2122af7
V14: Build and release the type declarations of the Backoffice to npm…
iOvergaard Jul 1, 2024
d2707ac
V14: Create seperate Create and Update in ContentTypeServiceBase (#16…
Zeegaan Jul 1, 2024
9efcc4d
Merge branch 'release/14.1' into v14/dev
iOvergaard Jul 2, 2024
ecd6e05
Merge remote-tracking branch 'origin/release/14.1' into v14/dev
iOvergaard Jul 2, 2024
13b77d3
V14: Build and publish Typedoc docs (#16724)
iOvergaard Jul 2, 2024
ef01c27
Respect user start nodes in GetPagedChildren (used in List View) (#16…
elit0451 Jul 2, 2024
46acd51
[V14] Make the backend work with the new localLinks format (#16661)
Migaroez Jul 2, 2024
6069610
v14: Implement backoffice signalR hub (#16723)
Zeegaan Jul 2, 2024
32fe23b
V14: Expose `Umb-Notifications` HTTP header (#16728)
leekelleher Jul 3, 2024
0a9df3c
V14: OpenAPI: Explicitly set `ByRelationTypeKey` endpoint name (#16729)
leekelleher Jul 3, 2024
4643b7d
Support parsing object to DateTimeOffset and preserve timezone offset…
ronaldbarendse Jul 4, 2024
33338ad
Support parsing object to DateTimeOffset and preserve timezone offset…
ronaldbarendse Jul 4, 2024
dd67fd1
Merge branch 'v14/dev' into release/14.1
Zeegaan Jul 4, 2024
ffa85ee
V14 Added Content tests with Checkbox list (#16733)
nhudinh0309 Jul 4, 2024
36d00bd
add `type/improvement` to list of bug fixes
iOvergaard Jul 5, 2024
d3fe69a
add `type/improvement` to list of bug fixes
iOvergaard Jul 5, 2024
ff3b1d6
introduce an "other changes" category
iOvergaard Jul 5, 2024
a79f270
introduce an "other changes" category
iOvergaard Jul 5, 2024
4283f34
update backoffice submodule
iOvergaard Jul 5, 2024
8681a4e
Move ReservedFieldNames to type configuration endpoints (#16735)
nikolajlauridsen Jul 5, 2024
58a7662
update backoffice submodule
iOvergaard Jul 5, 2024
26084d8
update backoffice submodule
iOvergaard Jul 5, 2024
f6deaca
Removing override of OnTransformingIndexValues from DeliveryApiConten…
elit0451 Jul 8, 2024
a7ff328
Making sure base.OnTransformingIndexValues(e); is called for Delivery…
elit0451 Jul 8, 2024
8dc02fa
Revert "Making sure base.OnTransformingIndexValues(e); is called for …
elit0451 Jul 8, 2024
5f6be40
Revert "Removing override of OnTransformingIndexValues from DeliveryA…
elit0451 Jul 8, 2024
512114b
V14: Add `usernameIsEmail` to the user configuration object (#16759)
iOvergaard Jul 8, 2024
510f805
Keeping launchBrowser settings as in v13 (#16765)
elit0451 Jul 9, 2024
40a782e
Merge remote-tracking branch 'refs/remotes/origin/v13/dev' into v14/dev
nikolajlauridsen Jul 10, 2024
d05e32b
update backoffice submodule
iOvergaard Jul 10, 2024
fd3f77c
update backoffice submodule (hotfix ufm)
iOvergaard Jul 10, 2024
e4b776a
bump version
Zeegaan Jul 10, 2024
cbb6c5c
Merge branch 'release/14.1' into v14/dev
Zeegaan Jul 11, 2024
c1bf3a7
bump version to 13.4.1
iOvergaard Jul 11, 2024
a41555c
fix: revert the `inert` attribute on Tours since you are expected to …
iOvergaard Jul 11, 2024
d72fc5c
fix: revert the `inert` attribute on Tours since you are expected to …
iOvergaard Jul 11, 2024
c33b062
Merge remote-tracking branch 'origin/release/13.4' into v13/dev
iOvergaard Jul 11, 2024
be81586
set version to 13.5.0-rc
iOvergaard Jul 11, 2024
efe2f51
update backoffice submodule
iOvergaard Jul 15, 2024
dfe41d7
V13: Ensure `TransformingIndexValues` event is also raised from the `…
elit0451 Jul 15, 2024
2f7afa6
update backoffice submodule
iOvergaard Jul 18, 2024
cad5502
V14: Remove user-defined.css (#16792)
iOvergaard Jul 18, 2024
635076d
Revert "fix: revert the `inert` attribute on Tours since you are expe…
nikolajlauridsen Jul 19, 2024
a7bfc6f
Merge branch 'refs/heads/v13/dev' into v14/merge
nikolajlauridsen Jul 19, 2024
213a13d
Merge pull request #16800 from umbraco/v14/merge
nikolajlauridsen Jul 19, 2024
88730ab
Merge remote-tracking branch 'refs/remotes/origin/v14/dev' into v15/m…
nikolajlauridsen Jul 19, 2024
984dcf9
Fix malformed Directory.Packages.props
nikolajlauridsen Jul 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ changelog:
labels:
- type/bug
- category/bug
- type/improvement
- title: 📄 Documentation
labels:
- category/documentation
Expand All @@ -30,5 +31,8 @@ changelog:
labels:
- category/accessibility
- title: 🚀 New Features
labels:
- type/feature
- title: Other Changes
labels:
- '*'
20 changes: 10 additions & 10 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>
<!-- Global packages (private, build-time packages for all projects) -->
<ItemGroup>
<GlobalPackageReference Include="Nerdbank.GitVersioning" Version="3.6.133" />
<GlobalPackageReference Include="Nerdbank.GitVersioning" Version="3.6.139" />
<GlobalPackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.556" />
<GlobalPackageReference Include="Umbraco.Code" Version="2.2.0" />
<GlobalPackageReference Include="Umbraco.GitVersioning.Extensions" Version="0.2.0" />
Expand Down Expand Up @@ -44,22 +44,22 @@
<PackageVersion Include="Asp.Versioning.Mvc" Version="8.1.0" />
<PackageVersion Include="Asp.Versioning.Mvc.ApiExplorer" Version="8.1.0" />
<PackageVersion Include="Dazinator.Extensions.FileProviders" Version="2.0.0" />
<PackageVersion Include="Examine" Version="3.2.0" />
<PackageVersion Include="Examine.Core" Version="3.2.0" />
<PackageVersion Include="Examine" Version="3.2.1" />
<PackageVersion Include="Examine.Core" Version="3.2.1" />
<PackageVersion Include="HtmlAgilityPack" Version="1.11.61" />
<PackageVersion Include="JsonPatch.Net" Version="3.1.0" />
<PackageVersion Include="K4os.Compression.LZ4" Version="1.3.8" />
<PackageVersion Include="MailKit" Version="4.6.0" />
<PackageVersion Include="Markdown" Version="2.2.1" />
<PackageVersion Include="MessagePack" Version="2.5.140" />
<PackageVersion Include="MessagePack" Version="2.5.168" />
<PackageVersion Include="MiniProfiler.AspNetCore.Mvc" Version="4.3.8" />
<PackageVersion Include="MiniProfiler.Shared" Version="4.3.8" />
<PackageVersion Include="ncrontab" Version="3.3.3" />
<PackageVersion Include="NPoco" Version="5.7.1" />
<PackageVersion Include="NPoco.SqlServer" Version="5.7.1" />
<PackageVersion Include="OpenIddict.Abstractions" Version="5.6.0" />
<PackageVersion Include="OpenIddict.AspNetCore" Version="5.6.0" />
<PackageVersion Include="OpenIddict.EntityFrameworkCore" Version="5.6.0" />
<PackageVersion Include="OpenIddict.Abstractions" Version="5.7.0" />
<PackageVersion Include="OpenIddict.AspNetCore" Version="5.7.0" />
<PackageVersion Include="OpenIddict.EntityFrameworkCore" Version="5.7.0" />
<PackageVersion Include="Serilog" Version="3.1.1" />
<PackageVersion Include="Serilog.AspNetCore" Version="8.0.1" />
<PackageVersion Include="Serilog.Enrichers.Process" Version="2.0.2" />
Expand All @@ -68,7 +68,7 @@
<PackageVersion Include="Serilog.Extensions.Hosting" Version="8.0.0" />
<PackageVersion Include="Serilog.Formatting.Compact" Version="2.0.0" />
<PackageVersion Include="Serilog.Formatting.Compact.Reader" Version="3.0.0" />
<PackageVersion Include="Serilog.Settings.Configuration" Version="8.0.0" />
<PackageVersion Include="Serilog.Settings.Configuration" Version="8.0.1" />
<PackageVersion Include="Serilog.Sinks.Async" Version="1.5.0" />
<PackageVersion Include="Serilog.Sinks.File" Version="5.0.0" />
<PackageVersion Include="Serilog.Sinks.Map" Version="1.0.2" />
Expand All @@ -79,12 +79,12 @@
<!-- Transitive pinned versions (only required because our direct dependencies have vulnerable versions of transitive dependencies) -->
<ItemGroup>
<!-- Both Microsoft.EntityFrameworkCore.SqlServer and NPoco.SqlServer bring in a vulnerable version of Azure.Identity -->
<PackageVersion Include="Azure.Identity" Version="1.11.3" />
<PackageVersion Include="Azure.Identity" Version="1.12.0" />
<!-- Dazinator.Extensions.FileProviders brings in a vulnerable version of System.Net.Http -->
<PackageVersion Include="System.Net.Http" Version="4.3.4" />
<!-- Examine brings in a vulnerable version of System.Security.Cryptography.Xml -->
<PackageVersion Include="System.Security.Cryptography.Xml" Version="9.0.0-preview.5.24306.7" />
<!-- Both Dazinator.Extensions.FileProviders and MiniProfiler.AspNetCore.Mvc bring in a vulnerable version of System.Text.RegularExpressions -->
<PackageVersion Include="System.Text.RegularExpressions" Version="4.3.1" />
</ItemGroup>
</Project>
</Project>
107 changes: 61 additions & 46 deletions build/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,14 @@ variables:
DOTNET_GENERATE_ASPNET_CERTIFICATE: false
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
npm_config_cache: $(Pipeline.Workspace)/.npm_client
NODE_OPTIONS: --max_old_space_size=16384

stages:
###############################################
## Build
###############################################
- stage: Build
variables:
npm_config_cache: $(Pipeline.Workspace)/.npm_client
NODE_OPTIONS: --max_old_space_size=16384
jobs:
- job: A
displayName: Build Umbraco CMS
Expand All @@ -80,18 +79,11 @@ stages:
steps:
- checkout: self
submodules: true
- task: NodeTool@0
displayName: Use Node.js $(nodeVersion)
retryCountOnTaskFailure: 3
- task: UseDotNet@2
displayName: Use .NET SDK from global.json
inputs:
versionSpec: $(nodeVersion)
- script: npm ci --no-fund --no-audit --prefer-offline
displayName: Run npm ci (Bellissima)
workingDirectory: src/Umbraco.Web.UI.Client
- script: npm run generate:api-local
displayName: Generate API models (Bellissima)
workingDirectory: src/Umbraco.Web.UI.Client
enabled: false
useGlobalJson: true
- template: templates/backoffice-install.yml
- script: npm run build:for:cms
displayName: Run build (Bellissima)
workingDirectory: src/Umbraco.Web.UI.Client
Expand All @@ -101,10 +93,6 @@ stages:
- script: npm run build
displayName: Run npm build (Login)
workingDirectory: src/Umbraco.Web.UI.Login
- task: UseDotNet@2
displayName: Use .NET SDK from global.json
inputs:
useGlobalJson: true
- task: DotNetCoreCLI@2
displayName: Run dotnet restore
inputs:
Expand All @@ -127,18 +115,25 @@ stages:
inputs:
targetPath: $(Build.SourcesDirectory)
artifactName: build_output

- job: B
displayName: Build Bellissima Package
pool:
vmImage: 'ubuntu-latest'
steps:
- checkout: self
submodules: true
- template: templates/backoffice-install.yml
- script: npm run build:for:npm
displayName: Run build:for:npm
workingDirectory: src/Umbraco.Web.UI.Client
- bash: |
echo "##[command]Running npm version"
echo "##[debug]Version: $PACKAGE_VERSION"
echo "##[command]Running npm pack"
echo "##[debug]Output directory: $(Build.ArtifactStagingDirectory)"
npm version $PACKAGE_VERSION --allow-same-version --no-git-tag-version
mkdir $(Build.ArtifactStagingDirectory)/npm
npm pack --pack-destination $(Build.ArtifactStagingDirectory)/npm
mv .npmrc $(Build.ArtifactStagingDirectory)/npm/
displayName: Prepare Bellissima npm package
env:
PACKAGE_VERSION: $(build.NBGV_NpmPackageVersion)
displayName: Run npm pack
workingDirectory: src/Umbraco.Web.UI.Client
- task: PublishPipelineArtifact@1
displayName: Publish Bellissima npm artifact
Expand Down Expand Up @@ -208,28 +203,11 @@ stages:
pool:
vmImage: 'ubuntu-latest'
variables:
npm_config_cache: $(Pipeline.Workspace)/.npm_client
NODE_OPTIONS: --max_old_space_size=16384
BASE_PATH: /v$(umbracoMajorVersion)/ui
steps:
- checkout: self
submodules: true
- task: NodeTool@0
displayName: Use Node.js $(nodeVersion)
retryCountOnTaskFailure: 3
inputs:
versionSpec: $(nodeVersion)
- task: Cache@2
displayName: Cache node_modules
inputs:
key: '"npm_client" | "$(Agent.OS)"| $(Build.SourcesDirectory)/src/Umbraco.Web.UI.Client/package-lock.json'
restoreKeys: |
"npm_client" | "$(Agent.OS)"
"npm_client"
path: $(npm_config_cache)
- script: npm ci --no-fund --no-audit --prefer-offline
workingDirectory: src/Umbraco.Web.UI.Client
displayName: Run npm ci
- template: templates/backoffice-install.yml
- script: npm run storybook:build
displayName: Build Storybook
env:
Expand All @@ -239,16 +217,30 @@ stages:
displayName: Replace BASE_PATH on assets
workingDirectory: $(Build.SourcesDirectory)/src/Umbraco.Web.UI.Client/storybook-static
- task: ArchiveFiles@2
displayName: Archive js Docs
displayName: Archive Storybook
inputs:
rootFolderOrFile: $(Build.SourcesDirectory)/src/Umbraco.Web.UI.Client/storybook-static
includeRootFolder: false
archiveFile: $(Build.ArtifactStagingDirectory)/ui-docs.zip
- task: PublishPipelineArtifact@1
displayName: Publish js Docs
displayName: Publish Storybook
inputs:
targetPath: $(Build.ArtifactStagingDirectory)/ui-docs.zip
artifact: ui-docs
- script: npm run generate:ui-api-docs
displayName: Generate API Docs
workingDirectory: $(Build.SourcesDirectory)/src/Umbraco.Web.UI.Client
- task: ArchiveFiles@2
displayName: Archive UI API Docs
inputs:
rootFolderOrFile: $(Build.SourcesDirectory)/src/Umbraco.Web.UI.Client/ui-api
includeRootFolder: false
archiveFile: $(Build.ArtifactStagingDirectory)/ui-api-docs.zip
- task: PublishPipelineArtifact@1
displayName: Publish UI API Docs
inputs:
targetPath: $(Build.ArtifactStagingDirectory)/ui-api-docs.zip
artifact: ui-api-docs

###############################################
## Test
Expand Down Expand Up @@ -868,7 +860,7 @@ stages:
BlobPrefix: v$(umbracoMajorVersion)/csharp
CleanTargetBeforeCopy: true
- job:
displayName: Upload js Docs
displayName: Upload Storybook
steps:
- checkout: none
- task: DownloadPipelineArtifact@2
Expand All @@ -881,7 +873,7 @@ stages:
archiveFilePatterns: $(Build.SourcesDirectory)/ui-docs.zip
destinationFolder: $(Build.ArtifactStagingDirectory)/ui-docs
- task: AzureFileCopy@4
displayName: 'Copy UI Docs to blob storage'
displayName: 'Copy Storybook to blob storage'
inputs:
SourcePath: '$(Build.ArtifactStagingDirectory)/ui-docs/*'
azureSubscription: umbraco-storage
Expand All @@ -890,3 +882,26 @@ stages:
ContainerName: '$web'
BlobPrefix: v$(umbracoMajorVersion)/ui
CleanTargetBeforeCopy: true
- job:
displayName: Upload UI API Docs
steps:
- checkout: none
- task: DownloadPipelineArtifact@2
displayName: Download artifact
inputs:
artifact: ui-api-docs
path: $(Build.SourcesDirectory)
- task: ExtractFiles@1
inputs:
archiveFilePatterns: $(Build.SourcesDirectory)/ui-api-docs.zip
destinationFolder: $(Build.ArtifactStagingDirectory)/ui-api-docs
- task: AzureFileCopy@4
displayName: 'Copy UI API Docs to blob storage'
inputs:
SourcePath: '$(Build.ArtifactStagingDirectory)/ui-api-docs/*'
azureSubscription: umbraco-storage
Destination: AzureBlob
storage: umbracoapidocs
ContainerName: '$web'
BlobPrefix: v$(umbracoMajorVersion)/ui-api
CleanTargetBeforeCopy: true
31 changes: 31 additions & 0 deletions build/templates/backoffice-install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
steps:
- task: NodeTool@0
displayName: Use Node.js
retryCountOnTaskFailure: 3
inputs:
versionSource: 'fromFile'
versionFilePath: src/Umbraco.Web.UI.Client/.nvmrc

- bash: |
echo "##[command]Install nbgv"
dotnet tool install --tool-path . nbgv
echo "##[command]Running nbgv get-version"
PACKAGE_VERSION=$(nbgv get-version -v NpmPackageVersion)
echo "##[command]Running npm version"
echo "##[debug]Version: $PACKAGE_VERSION"
cd src/Umbraco.Web.UI.Client
npm version $PACKAGE_VERSION --allow-same-version --no-git-tag-version
displayName: Set NPM Version
- task: Cache@2
displayName: Cache node_modules
inputs:
key: '"npm_client" | "$(Agent.OS)"| $(Build.SourcesDirectory)/src/Umbraco.Web.UI.Client/package-lock.json'
restoreKeys: |
"npm_client" | "$(Agent.OS)"
"npm_client"
path: $(npm_config_cache)

- script: npm ci --no-fund --no-audit --prefer-offline
displayName: Run npm ci (Bellissima)
workingDirectory: src/Umbraco.Web.UI.Client
15 changes: 15 additions & 0 deletions src/Umbraco.Cms.Api.Common/Configuration/ConfigureOpenIddict.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using Microsoft.Extensions.Options;
using OpenIddict.Server.AspNetCore;
using Umbraco.Cms.Core.Configuration.Models;

namespace Umbraco.Cms.Api.Common.Configuration;

internal class ConfigureOpenIddict : IConfigureOptions<OpenIddictServerAspNetCoreOptions>
{
private readonly IOptions<GlobalSettings> _globalSettings;

public ConfigureOpenIddict(IOptions<GlobalSettings> globalSettings) => _globalSettings = globalSettings;

public void Configure(OpenIddictServerAspNetCoreOptions options)
=> options.DisableTransportSecurityRequirement = _globalSettings.Value.UseHttps is false;
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public static class UmbracoBuilderApiExtensions
{
public static IUmbracoBuilder AddUmbracoApiOpenApiUI(this IUmbracoBuilder builder)
{
if (builder.Services.Any(x => x.ImplementationType == typeof(OperationIdSelector)))
if (builder.Services.Any(x => !x.IsKeyedService && x.ImplementationType == typeof(OperationIdSelector)))
{
return builder;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using Microsoft.IdentityModel.Tokens;
using OpenIddict.Server;
using OpenIddict.Validation;
using Umbraco.Cms.Api.Common.Configuration;
using Umbraco.Cms.Api.Common.Security;
using Umbraco.Cms.Core;
using Umbraco.Cms.Core.Configuration.Models;
Expand All @@ -17,7 +18,7 @@ public static class UmbracoBuilderAuthExtensions
{
public static IUmbracoBuilder AddUmbracoOpenIddict(this IUmbracoBuilder builder)
{
if (builder.Services.Any(x=>x.ImplementationType == typeof(OpenIddictCleanupJob)) is false)
if (builder.Services.Any(x => !x.IsKeyedService && x.ImplementationType == typeof(OpenIddictCleanupJob)) is false)
{
ConfigureOpenIddict(builder);
}
Expand Down Expand Up @@ -132,5 +133,6 @@ private static void ConfigureOpenIddict(IUmbracoBuilder builder)
});

builder.Services.AddRecurringBackgroundJob<OpenIddictCleanupJob>();
builder.Services.ConfigureOptions<ConfigureOpenIddict>();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,5 @@ internal abstract class RequestHeaderHandler

protected RequestHeaderHandler(IHttpContextAccessor httpContextAccessor) => _httpContextAccessor = httpContextAccessor;

protected string? GetHeaderValue(string headerName)
{
HttpContext httpContext = _httpContextAccessor.HttpContext ??
throw new InvalidOperationException("Could not obtain an HTTP context");

return httpContext.Request.Headers[headerName];
}
protected string? GetHeaderValue(string headerName) => _httpContextAccessor.HttpContext?.Request.Headers[headerName];
}
Loading
Loading