Commit Graph

11845 Commits

Author SHA1 Message Date
Matteo Piovanelli
9392718d3e Cache list of configured layers (#8373)
On every page load on frontend we were querying for all existing layers to test
for the ones that are currently active. Since that information is not bound to
change often, we added a cache layer to prevent querying every time. The cache
is evicted whenever a Layer gets updated.
2020-05-07 10:35:53 -07:00
Matteo Piovanelli
60464035f7 Save MemberBindingRecords in memory (#8371)
Prevent fetching the same table from the database 5+ times per request by
loading it and saving it in a private property for a request.
2020-05-07 10:29:58 -07:00
Matteo Piovanelli
9d1267a94c localizationpartdriver refactor (#8366)
* Performance on LocalizationPart
Prevent driver from repeating the same query several times in a request (it used
to try and fetch all of a part's localizations at least twice per request).
Changed query for a MasterContentItem's localizations so it should "hint" sql to
use different indexes.
2020-05-07 10:27:58 -07:00
Matteo Piovanelli
a75203b883 Attempted AutoroutePart improvement (#8360)
This should ease Database issues, because it short circuits some code paths
through aliases.
2020-04-30 10:09:33 -07:00
Matteo Piovanelli
b2a8e92a53 Added a new index to CommonPartRecord (#8362) 2020-04-30 10:08:10 -07:00
Hermes Sbicego
c1374f9be9 Reuse Settings_ShellDescriptorRecord during an http request (#8355) 2020-04-30 10:05:57 -07:00
Hermes Sbicego
8a327cf887 Removes useless and case sensitive check (#8352)
That check was useless because we use a int.TryParse. Morevoer queryString.AllKeys.Contains() is case sensitive.
2020-04-23 10:11:07 -07:00
Steven Dawkins
914b5f8391 Made RazorCompiler ILogger property public to allow ILogger to be injected (#8343) 2020-04-16 10:24:43 -07:00
Matteo Piovanelli
b523b342d6 Added admin search permissions (#8346) 2020-04-16 10:22:20 -07:00
Hermes Sbicego
21cb531949 Fixes errors during Indexing (#8349) 2020-04-16 10:17:56 -07:00
Matteo Piovanelli
d57af5860a Added tokenizable default value to ContentPickerFields (#8351) 2020-04-16 10:13:30 -07:00
Zoltán Lehóczky
b960866531 Merge branch '1.10.x' into dev
# Conflicts:
#	src/Orchard.Web/Modules/Markdown/Markdown.csproj
#	src/Orchard.Web/Modules/Orchard.Projections/Handlers/FieldIndexPartHandler.cs
#	src/Orchard.Web/Modules/Orchard.Recipes/Views/Admin/Index.cshtml
#	src/Orchard.Web/Modules/Orchard.Taxonomies/Views/TermAdmin/Index.cshtml
#	src/Orchard.sln
2020-04-07 23:03:58 +02:00
Lombiq
dbc1e61069 Adding NuGet config file to keep packages in the packages folder and thus be able to build the solution with the current NuGet version 2020-04-07 22:06:10 +02:00
Hermes Sbicego
b54d2fadc0 CustomForms throws an error when used within a Widget (#8338) 2020-04-02 10:12:55 -07:00
ElenaRepository
55f0115459 replace code with static method (#8337)
Co-authored-by: elena.lampugnani <elena.lampugnani@laser-group.com>
2020-03-26 12:03:56 -07:00
Hermes Sbicego
e4b251b9ce - Moved condition of ContentType not null in a try catch statement to handle the case the ContentItem was destroyed (#8335) 2020-03-19 12:05:53 -07:00
Sébastien Ros
27e6401965 Add a fake transparent background for image thumbnails (#8329) 2020-03-05 14:35:11 -08:00
Sébastien Ros
fb220a60a3 Add button manage approve disable in edit user (#8321) 2020-03-05 12:06:11 -08:00
Hermes Sbicego
5015809444 Adds a link "View" in "Admin/Index.cshtml" to see how it looks the Taxonomony on the front-end (#8323)
Fixes #8322
2020-02-13 12:09:35 -08:00
Matteo Piovanelli
937702479c Tabs and Cards to better organize parts and fields (#8310) 2020-02-06 12:16:16 -08:00
Aaron Amm
e4ac0c02bc Convert Kudu custom script to PowerShell (#8315) 2020-02-06 12:15:46 -08:00
Lawyerson
ffaa98724a Tweak TermsPartHandler to skip unpublished terms (#8311) 2020-01-23 12:30:09 -08:00
Lawyerson
92773eb8bf Remove newly added terms before processing (#8312) 2020-01-23 12:29:48 -08:00
Andrew Cartwright
0469c3a2fd Remove ArchiveLaterTask if content item is deleted (#8308) 2020-01-23 12:26:46 -08:00
ElenaRepository
d94d50f67d Correct archive when date changed (#8306) 2020-01-16 13:12:11 -08:00
ElenaRepository
fc9a08fd12 Fix/8302 manage pagination blogpostarchive (#8304) 2020-01-09 12:13:52 -08:00
Aaron Amm
608df75429 Upgrade to net 461 (#8296)
* Add New-TargetFramework PowerShell script to set .NET Framework

* Update all projects in the solution to .NET 4.6.1 that supports .NET Standard 2.0
2019-12-19 12:26:54 -08:00
Hermes Sbicego
e47aca5914 Making messages of register.cshtml consistent with the User settings (#8301) 2019-12-19 12:25:45 -08:00
Sébastien Ros
bb8348626b Using Markdig (#8299)
Removes usage of regular expressions to convert markdown.
2019-12-12 12:07:44 -08:00
Matteo Piovanelli
40eca06645 Rewritten the handler to avoid fetching stuff too often from the repository. Changed the MoveTerm method to handle the case where the term is being moved to a different taxonomy (e.g. when translating). (#8295) 2019-12-05 12:31:04 -08:00
GiuseppeMusso-Laser
c13c008f74 fixed a typo in MediaLibraryPickerFieldDriver (#8297) 2019-12-05 12:25:03 -08:00
Matteo Piovanelli
abfe7a022e caching sitecultureselector and sslsettingspart (#8289) 2019-12-05 12:10:18 -08:00
Matteo Piovanelli
104d18aa06 ReCaptchaPartDriver always returns a shape (#8292)
* We changed when ReCaptchaPartDriver verifies whether it's being executed on the Admin side, moving the test from the driver's execution to the shape's, so that the ShapeType is available to other features and services that process the driver's output (e.g. for placement)

* store the first validation of recaptcha to avoid failing if the driver runs again in a single request
2019-12-05 12:06:53 -08:00
ElenaRepository
a67b3cfa00 Fix bug field index part handler (#8294) 2019-12-05 12:04:56 -08:00
Lombiq
0a82721968 Making ClickToBuild compatible with VS 2019 2019-11-26 18:55:24 +01:00
Michael Sync
c9ae8fa6b6 Cannot insert duplicate key in object 'dbo.Settings_ShellFeatureStateRecord' (#8285)
The feature names are compared without ignoring the case in EnableFeatures (with 's')  and DisabledFeatures (with 's') . It causes "Violation of UNIQUE KEY constraint 'UC_SFSR_SSRId_Name'. Cannot insert duplicate key in object 'dbo.Settings_ShellFeatureStateRecord'" error when there is a module that has the same name but lower case in [Settings_ShellFeatureStateRecord] table and/or Settings_ShellFeatureRecord.

in EnableFeature (without 's') has the correct way (e.g. featureState.Key.Id.Equals(fId, StringComparison.OrdinalIgnoreCase)).
2019-11-21 12:16:44 -08:00
Andrew Cartwright
70c4541977 Adds field removal to ContentTypeStep (#8282) 2019-10-31 12:05:39 -07:00
Andrew Cartwright
a0a1d1037e Adds RemovePartFromContentTypeStep for deltas (#8280) 2019-10-17 12:16:54 -07:00
Lombiq
026f81fd16 Core/Contents: ContentsHandler now initializes the DisplayText to the content item's ContentType 2019-09-05 22:30:33 +02:00
Benedek Farkas
5668919dd4 Projections: "RewriteOutput" bool property of a Layout Property migrated to a tokenized condition text, fixes #6928 (#8275) 2019-09-05 22:08:55 +02:00
MarcoViglione-Laser
5815a2b9fa Taxonomies: Fixing that TaxonomiesLocalizationExtensions caused Terms to be saved as Draft when changing their Weight, fixes #8273 2019-09-05 13:01:50 +02:00
Lombiq
7d2dd28404 Lists: Code styling and fixing punctuation in T-strings in AdminController 2019-08-30 13:22:29 +02:00
Pablo Sanchez
a55cb430e2 Modules: Adding styling to Recipe description display to keep line breaks
Taken from https://github.com/OrchardCMS/Orchard/pull/7940
2019-08-30 11:22:42 +02:00
Lombiq
ac11024be4 Framework/UI/Resources: Removing ResourceDefinition.CdnSupportsSsl
Discussion: https://github.com/OrchardCMS/Orchard/issues/6941
2019-08-29 23:53:55 +02:00
Lombiq
e7bcd916a9 Merge branch '1.10.x' into dev
# Conflicts:
#	src/Orchard.Web/Modules/Orchard.ContentTypes/Views/DisplayTemplates/EditTypeViewModel.cshtml
#	src/Orchard.Web/Modules/Orchard.Recipes/Views/Admin/Index.cshtml
#	src/Orchard.Web/Modules/Orchard.Resources/Bootstrap.cs
#	src/Orchard.Web/Modules/Orchard.Resources/jQuery.cs
#	src/Orchard/UI/Resources/ResourceDefinition.cs
2019-08-29 23:34:49 +02:00
Lombiq
ac60046468 Framework/UI/Resources: ResourceDefinition.CdnSupportsSsl is now obsolete
Discussion: https://github.com/OrchardCMS/Orchard/issues/6941
2019-08-29 23:20:20 +02:00
Alan Cherney
ffeed7b285 Allow Feature Prefix override in TableDbName (#7642) 2019-08-29 12:25:37 -07:00
LorenzoFrediani-Laser
e8f22a472c Null check on method (#8271)
#8270
2019-08-29 12:21:45 -07:00
Lombiq
66480eb6b1 Modules: Code styling and Recipe name display fix in Recipe listing 2019-08-28 19:40:41 +02:00
Lombiq
cf821e1fdc ContentTypes: Updating the "Creatable" content type setting's hint to be more descriptive 2019-08-28 19:09:58 +02:00