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

v9.11.0 Bump peter-evans/create-pull-request from 3.14.0 to 4 #5061

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
81a4d00
Fix failure to report issues when clean fails
bdukes Mar 1, 2022
62b8299
Merge pull request #5034 from bdukes/report-clean-build-errors
valadas Mar 2, 2022
eb82504
Update InternalSearchControllerImpl.cs
Andy9999 Mar 20, 2022
f788a5c
Fix for issue #5047.
Andy9999 Mar 20, 2022
a2417aa
Update SearchServiceControllerTests.cs
Andy9999 Mar 20, 2022
e658f1f
Merge pull request #5053 from Andy9999/Fix-for-Issue-#5049
valadas Mar 21, 2022
4fa439c
Update DNN Platform/Website/admin/Skins/Privacy.ascx.cs
Andy9999 Mar 21, 2022
4783633
Update DNN Platform/Website/admin/Skins/Terms.ascx.cs
Andy9999 Mar 21, 2022
22cb52a
Update DNN Platform/Website/admin/Skins/privacy.ascx
Andy9999 Mar 21, 2022
da56b4a
Update DNN Platform/Website/admin/Skins/terms.ascx
Andy9999 Mar 21, 2022
6d9b111
Apply suggestions from code review
bdukes Mar 21, 2022
a655ed1
Missing semicolons
Andy9999 Mar 21, 2022
c4d1d4d
Fix typo
bdukes Mar 21, 2022
6ac1985
Fix not reporting errors or warnings from build
bdukes Mar 21, 2022
fee726b
Merge pull request #5054 from Andy9999/Fix-for-issue-#5047
valadas Mar 21, 2022
33fe6c5
Merge pull request #5056 from bdukes/fix-build-report-errors
valadas Mar 21, 2022
b9a5446
Do not add a rel attribute to hyperlink at all if it is not set in th…
Andy9999 Mar 21, 2022
fe23aa5
Update DNN Platform/Website/admin/Skins/Privacy.ascx.cs
Andy9999 Mar 21, 2022
16e6e27
Update DNN Platform/Website/admin/Skins/Terms.ascx.cs
Andy9999 Mar 21, 2022
87d23d3
Merge pull request #5057 from Andy9999/Fix-for-issue-#5047
valadas Mar 22, 2022
f6c8203
Bump peter-evans/create-pull-request from 3.14.0 to 4
dependabot[bot] Mar 23, 2022
e2b2456
Merge pull request #5059 from dnnsoftware/dependabot/github_actions/p…
valadas Mar 24, 2022
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
2 changes: 1 addition & 1 deletion .github/workflows/image-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Create Pull Request
if: | # If it's not a Pull Request then commit any changes as a new PR.
github.event_name != 'pull_request' && steps.compress_images.outputs.markdown != ''
uses: peter-evans/create-pull-request@v3.14.0
uses: peter-evans/create-pull-request@v4
with:
title: Auto Compress Images
branch-suffix: timestamp
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/updateVersions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
run: yarn install --mode=update-lockfile --no-immutable

- name: Create Pull Request
uses: peter-evans/create-pull-request@v3.14.0
uses: peter-evans/create-pull-request@v4
with:
commit-message: Updates versions as per release candidate creation
title: Updates versions as per release candidate creation
Expand Down
20 changes: 7 additions & 13 deletions Build/Tasks/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace DotNetNuke.Build.Tasks
{
using System;
using System.Collections.Generic;
using System.Linq;

using Cake.Common.Build;
using Cake.Common.Build.AzurePipelines.Data;
Expand Down Expand Up @@ -41,18 +41,12 @@ public override void Run(Context context)
}
finally
{
var issues = context.ReadIssues(
new List<IIssueProvider>
{
new MsBuildIssuesProvider(
context.Log,
new MsBuildIssuesSettings(cleanLog, context.MsBuildBinaryLogFileFormat())),
new MsBuildIssuesProvider(
context.Log,
new MsBuildIssuesSettings(buildLog, context.MsBuildBinaryLogFileFormat())),
},
context.Directory("."));

var issueProviders =
from logFilePath in new[] { cleanLog, buildLog, }
where context.FileExists(logFilePath)
let settings = new MsBuildIssuesSettings(logFilePath, context.MsBuildBinaryLogFileFormat())
select new MsBuildIssuesProvider(context.Log, settings);
var issues = context.ReadIssues(issueProviders, context.Directory("."));
foreach (var issue in issues)
{
var messageData = new AzurePipelinesMessageData
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ namespace DotNetNuke.Services.Search.Internals
/// -----------------------------------------------------------------------------
internal class InternalSearchControllerImpl : IInternalSearchController
{
private const string SearchableModuleDefsKey = "{0}-{1}";
private const string SearchableModuleDefsKey = "{0}-{1}-{2}";
private const string SearchableModuleDefsCacheKey = "SearchableModuleDefs";
private const string LocalizedResxFile = "~/DesktopModules/Admin/SearchResults/App_LocalResources/SearchableModules.resx";

Expand Down Expand Up @@ -79,7 +79,7 @@ public InternalSearchControllerImpl()
public IEnumerable<SearchContentSource> GetSearchContentSourceList(int portalId)
{
var searchableModuleDefsCacheArgs = new CacheItemArgs(
string.Format(SearchableModuleDefsKey, SearchableModuleDefsCacheKey, portalId),
string.Format(SearchableModuleDefsKey, SearchableModuleDefsCacheKey, portalId, Thread.CurrentThread.CurrentCulture),
120, CacheItemPriority.Default);

var list = CBO.GetCachedObject<IList<SearchContentSource>>(
Expand All @@ -92,7 +92,7 @@ public IEnumerable<SearchContentSource> GetSearchContentSourceList(int portalId)
public string GetSearchDocumentTypeDisplayName(SearchResult searchResult)
{
// ModuleDefId will be zero for non-module
var key = string.Format("{0}-{1}", searchResult.SearchTypeId, searchResult.ModuleDefId);
var key = string.Format("{0}-{1}-{2}", searchResult.SearchTypeId, searchResult.ModuleDefId, Thread.CurrentThread.CurrentCulture);
var keys = CBO.Instance.GetCachedObject<IDictionary<string, string>>(
new CacheItemArgs(key, 120, CacheItemPriority.Default), this.SearchDocumentTypeDisplayNameCallBack, false);

Expand Down Expand Up @@ -340,7 +340,7 @@ private object SearchDocumentTypeDisplayNameCallBack(CacheItemArgs cacheItem)
var searchContentSources = this.GetSearchContentSourceList(portal.PortalID);
foreach (var searchContentSource in searchContentSources)
{
var key = string.Format("{0}-{1}", searchContentSource.SearchTypeId, searchContentSource.ModuleDefinitionId);
var key = string.Format("{0}-{1}-{2}", searchContentSource.SearchTypeId, searchContentSource.ModuleDefinitionId, Thread.CurrentThread.CurrentCulture);
if (!data.ContainsKey(key))
{
data.Add(key, searchContentSource.LocalizedName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ public void SetUp()
this.internalSearchController = InternalSearchController.Instance;

this.mockCBO = new Mock<ICBO>();
var tabKey = string.Format("{0}-{1}", TabSearchTypeId, 0);
var userKey = string.Format("{0}-{1}", UserSearchTypeId, 0);
var tabKey = string.Format("{0}-{1}-{2}", TabSearchTypeId, 0, CultureEnUs);
var userKey = string.Format("{0}-{1}-{2}", UserSearchTypeId, 0, CultureEnUs);
this.mockCBO.Setup(c => c.GetCachedObject<IDictionary<string, string>>(It.IsAny<CacheItemArgs>(), It.IsAny<CacheItemExpiredCallback>(), It.IsAny<bool>()))
.Returns(new Dictionary<string, string>() { { tabKey, TabSearchTypeName }, { userKey, UserSearchTypeName } });
CBO.SetTestableInstance(this.mockCBO.Object);
Expand Down
140 changes: 73 additions & 67 deletions DNN Platform/Website/admin/Skins/Privacy.ascx.cs
Original file line number Diff line number Diff line change
@@ -1,73 +1,79 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information
namespace DotNetNuke.UI.Skins.Controls
{
using System;
namespace DotNetNuke.UI.Skins.Controls
{
using System;

using DotNetNuke.Abstractions;
using DotNetNuke.Common;
using DotNetNuke.Common.Utilities;
using DotNetNuke.Services.Exceptions;
using DotNetNuke.Services.Localization;
using DotNetNuke.Abstractions;
using DotNetNuke.Common;
using DotNetNuke.Common.Utilities;
using DotNetNuke.Services.Exceptions;
using DotNetNuke.Services.Localization;
using Microsoft.Extensions.DependencyInjection;

/// -----------------------------------------------------------------------------
/// <summary></summary>
/// <returns></returns>
/// <remarks></remarks>
/// -----------------------------------------------------------------------------
public partial class Privacy : SkinObjectBase
{
private const string MyFileName = "Privacy.ascx";
private readonly INavigationManager _navigationManager;

public Privacy()
{
this._navigationManager = Globals.DependencyProvider.GetRequiredService<INavigationManager>();
}

public string Text { get; set; }

public string CssClass { get; set; }

protected override void OnInit(EventArgs e)
{
base.OnInit(e);

this.InitializeComponent();
}

protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
try
{
if (!string.IsNullOrEmpty(this.CssClass))
{
this.hypPrivacy.CssClass = this.CssClass;
}

if (!string.IsNullOrEmpty(this.Text))
{
this.hypPrivacy.Text = this.Text;
}
else
{
this.hypPrivacy.Text = Localization.GetString("Privacy", Localization.GetResourceFile(this, MyFileName));
}

this.hypPrivacy.NavigateUrl = this.PortalSettings.PrivacyTabId == Null.NullInteger ? this._navigationManager.NavigateURL(this.PortalSettings.ActiveTab.TabID, "Privacy") : this._navigationManager.NavigateURL(this.PortalSettings.PrivacyTabId);
this.hypPrivacy.Attributes["rel"] = "nofollow";
}
catch (Exception exc)
{
Exceptions.ProcessModuleLoadException(this, exc);
}
}

private void InitializeComponent()
{
}
}
}
/// -----------------------------------------------------------------------------
/// <summary></summary>
/// <returns></returns>
/// <remarks></remarks>
/// -----------------------------------------------------------------------------
public partial class Privacy : SkinObjectBase
{
private const string MyFileName = "Privacy.ascx";
private readonly INavigationManager _navigationManager;

public Privacy()
{
this._navigationManager = Globals.DependencyProvider.GetRequiredService<INavigationManager>();
}

public string Text { get; set; }

public string CssClass { get; set; }

public string Rel { get; set; } = "nofollow";

protected override void OnInit(EventArgs e)
{
base.OnInit(e);

this.InitializeComponent();
}

protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
try
{
if (!string.IsNullOrEmpty(this.CssClass))
{
this.hypPrivacy.CssClass = this.CssClass;
}

if (!string.IsNullOrEmpty(this.Text))
{
this.hypPrivacy.Text = this.Text;
}
else
{
this.hypPrivacy.Text = Localization.GetString("Privacy", Localization.GetResourceFile(this, MyFileName));
}

this.hypPrivacy.NavigateUrl = this.PortalSettings.PrivacyTabId == Null.NullInteger ? this._navigationManager.NavigateURL(this.PortalSettings.ActiveTab.TabID, "Privacy") : this._navigationManager.NavigateURL(this.PortalSettings.PrivacyTabId);
if (!string.IsNullOrWhiteSpace(this.Rel))
{
this.hypPrivacy.Attributes["rel"] = this.Rel;
}

}
catch (Exception exc)
{
Exceptions.ProcessModuleLoadException(this, exc);
}
}

private void InitializeComponent()
{
}
}
}
141 changes: 73 additions & 68 deletions DNN Platform/Website/admin/Skins/Terms.ascx.cs
Original file line number Diff line number Diff line change
@@ -1,74 +1,79 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information
namespace DotNetNuke.UI.Skins.Controls
{
using System;
namespace DotNetNuke.UI.Skins.Controls
{
using System;

using DotNetNuke.Abstractions;
using DotNetNuke.Common;
using DotNetNuke.Common.Utilities;
using DotNetNuke.Services.Exceptions;
using DotNetNuke.Services.Localization;
using DotNetNuke.Abstractions;
using DotNetNuke.Common;
using DotNetNuke.Common.Utilities;
using DotNetNuke.Services.Exceptions;
using DotNetNuke.Services.Localization;
using Microsoft.Extensions.DependencyInjection;

/// -----------------------------------------------------------------------------
/// <summary></summary>
/// <returns></returns>
/// <remarks></remarks>
/// -----------------------------------------------------------------------------
public partial class Terms : SkinObjectBase
{
private const string MyFileName = "Terms.ascx";
private readonly INavigationManager _navigationManager;

public Terms()
{
this._navigationManager = Globals.DependencyProvider.GetRequiredService<INavigationManager>();
}

public string Text { get; set; }

public string CssClass { get; set; }

protected override void OnInit(EventArgs e)
{
base.OnInit(e);

this.InitializeComponent();
}

protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
try
{
if (!string.IsNullOrEmpty(this.CssClass))
{
this.hypTerms.CssClass = this.CssClass;
}

if (!string.IsNullOrEmpty(this.Text))
{
this.hypTerms.Text = this.Text;
}
else
{
this.hypTerms.Text = Localization.GetString("Terms", Localization.GetResourceFile(this, MyFileName));
}

this.hypTerms.NavigateUrl = this.PortalSettings.TermsTabId == Null.NullInteger ? this._navigationManager.NavigateURL(this.PortalSettings.ActiveTab.TabID, "Terms") : this._navigationManager.NavigateURL(this.PortalSettings.TermsTabId);

this.hypTerms.Attributes["rel"] = "nofollow";
}
catch (Exception exc)
{
Exceptions.ProcessModuleLoadException(this, exc);
}
}

private void InitializeComponent()
{
}
}
}
/// -----------------------------------------------------------------------------
/// <summary></summary>
/// <returns></returns>
/// <remarks></remarks>
/// -----------------------------------------------------------------------------
public partial class Terms : SkinObjectBase
{
private const string MyFileName = "Terms.ascx";
private readonly INavigationManager _navigationManager;

public Terms()
{
this._navigationManager = Globals.DependencyProvider.GetRequiredService<INavigationManager>();
}

public string Text { get; set; }

public string CssClass { get; set; }

public string Rel { get; set; } = "nofollow";

protected override void OnInit(EventArgs e)
{
base.OnInit(e);

this.InitializeComponent();
}

protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
try
{
if (!string.IsNullOrEmpty(this.CssClass))
{
this.hypTerms.CssClass = this.CssClass;
}

if (!string.IsNullOrEmpty(this.Text))
{
this.hypTerms.Text = this.Text;
}
else
{
this.hypTerms.Text = Localization.GetString("Terms", Localization.GetResourceFile(this, MyFileName));
}

this.hypTerms.NavigateUrl = this.PortalSettings.TermsTabId == Null.NullInteger ? this._navigationManager.NavigateURL(this.PortalSettings.ActiveTab.TabID, "Terms") : this._navigationManager.NavigateURL(this.PortalSettings.TermsTabId);
if (!string.IsNullOrWhiteSpace(this.Rel))
{
this.hypTerms.Attributes["rel"] = this.Rel;
}

}
catch (Exception exc)
{
Exceptions.ProcessModuleLoadException(this, exc);
}
}

private void InitializeComponent()
{
}
}
}