Skip to content

Commit

Permalink
Merge pull request #8 from Kentico/feat/turn-off-aplication-without-r…
Browse files Browse the repository at this point in the history
…emoving-nugget

Feat/turn off aplication without removing nugget
  • Loading branch information
fialafilip authored Apr 10, 2024
2 parents 4fcc117 + 065c315 commit 91a3813
Show file tree
Hide file tree
Showing 18 changed files with 2,310 additions and 2,169 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ insert_final_newline = true
dotnet_diagnostic.IDE0055.severity = error

dotnet_sort_system_directives_first = true
dotnet_separate_import_directive_groups = false
dotnet_separate_import_directive_groups = true

## C# Formatting Rules https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/formatting-rules

Expand Down
41 changes: 41 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Library Version**
The full version of the library or integration you experienced the issue with [e.g. 3.2.2]

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
2 changes: 1 addition & 1 deletion docs/Managing-Indexes.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ or clicking an existing path in the table at the top of the index configuration
- Included Path - can be an exact relative path of a web page item, (ex: `/path/to/my/page`), or a wildcard path (ex: `/parent-path/%`)
- To determine a web page path, select the web page in the website channel page tree, then view the "Current URL" in the Content tab of the web page. The path will be the relative path excluding the domain
- Available content types - these are the web page content types that can be selected for the path.
- Included ContentType items - each content type in the list enables modification to web pages of that type to trigger an event that your custom indexing strategy can process. If the list is empty, no web pages will trigger these events. The items should be separated by new lines.
- Included ContentType items - these are the web page content types that can be selected for the path. Each content type in the multi-select enables modification to web pages of that type to trigger an event that your custom indexing strategy can process. If no option is selected, no web pages will trigger these events.

## Indexing reusable content items

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public AzureSearchConfigurationModel(
AzureSearchIndexItemInfo index,
IEnumerable<AzureSearchIndexLanguageItemInfo> indexLanguages,
IEnumerable<AzureSearchIncludedPathItemInfo> indexPaths,
IEnumerable<AzureSearchContentTypeItemInfo> contentTypes
IEnumerable<AzureSearchIndexContentType> contentTypes
)
{
Id = index.AzureSearchIndexItemId;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
namespace Kentico.Xperience.AzureSearch.Admin;

public class AzureSearchIndexContentType
{
/// <summary>
/// Name of the indexed content type for an indexed path
/// </summary>
public string ContentTypeName { get; set; } = "";

/// <summary>
/// Displayed name of the indexed content type for an indexed path which will be shown in admin UI
/// </summary>
public string ContentTypeDisplayName { get; set; } = "";

public AzureSearchIndexContentType()
{ }

public AzureSearchIndexContentType(string className, string classDisplayName)
{
ContentTypeName = className;
ContentTypeDisplayName = classDisplayName;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class AzureSearchIndexIncludedPath
/// <summary>
/// A list of content types under the specified <see cref="AliasPath"/> that will be indexed.
/// </summary>
public List<string> ContentTypes { get; set; } = new();
public List<AzureSearchIndexContentType> ContentTypes { get; set; } = new();

/// <summary>
/// The internal identifier of the included path.
Expand All @@ -28,10 +28,10 @@ public class AzureSearchIndexIncludedPath
/// </summary>
/// <param name="indexPath"></param>
/// <param name="contentTypes"></param>
public AzureSearchIndexIncludedPath(AzureSearchIncludedPathItemInfo indexPath, IEnumerable<AzureSearchContentTypeItemInfo> contentTypes)
public AzureSearchIndexIncludedPath(AzureSearchIncludedPathItemInfo indexPath, IEnumerable<AzureSearchIndexContentType> contentTypes)
{
AliasPath = indexPath.AzureSearchIncludedPathItemAliasPath;
ContentTypes = contentTypes.Where(y => indexPath.AzureSearchIncludedPathItemId == y.AzureSearchContentTypeItemIncludedPathItemId).Select(y => y.AzureSearchContentTypeItemContentTypeName).ToList();
ContentTypes = contentTypes.ToList();
Identifier = indexPath.AzureSearchIncludedPathItemId.ToString();
}
}
Loading

0 comments on commit 91a3813

Please sign in to comment.