Commit Graph

46034 Commits

Author SHA1 Message Date
Warren Buckley
2f4b198ad3 [V15] Updated dotnet template for Umbraco Packages with Bellisima (#17108)
* [WIP] Create Umbraco/Bellissima Package

* Removes existing 'UmbracoPackage'

This is because the RCL based one will be the only one going forward

* Rename existing UmbracoPackageRCL to UmbracoPackage

* Drop the mentions of RCL in the identifiers

* CodeQL GitHub Action is complaining due to V15 wanting v9 .NET

* Rename UmbracoPackage template to UmbracoExtension

As this will only scaffold an extension and not other bits for a package such as Nuget, Github Actions & other things needed to be done to ship out a package

* Remove package lock as npm install by the OS should generate this and can differ between Windows, Linux/OSX

* Move JS clientside stuff into a folder called Client

Will allow us to ignore the folder if or when doing a dotnet pack with a rule in CSProj

* Add in .VSCode recommened extensions file to get the useful Lit Extension for completions in VSCode

* For now remove the example dashboard & prop editor

* Add a simple entrypoint

* Fix path for primary output after rename

* Use link suggested from Lotte

* Use backofficeEntryPoint as entryPoint is deprecated

* Update the umbraco-package.json to opt into telemetry as per PR suggestion

* Improve commented code to include a link to docs

* Improve readme from suggestions

* Updates package.json to use latest Vite & TS

Copies the tsconfig from the default scaffolding of vite lit-ts CLI

* Adds the base property suggestion from Jacob & puts in a comment as to what its used for

* Work in progress from hackathon day/afternoon

* Hey-API generating a HTTP Client had changed and was a PITA to figure out what had changed

Things to do for next time:
Include these files if they include --include-samples flag

* constants.ts
* Controllers/
* Composers/
* client/src/api
* client/src/dashboards/
* client/src/entrypoints

Change file contents
* client/src/bundle.manifests.ts
* client/src/package.json (extra dependencies)

* Adds in new property/flag/switch for dotnet new template

* Warren cant spell Whether 🙈

* Update template.json to exclude the sample files if flag is not set/false

* Make SLN happy/build

* Conditional content in files for IncludeExample flag/switch

* Need to include the content otherwise it doesnt get packed by nuget

* Fix the path for the openapi-ts-config.ts file to be included/excluded

* Use the project name from the dotnet new to help name manifests

* Update namespaces so they get updated when dotnet new templatge is run with the --name

* Updated example

* Fix up VS Code recommended extension for Lit VSCode

Should be .json not a .ts

* Fix up build - as we dont use the imported UmbCurrentUserContext

* Remove the relative path to the JSON schema as unable to know path to the web project

* Typo fix as spooted by Rich

* Update templates/UmbracoExtension/.template.config/template.json

Co-authored-by: Lotte Pitcher <LottePitcher@users.noreply.github.com>

* Adds a --site-domain flag/switch to use for setting the domain prefix

Sets a default value of https://localhost:5000
We have no way of knowing what URL/domain the site is running at for the Umbraco website project

* Rename stuff so its not 'example' & only have ping if include-examples is not set

* As agreed with Lotte makes sense we always generate OpenAPI & TS client

* Update umbraco-extension description

* Generic node script to generate the TS client

Checks if it can connect to it first and prompts user to ensure Umbraco site running or perhaps they need to change the URL in package.json for the node script

* Generated API has conditional stuff in now to have just Ping or the more examples based on switch/flag

* Adds symbols safeNamespace and safeName

safeNamespace uses the one built in and then safeName, depends on the cleaned namespace to then use a custom transform (forms) to then use a regex replace on . and _ to ensure we have a nicer name still for namespaces, class names, URL/routes for the swagger etc...

* change to use Umbraco.Extension as sourcename - check \.template.config\readme.md for 'placeholder' guidance

* use '-sd' as shortname for site-domain as otherwise shows up as '-p:d'

* fix typescript build error  when not including examples

* use provided name for API description as always being added

* Missing renames of Contrioller stuff with Lotte @ hackathon

* We missed the ctor

* Titlecase the API URLs for Swagger/API Controller

* dashboard tweaks

* Missing [Server] on Whats the Time Modal/UUI-box

---------

Co-authored-by: leekelleher <leekelleher@gmail.com>
Co-authored-by: Lotte Pitcher <LottePitcher@users.noreply.github.com>
Co-authored-by: Lotte Pitcher <github@lottepitcher.co.uk>
2024-11-08 06:55:43 +00:00
Nikolaj Geisle
79059d60f5 Merge branch 'release/15.0' into v15/dev
# Conflicts:
#	src/Umbraco.Web.UI.Client
#	version.json
2024-11-06 17:36:01 +01:00
Sven Geusens
a9dd8b00e0 Optimize local links migration (#17432)
* Make the migration batched and process in paralel

* Change log level

* More log levels

---------

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2024-11-06 15:35:01 +01:00
Sven Geusens
24ec0ee4cb Optimize tracked references (#16996)
* Optimed sql for checking if a list documents is tracked by a reference

* Remove unoptimzed method and update Media controller too

* Revert spacing, formatting and unneeded code change

This partially reverts commit d32b6acf4fa2f167e40b789e0cd02ce355a3a8ed.

* Cleanup temporary renaming

* Add default implementations

* Fix merge issue

---------

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2024-11-06 10:27:04 +01:00
Bjarke Berg
0bf2fbc24f Fix has pending package migrations (#17423)
* update submodule

* update submodule

* Reintroduce a favicon (#17422)

* Fixes issue where package name was compared to package id, so packages had pending migrations from the management api endpoint, without actually have it.

---------

Co-authored-by: Niels Lyngsø <niels.lyngso@gmail.com>
2024-11-06 09:56:26 +01:00
Zeegaan
eda9048393 Bump version 2024-11-06 09:08:35 +01:00
Bjarke Berg
8e147c2aa7 Reintroduce a favicon (#17422) 2024-11-05 13:32:23 +01:00
Niels Lyngsø
c921f8f357 update submodule 2024-11-05 10:34:32 +01:00
Bjarke Berg
21a3c31d77 Fixed stupid build warnings that is handled like errors 2024-11-05 10:26:15 +01:00
Niels Lyngsø
d91cddfe18 update submodule 2024-11-05 10:09:08 +01:00
Niels Lyngsø
d912bab9d2 update submodule 2024-11-05 10:08:31 +01:00
Bjarke Berg
336bd997f1 Merge remote-tracking branch 'origin/release/15.0' into v15/dev
# Conflicts:
#	src/Umbraco.Infrastructure/Migrations/Upgrade/V_15_0_0/ConvertBlockEditorPropertiesBase.cs
#	src/Umbraco.Web.UI.Client
2024-11-05 09:14:08 +01:00
Niels Lyngsø
c8cbbcc608 update submodule 2024-11-05 09:10:17 +01:00
Niels Lyngsø
983a0ec736 update submodule 2024-11-05 09:09:45 +01:00
Sven Geusens
66ae6aa2b6 Obsolete ContentDashboardSettings (#17389) 2024-11-05 07:25:16 +01:00
Kenn Jacobsen
2c04e37b42 Support limited language access at block level (#17322)
* Support limited language access at block level

* Account for AllowEditInvariantFromNonDefault when updating properties (#17333)

* Remove obsolete ctor

* Add explanatory comment

* Set AllowEditInvariantFromNonDefault to true on tests

* Refactor to account for merge and default language

* Merge invariant values on top of the already merged values

* Add integration test to prove invariant merging

---------

Co-authored-by: kjac <kja@umbraco.dk>

---------

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
2024-11-05 06:32:34 +01:00
Kenn Jacobsen
30d4ec4ef5 Prevent Delivery API output cache configuration from affecting other controllers (#17405)
Co-authored-by: Elitsa <elm@umbraco.dk>
2024-11-04 18:56:17 +01:00
Kenn Jacobsen
754276448a Do not migrate blocks in parallel on SQLite (#17416) 2024-11-04 14:29:14 +01:00
Kenn Jacobsen
b46f7bbf11 Add ContentKey to IBlockReference and obsolete ContentUdi (#17365) 2024-11-04 14:09:03 +01:00
Kenn Jacobsen
0505ff5316 Fix security scheme issues in Delivery API OpenAPI spec (#17401) 2024-11-04 14:07:18 +01:00
nikolajlauridsen
72bc3f8306 Fix merge error 2024-11-04 12:54:52 +01:00
nikolajlauridsen
8f86ac1bd1 Merge branch 'release/15.0' into v15/dev
# Conflicts:
#	src/Umbraco.Core/Services/DocumentUrlService.cs
2024-11-04 12:49:38 +01:00
Sven Geusens
691ca2827d Migrate old locallinks formats (#17307)
* Initial working localLinks migration

* Cleanup

* Refactor for extendability part 1

* Refactor part 2

* Fixed circular dependency

* Made sure all the extendable logic for the migration is marked as obsolete for v18

* Refactor to use Interface and non circular references instead

* Use Npco for SQLserver compatibility and include media properties too

---------

Co-authored-by: nikolajlauridsen <nikolajlauridsen@protonmail.ch>
2024-11-04 12:30:23 +01:00
Sven Geusens
e50a1dc015 Migrate old locallinks formats (#17307)
* Initial working localLinks migration

* Cleanup

* Refactor for extendability part 1

* Refactor part 2

* Fixed circular dependency

* Made sure all the extendable logic for the migration is marked as obsolete for v18

* Refactor to use Interface and non circular references instead

* Use Npco for SQLserver compatibility and include media properties too

---------

Co-authored-by: nikolajlauridsen <nikolajlauridsen@protonmail.ch>
2024-11-04 12:29:55 +01:00
Bjarke Berg
6417948a58 #17391 (#17413)
Fixes issue with the delivery api can find unpublished content
2024-11-04 12:27:47 +01:00
Sebastiaan Janssen
e4d99747d1 fix: prevent copying of the node_modules directory (#17331)
As noted in #16659, everything from `App_Plugins` is copied into the web
output. This is unneeded and in the case of the `node_modules` directory
unwanted behavior, these files are sources and not output that Umbracco
needs to serve packages/extensions.

The old behavior has led to many of the "path too long" errors we've
been seeing while building extensions.
2024-11-04 10:27:23 +01:00
Andreas Zerbst
ab5b007d44 Updated lucene net replicator package (#17415)
* Updated package

* Added dependency on Umbraco.Examine
2024-11-04 10:07:13 +01:00
Kenn Jacobsen
1fe689e027 Add logging to RTE integration tests to trace the source of the failing tests (#17376)
* Add logging to RTE integration tests to trace the source of the failing tests

* Revert build host change

* Explicitly log to console

* Make the test assertions less fragile
2024-11-04 07:26:32 +01:00
Kenn Jacobsen
5fe91f837d Validation for block level variation (#17355)
* Validation for block level variation

* Make the "missing property value" JSON path expression valid

* Update src/Umbraco.Core/Services/ContentValidationServiceBase.cs

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>

* Update src/Umbraco.Core/Services/ContentValidationServiceBase.cs

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>

* Update src/Umbraco.Infrastructure/PropertyEditors/BlockEditorValidatorBase.cs

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>

---------

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
2024-10-31 10:04:54 +01:00
Sebastiaan Janssen
2ff0a3fd3d fix: prevent copying of the node_modules directory (#17331)
As noted in #16659, everything from `App_Plugins` is copied into the web
output. This is unneeded and in the case of the `node_modules` directory
unwanted behavior, these files are sources and not output that Umbracco
needs to serve packages/extensions.

The old behavior has led to many of the "path too long" errors we've
been seeing while building extensions.
2024-10-29 23:06:56 +01:00
Nikolaj Geisle
3ecd5b470f V15: Add back url segments again (#17390)
* Add logic for UrlSegments back

* Revert extension method back
2024-10-29 13:20:48 +01:00
Bjarke Berg
9ac2234121 Updated nuget packages 2024-10-25 (#17370)
* Updated nuget packages

* Ignore ObjectDisposedException when disposing all disposable
2024-10-29 11:00:04 +01:00
Bjarke Berg
f0a1d62247 Fixes slow legacy routes and added async overloads for delivery api (#17371) 2024-10-29 10:01:52 +01:00
Mole
d1799ecdd2 V15: Refresh caches on load balanced environments (#17296)
* Move DocumentCacheService

* Add clear all documentws from memory cache

* Fix RedirectTracker

* Implement refresh node/branch/all/delete

* Only update databasecache in RefreshContentAsync

* Fix tests

* Skip blueprints in cache

* Clear caches when contenttype is updated

* Clear cache on data type update

* Refresh media

* Only update memory cache from refreshers

* Fix imports

* Add named options

* Use cache entry settings in media

* Obsolete nucache settings

---------

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2024-10-28 15:31:39 +01:00
Mole
621a35f21f Increase default payload size to 100MB (#17382) 2024-10-28 15:20:35 +01:00
Bjarke Berg
e92a1b73f0 Formatting and disable warningsaserrors on tests 2024-10-28 13:19:46 +01:00
Bjarke Berg
aceadc1ed7 Fixed formatting and comment warnings/errors 2024-10-28 12:58:28 +01:00
Bjarke Berg
9a80328224 Merge remote-tracking branch 'origin/release/15.0' into v15/dev
# Conflicts:
#	src/Umbraco.Web.UI.Client
#	tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Dictionary/Dictionary.spec.ts
#	version.json
2024-10-28 12:32:39 +01:00
Bjarke Berg
b05564c03f Added DisableBuildCompression to not make compressed versions of back… (#17380)
* Added DisableBuildCompression to not make compressed versions of backoffice client. That should dotnet not spend time on when building

* Also add to our own execuable even that we do not ship it

* Also add to our own execuable even that we do not ship it

* Use <CompressionEnabled>false</CompressionEnabled> instead

* Revert "Also add to our own execuable even that we do not ship it"

This reverts commit 183200d24b6d381fee0dc35894db72abb037e634.
2024-10-28 12:31:46 +01:00
Bjarke Berg
935c3b8e42 Initialize important services before unattended installs (#17366)
* Added new notification to hook in after the premigrations and use this to init different services.

* Force MaxDegreeOfParallelism to 1, while investigating scopes

* Tried some more workarounds

* Updated scopes and changed parallel to non parallel to ensure migration works

* Missing scope

* Make it parallel again - The secret is, the SuppressFlow needs to be when you create the task, but not on the await!.

* Fixed issue when DEBUG_SCOPES is not added to tests.

* Remove test exception

* Try build on ubuntu again, even that we know it can be stuck. Just a test to see if all tests pass

* Updated comment

---------

Co-authored-by: kjac <kja@umbraco.dk>
2024-10-28 12:10:38 +01:00
Elitsa Marinovska
5cc0a35665 Adding not null when annotation (#17379) 2024-10-28 11:35:48 +01:00
Elitsa Marinovska
853e605665 V15: Adding tests for INavigationQueryService.TryGetLevel() (#17375)
* Fixing implementation to return null as level when it cannot retrieve it

* Adding unit tests
2024-10-28 08:15:43 +01:00
Elitsa Marinovska
64b6c8a47e V15: Adding unit tests for INavigationQueryService.TryGetRootKeys() (#17374)
* Changing to Guid.NewGuid()

* Adding unit tests for TryGetRootKeys
2024-10-28 08:04:55 +01:00
Andreas Zerbst
2edbd7d419 V15 QA updated E2E tests (#17359)
* Updated tests for v15

* V14 QA Skip Users tests on Sqlite (#17330)

* Split sqlite test because we run into db locks

* Uses the new command

(cherry picked from commit 728dc89909)
(cherry picked from commit 126bce7721)

* Fixed tests

---------

Co-authored-by: Nhu Dinh <hnd@umbraco.dk>
2024-10-25 12:17:30 +02:00
Nikolaj Geisle
5a5de18843 Format sql statement (#17354)
(cherry picked from commit aa9f194d76)
2024-10-24 15:07:40 +02:00
Nikolaj Geisle
226819de21 Format sql statement (#17354)
(cherry picked from commit aa9f194d76)
2024-10-24 15:07:04 +02:00
Nikolaj Geisle
d6f17ee39a Swap to windows vm for build (#17348)
(cherry picked from commit 199a2f4619)
2024-10-24 09:47:24 +02:00
Nikolaj Geisle
199a2f4619 Swap to windows vm for build (#17348) 2024-10-24 09:45:59 +02:00
Andreas Zerbst
126bce7721 V14 QA Skip Users tests on Sqlite (#17330)
* Split sqlite test because we run into db locks

* Uses the new command

(cherry picked from commit 728dc89909)
2024-10-22 13:13:42 +02:00
Lee Kelleher
07a9196320 TreatWarningsAsErrors: adds condition to check not in debug compilation mode (#17327) 2024-10-22 09:55:33 +02:00