Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
15 changes: 12 additions & 3 deletions src/Exceptionless.Core/Models/Messaging/ExtendedEntityChanged.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
using System.Diagnostics;
using System.Text.Json.Serialization;
using Foundatio.Repositories.Models;

namespace Exceptionless.Core.Messaging.Models;

[DebuggerDisplay("{Type} {ChangeType}: Id={Id}, OrganizationId={OrganizationId}, ProjectId={ProjectId}, StackId={StackId}")]
public class ExtendedEntityChanged : EntityChanged
{
public string? OrganizationId { get; set; }
public string? ProjectId { get; set; }
public string? StackId { get; set; }
[JsonConstructor]
private ExtendedEntityChanged() { }

[JsonInclude]
public string? OrganizationId { get; private set; }

[JsonInclude]
public string? ProjectId { get; private set; }

[JsonInclude]
public string? StackId { get; private set; }

public static ExtendedEntityChanged Create(EntityChanged entityChanged, bool removeWhenSettingProperties = true)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ private static JsonSerializerOptions ConfigureExceptionlessDefaults(JsonSerializ

options.Converters.Add(new ObjectToInferredTypesConverter());

// Required for public-field value types that are intentionally serialized through
// the configured serializer, including ValueTuple cache keys and field-only structs.
options.IncludeFields = true;

// Enforces C# nullable annotations (string vs string?) for typed app models so bad
// payload/model contracts fail close to the boundary instead of silently storing nulls.
// Elasticsearch opts out below because historical documents may not match annotations.
Expand Down
4 changes: 3 additions & 1 deletion src/Exceptionless.Core/Services/StackService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ await Task.WhenAll(

internal static string GetStackOccurrenceSetCacheKey()
{
return "usage:occurrences";
// The unversioned key contained ValueTuple entries whose JSON shape is incompatible
// with StackUsageKey. A versioned key keeps rolling upgrades from mixing schemas.
return "usage:occurrences:v2";
}

internal static string GetStackOccurrenceCountCacheKey(string stackId)
Expand Down
18 changes: 18 additions & 0 deletions src/Exceptionless.Web/ClientApp/.oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"printWidth": 160,
"singleQuote": true,
"trailingComma": "none",
"endOfLine": "lf",
"ignorePatterns": [
".svelte-kit/**",
"build/**",
"dist/**",
"package.json",
"playwright-report/**",
"test-results/**",
"src/lib/generated/**",
"src/lib/features/shared/components/ui/**",
"**/*.svelte"
]
}
22 changes: 22 additions & 0 deletions src/Exceptionless.Web/ClientApp/.oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["eslint", "typescript", "unicorn", "oxc", "import"],
"categories": {
"correctness": "warn"
},
"rules": {
"no-unused-vars": "off",
"unicorn/no-empty-file": "off",
"unicorn/no-useless-fallback-in-spread": "off",
"unicorn/prefer-string-starts-ends-with": "off"
},
"overrides": [
{
"files": ["**/*.svelte"],
"rules": {
"eslint/no-unassigned-vars": "off"
}
}
],
"ignorePatterns": [".svelte-kit/**", "build/**", "dist/**", "src/lib/generated/**", "src/lib/features/shared/components/ui/**"]
}
5 changes: 4 additions & 1 deletion src/Exceptionless.Web/ClientApp/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { includeIgnoreFile } from '@eslint/compat';
import js from '@eslint/js';
import pluginQuery from '@tanstack/eslint-plugin-query';
import prettier from 'eslint-config-prettier';
import oxlint from 'eslint-plugin-oxlint';
import perfectionist from 'eslint-plugin-perfectionist';
import storybook from 'eslint-plugin-storybook';
import svelte from 'eslint-plugin-svelte';
Expand Down Expand Up @@ -59,5 +60,7 @@ export default ts.config(
'perfectionist/sort-svelte-attributes': 'off'
}
},
storybook.configs['flat/recommended']
storybook.configs['flat/recommended'],
// Keep ESLint for framework/plugin coverage while Oxlint owns overlapping rules.
...oxlint.buildFromOxlintConfigFile('./.oxlintrc.json')
);
Loading
Loading