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

Feature/svelte #1417

Merged
merged 167 commits into from
Oct 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
167 commits
Select commit Hold shift + click to select a range
d2de4dc
Created new sveltekit project
niemyjski Aug 16, 2023
10e65cf
Added VS Code launch support for svelte.
niemyjski Aug 16, 2023
62fa775
Added tailwind and dasiyui
niemyjski Aug 17, 2023
afe45d4
Added helpful resources
niemyjski Aug 18, 2023
e00e814
Added models generated from swagger.
niemyjski Aug 18, 2023
5249c25
WIP Added login page
niemyjski Aug 18, 2023
2443aa9
Updated login
niemyjski Aug 18, 2023
20aa583
Fixed launch config and updated login styles
niemyjski Aug 18, 2023
973b64d
WIP - login page validation work.
niemyjski Aug 19, 2023
ac56473
Added api client.
niemyjski Aug 19, 2023
ad8afeb
Added problem details
niemyjski Aug 19, 2023
9640f50
Fixed tests
niemyjski Aug 19, 2023
e0d8e9c
Fixed tests
niemyjski Aug 19, 2023
5dd74ef
WIP Problem details.
niemyjski Aug 19, 2023
72830cf
Login page refactor
ejsmith Aug 19, 2023
d0d7419
Some cleanup and get events list page
ejsmith Aug 19, 2023
37ed906
Minor
ejsmith Aug 19, 2023
78e8b0d
Store token in localstorage, redirect back to page after login
ejsmith Aug 19, 2023
450f862
Logout page
ejsmith Aug 19, 2023
6825869
Added api launch config
niemyjski Aug 19, 2023
e9a18a8
Fixed formatting.
niemyjski Aug 20, 2023
324cbb0
Change default proxy port to match API. Some work on OAuth login.
ejsmith Aug 20, 2023
82c85ce
Login page fixes
niemyjski Aug 20, 2023
9673c17
Fixed login page
niemyjski Aug 20, 2023
f073332
Swagger fixes
niemyjski Aug 20, 2023
6d18298
Google login working
ejsmith Aug 20, 2023
036db60
Adding other oauth providers
ejsmith Aug 20, 2023
1833be3
State is google specific
ejsmith Aug 20, 2023
1d458f9
Added shared layout for auth pages.
niemyjski Aug 20, 2023
e2e054c
Few minor oauth updates
ejsmith Aug 20, 2023
923b64c
Fixed merge build errors
niemyjski Aug 27, 2023
9f23670
Fixed build errors
niemyjski Aug 27, 2023
c1076d2
Update deps
niemyjski Aug 27, 2023
99d8b4a
Applied linting
niemyjski Aug 27, 2023
0a92d1f
Regenerated models after Nullable reference types
niemyjski Aug 27, 2023
7f4bc3e
Added default templates
niemyjski Aug 27, 2023
1ee557d
Updates to client side model generation
niemyjski Aug 27, 2023
7ac5ac8
Added ability to pull in fluent validation rules into swagger.
niemyjski Aug 27, 2023
c9d3626
Updated generation
niemyjski Aug 27, 2023
4c5fdc3
more generation improvements
niemyjski Aug 27, 2023
c337dea
Improved code gen
niemyjski Aug 28, 2023
c6287b9
More code gen fixes
niemyjski Aug 28, 2023
13ce8a6
Updated signup model validation
niemyjski Aug 28, 2023
d5db7f9
code gen improvements
niemyjski Aug 28, 2023
44b05ba
Removed constructor
niemyjski Aug 28, 2023
83e214b
Some cleanup of problem details / validation
niemyjski Aug 28, 2023
7ca9883
Updated swagger config
niemyjski Aug 29, 2023
ed8f052
WIP: MiniValidation with automatic problem details
niemyjski Aug 29, 2023
6fcaa39
Login and logout flow + dashboard with auth detection.
niemyjski Aug 30, 2023
0a8dbc7
Reverted some model state changes
niemyjski Sep 1, 2023
77634c0
Reworked how api client redirects
niemyjski Sep 1, 2023
d6a054e
Added websockets and layout auth redirection
niemyjski Sep 1, 2023
07b1fd0
Added samples for both paging and infinity paging
niemyjski Sep 2, 2023
76e277d
Updated to tanstack query (other one was deprecated)
niemyjski Sep 2, 2023
1f40cb8
More example resources
niemyjski Sep 2, 2023
ff9f04a
Updated deps
niemyjski Sep 2, 2023
d527d01
Added paging helpers to json response
niemyjski Sep 2, 2023
0ba576f
Updated server response types and base summary model
niemyjski Sep 3, 2023
23eec9d
Added Events Table component which supports column selection, default…
niemyjski Sep 3, 2023
a488b17
Pushed summary updates
niemyjski Sep 3, 2023
abf5a7e
FetchClient changes to add middleware and make it more generic
ejsmith Sep 3, 2023
0f99e30
Add global default options to FetchClient, setup global model validat…
ejsmith Sep 3, 2023
75807be
Some small fixes.
niemyjski Sep 4, 2023
9ad63f5
some fetch updates
niemyjski Sep 4, 2023
875b397
Fixed build warnings
niemyjski Sep 6, 2023
1b36cb0
Early WIP - Taillog component
niemyjski Sep 6, 2023
062f1a6
Greatly improved summaries
niemyjski Sep 6, 2023
53bd51b
some query client work
niemyjski Sep 6, 2023
5e11bcc
WIP event tail log
niemyjski Sep 8, 2023
4bef9d3
Always return search tokens
ejsmith Sep 8, 2023
0068462
Updated deps
niemyjski Sep 9, 2023
f4d684d
Added default public env file
niemyjski Sep 9, 2023
f310b70
Conditionally turn off account creation
niemyjski Sep 9, 2023
5064ab5
Moved oauth to use env
niemyjski Sep 9, 2023
512e07a
Added exceptionless client
niemyjski Sep 9, 2023
2551225
Fixed client warnings and errors by adding trace logging.
niemyjski Sep 9, 2023
093d0f5
changed file type of hook
niemyjski Sep 9, 2023
cd9160a
Fixed app login
niemyjski Sep 9, 2023
ab61068
Fixed summary formatters
niemyjski Sep 9, 2023
2075720
More efficient events tail log.
niemyjski Sep 9, 2023
079a023
Added temporary drawer
niemyjski Sep 9, 2023
343d72d
Added live mode, start of pager.
niemyjski Sep 9, 2023
4527049
Moving app base to /next, more FetchClient updates, fix unmount code …
ejsmith Sep 9, 2023
071915e
Some styling
ejsmith Sep 9, 2023
b737f5d
More style
ejsmith Sep 9, 2023
f976156
Conditionally render summaries
niemyjski Sep 10, 2023
655fc4e
Added new websocket message component to streamline how we listen to …
niemyjski Sep 10, 2023
44908ec
Working on getting both client apps to run together
ejsmith Sep 11, 2023
ab709cb
Remove lint from build
ejsmith Sep 11, 2023
56d6832
Handle fallback for /next client app
ejsmith Sep 11, 2023
94965b2
Fixed logo
niemyjski Sep 12, 2023
d8863bd
Change URL to /next for SPA startup
ejsmith Sep 12, 2023
aa7daf7
Change launchUrl to match SPA url
ejsmith Sep 12, 2023
af05ce2
Some paging updates
niemyjski Sep 12, 2023
a1c87bd
Added paging summary
niemyjski Sep 12, 2023
803a8d2
Fixed paging
niemyjski Sep 12, 2023
844c988
Fixed paging
niemyjski Sep 12, 2023
0f20984
Fixed the pager on mobile.
niemyjski Sep 12, 2023
d2a8f70
Created generic table component (WIP)
niemyjski Sep 12, 2023
d68e214
forward events
niemyjski Sep 12, 2023
bd1afd5
Ensure json doesn't get new line inserted
niemyjski Sep 13, 2023
bf30be2
Fixed summary tests
niemyjski Sep 13, 2023
1b6131c
Fixed validation tests
niemyjski Sep 13, 2023
795d01f
Fixed all tests
niemyjski Sep 14, 2023
e294ae6
Merge branch 'main' into feature/svelte
niemyjski Sep 14, 2023
1089e54
Fixed bad auto git merge
niemyjski Sep 14, 2023
bed0f6e
Fixed redirect
niemyjski Sep 14, 2023
a11fc09
Added pagination helper.
niemyjski Sep 14, 2023
0b92556
WIP: Added column sorting
niemyjski Sep 16, 2023
4894eb8
Added column picker
niemyjski Sep 17, 2023
1b6340a
Added ability to navigate to the first page
niemyjski Sep 17, 2023
97ea5dd
Fixed binding issue
niemyjski Sep 19, 2023
ea85c60
Fixed callback
niemyjski Sep 19, 2023
79f1d28
Fixed drawer
niemyjski Sep 19, 2023
1809e98
Use store for drawer and for live view
niemyjski Sep 19, 2023
2f06d16
WIP search and filtering
niemyjski Sep 21, 2023
2da4cd8
Added empty table message.
niemyjski Sep 21, 2023
19e44ff
Workaround for $$Generic
niemyjski Sep 21, 2023
ec03dd2
Fixed linting errors, updated deps
niemyjski Sep 21, 2023
b2a1b94
Use global fetch / loading
niemyjski Sep 21, 2023
f77353a
Updated deps
niemyjski Sep 26, 2023
72d46ee
Work arounds for slot forwarding, couldn't reuse let:variable syntax …
niemyjski Sep 26, 2023
4278bce
use persisted storage for events column options
niemyjski Sep 26, 2023
e113ffc
WIP events drawer
niemyjski Sep 26, 2023
5cfc15d
Updated deps
niemyjski Sep 27, 2023
dfe94c4
Rearranged models a bit and pulled in some models from the exceptionl…
niemyjski Sep 27, 2023
63a299f
Added components for time formatting
niemyjski Sep 27, 2023
b5a544c
WIP: Events drawer and overview.
niemyjski Sep 27, 2023
0e6de29
Fix issue with code formatter changing line endings and causing git i…
ejsmith Sep 28, 2023
4d69349
Parallelize build
ejsmith Sep 28, 2023
c2ae9c3
Events Sidebar
niemyjski Sep 28, 2023
e0ebbac
Ran formatting
niemyjski Sep 28, 2023
b3d5bae
Try building just exceptionless all in one image during docker build …
ejsmith Sep 28, 2023
f046d36
Don't run client tests yet
ejsmith Sep 28, 2023
8e93639
Try only building app docker image
ejsmith Sep 28, 2023
3ceac35
Set artifact retention
ejsmith Sep 28, 2023
726eaf2
Tweak how we start docker services
ejsmith Sep 28, 2023
aea2078
Don't wait for docker compose
ejsmith Sep 28, 2023
1a8a683
Debug
ejsmith Sep 28, 2023
743a24e
Try different approach
ejsmith Sep 28, 2023
44914ac
Checkout on deploy
ejsmith Sep 28, 2023
a585997
Try different docker build
ejsmith Sep 28, 2023
1dc0062
Another parallel approach
ejsmith Sep 28, 2023
041d709
Break out deploy
ejsmith Sep 28, 2023
724e258
More build tweaks
ejsmith Sep 28, 2023
317019a
Add code coverage
ejsmith Sep 28, 2023
e733b2c
Use run-all to run multiple tasks
ejsmith Sep 28, 2023
08c31de
Revert some CSP policy changes
ejsmith Sep 28, 2023
2f7ab8c
Comment out unused code to pass lint rules
ejsmith Sep 28, 2023
27ea4f1
Allow http gravatar
ejsmith Sep 28, 2023
31d6f07
Add missing logo back
ejsmith Sep 28, 2023
928cfe7
increased sidebar width
niemyjski Sep 30, 2023
08061f0
WIP - Error and Simple error stack traces
niemyjski Oct 4, 2023
58f268d
Fixed http file
niemyjski Oct 4, 2023
cee7488
Updated deps
niemyjski Oct 4, 2023
ceb09fa
Reworked how stack traces are rendered
niemyjski Oct 4, 2023
048d09e
removed extra whitespace.
niemyjski Oct 4, 2023
0ccadb2
Whitespace formatting
niemyjski Oct 5, 2023
7ae10af
More styling fixes
niemyjski Oct 5, 2023
3bd8b2c
make stack trace look nicer
niemyjski Oct 5, 2023
60d6b73
Updated deps
niemyjski Oct 14, 2023
6822209
WIP: Clickable filters with ability to enter custom keyword filters.
niemyjski Oct 14, 2023
1c8ecce
rearranged loading rendering order in component due to global loader.
niemyjski Oct 14, 2023
41ed1eb
Renamed functions
niemyjski Oct 14, 2023
3b2596a
Added more search + log level component
niemyjski Oct 15, 2023
9a00ea4
Fixed warning
niemyjski Oct 15, 2023
99306aa
Merge branch 'main' into feature/svelte
niemyjski Oct 15, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.json]
insert_final_newline = false

# Generated code
[*{_AssemblyInfo.cs,.notsupported.cs,AsmOffsets.cs}]
generated_code = true
Expand Down
219 changes: 193 additions & 26 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,98 +8,265 @@ env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}

jobs:
build:

version:

runs-on: ubuntu-latest
timeout-minutes: 30
outputs:
version: ${{ steps.version.outputs.version }}

steps:

- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Build Reason
env:
GITHUB_EVENT: ${{ toJson(github) }}
run: "echo ref: ${{github.ref}} event: ${{github.event_name}}"

- name: Version
id: version
run: |
dotnet tool install --global minver-cli --version 4.3.0
version=$(minver --tag-prefix v)
echo "version=$version" >> $GITHUB_OUTPUT
echo "### $version" >> $GITHUB_STEP_SUMMARY
test-api:

runs-on: ubuntu-latest
timeout-minutes: 30

steps:

- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.*
dotnet-quality: ga
- name: Build Version
run: |
dotnet tool install --global minver-cli --version 4.3.0
version=$(minver --tag-prefix v)
echo "MINVERVERSIONOVERRIDE=$version" >> $GITHUB_ENV
echo "VERSION=$version" >> $GITHUB_ENV
echo "### Version: $version" >> $GITHUB_STEP_SUMMARY
- name: Lint .NET
run: dotnet format --verify-no-changes --no-restore --verbosity diagnostic
- name: Build
run: dotnet build --configuration Release /clp:NoSummary

- name: Start Services
working-directory: docker
run: docker compose up -d elasticsearch &

- uses: actions/cache@v3
with:
path: ~/.nuget/packages
key: nuget-${{ runner.os }}-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
nuget-${{ runner.os }}-
- name: Nuget Restore
run: dotnet restore

- name: Build
run: dotnet build --no-restore --configuration Release

- name: Wait for Elasticsearch
working-directory: docker
run: docker compose up --wait elasticsearch
- name: Run Tests
run: dotnet test --configuration Release --no-build --logger GitHubActions

- name: Run .NET Tests
run: dotnet test --no-restore --no-build --configuration Release --collect:"XPlat Code Coverage" -m:1 --logger trx --results-directory coverage --logger GitHubActions

- name: Copy Coverage to Predictable Location
run: cp coverage/*/coverage.cobertura.xml coverage/coverage.cobertura.xml

- name: Code Coverage Summary Report
uses: irongut/CodeCoverageSummary@v1.3.0
with:
filename: coverage/coverage.cobertura.xml
badge: true
format: "markdown"
output: "both"

- name: Add Coverage PR Comment
uses: marocchino/sticky-pull-request-comment@v2
if: github.event_name == 'pull_request'
with:
recreate: true
path: code-coverage-results.md

- name: Write Coverage to Job Summary
run: cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY

test-client:

runs-on: ubuntu-latest
timeout-minutes: 30
defaults:
run:
working-directory: ./src/Exceptionless.Web/ClientApp

steps:

- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.*
dotnet-quality: ga

- name: Cache node_modules
uses: actions/cache@v3
with:
path: |
node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}

- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install Npm Packages
working-directory: src/Exceptionless.Web/ClientApp
run: npm ci

- name: Lint Client
working-directory: src/Exceptionless.Web/ClientApp
run: |
npm run lint
npm run prettier:check
run: npm run lint

- name: Run Unit Tests
run: echo "npm run test:unit"

- name: Run Integration Tests
run: echo "npm run test:integration"

build-docker:

runs-on: ubuntu-latest
needs: [version]
timeout-minutes: 30
env:
VERSION: ${{needs.version.outputs.version}}

steps:

- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Docker Buildx
if: "${{ env.DOCKER_USERNAME != '' }}"
uses: docker/setup-buildx-action@v2
with:
platforms: linux/amd64

- name: Build api docker image
run: |
echo "::remove-matcher owner=csc::"
docker buildx build . --target api --platform linux/amd64 --tag exceptionless/api-ci:latest --cache-from type=gha --cache-to type=gha,mode=max --load
- name: Build job docker image
run: |
echo "::remove-matcher owner=csc::"
docker buildx build . --target job --platform linux/amd64 --tag exceptionless/job-ci:latest --cache-from type=gha --cache-to type=gha,mode=max --load
- name: Build app docker image
run: |
echo "::remove-matcher owner=csc::"
docker buildx build . --target app --platform linux/amd64 --tag exceptionless/app-ci:latest --cache-from type=gha --cache-to type=gha,mode=max --load
- name: Build all-in-one docker image
run: |
echo "::remove-matcher owner=csc::"
docker buildx build . --target exceptionless --platform linux/amd64 --tag exceptionless/exceptionless-ci:latest --cache-from type=gha --cache-to type=gha,mode=max --load
- name: Build all-in-one Elasticsearch 7 docker image
if: "${{ env.DOCKER_USERNAME != '' && startsWith(github.ref, 'refs/tags/v') && github.event_name != 'pull_request' }}"
run: |
echo "::remove-matcher owner=csc::"
docker buildx build . --target exceptionless7 --platform linux/amd64 --tag exceptionless/exceptionless:latest-elasticsearch7 --cache-from type=gha --cache-to type=gha,mode=max --load
- name: Login to GitHub Container Registry
if: "${{ env.DOCKER_USERNAME != '' }}"
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Login to DockerHub
if: "${{ env.DOCKER_USERNAME != '' }}"
uses: docker/login-action@v2
with:
username: ${{ env.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Wait for test jobs
uses: yogeshlonkar/wait-for-jobs@v0
with:
jobs: 'test-api,test-client'
interval: '2500'
ttl: '10'

- name: Publish CI Packages
if: "${{ env.DOCKER_USERNAME != '' }}"
run: |
echo "::remove-matcher owner=csc::"
# tag and push docker image
# tag and push docker images
for image in {"api","job","app","exceptionless"}; do
docker buildx build --target $image --platform linux/amd64 --output "type=image,push=true" . --tag exceptionless/$image-ci:$VERSION --tag exceptionless/$image-ci:latest --tag ghcr.io/exceptionless/exceptionless/$image:$VERSION --tag ghcr.io/exceptionless/exceptionless/$image:latest
docker image tag exceptionless/$image-ci:latest exceptionless/$image-ci:$VERSION
docker image tag exceptionless/$image-ci:latest ghcr.io/exceptionless/exceptionless/$image-ci:$VERSION
docker image tag exceptionless/$image-ci:latest ghcr.io/exceptionless/exceptionless/$image-ci:latest
docker image push --all-tags exceptionless/$image-ci
done
#docker buildx build --target exceptionless7 --platform linux/amd64 --output "type=image,push=true" . --tag exceptionless/exceptionless-ci:$VERSION-elasticsearch7 --tag exceptionless/exceptionless-ci:latest-elasticsearch7 --tag ghcr.io/exceptionless/exceptionless/exceptionless:$VERSION-elasticsearch7 --tag ghcr.io/exceptionless/exceptionless/exceptionless:latest-elasticsearch7
- name: Publish Release Packages
if: "${{ env.DOCKER_USERNAME != '' && startsWith(github.ref, 'refs/tags/v') && github.event_name != 'pull_request' }}"
run: |
# tag and push docker image
echo "::remove-matcher owner=csc::"
# tag and push docker images
# only build elasticsearch 7 all-in-one image for release builds
docker image tag exceptionless/exceptionless:latest-elasticsearch7 exceptionless/exceptionless:$VERSION-elasticsearch7
for image in {"api","job","app","exceptionless"}; do
docker buildx build --target $image --platform linux/amd64 --output "type=image,push=true" . --tag exceptionless/$image:$VERSION --tag exceptionless/$image:latest
docker image tag exceptionless/$image-ci:latest exceptionless/$image:$VERSION
docker image tag exceptionless/$image-ci:latest exceptionless/$image:latest
docker image push --all-tags exceptionless/$image
done
docker buildx build --target exceptionless7 --platform linux/amd64 --output "type=image,push=true" . --tag exceptionless/exceptionless:$VERSION-elasticsearch7 --tag exceptionless/exceptionless:latest-elasticsearch7
deploy:
if: "${{ (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) && github.event_name != 'pull_request' }}"
needs: [version,build-docker]
runs-on: ubuntu-latest
timeout-minutes: 30
env:
VERSION: ${{needs.version.outputs.version}}

steps:

- name: Install Helm
if: "${{ env.DOCKER_USERNAME != '' && github.event_name != 'pull_request' }}"
uses: azure/setup-helm@v3
with:
version: v3.11.1
version: v3.13.0

- name: Deploy Changes to Development Environment
if: "${{ env.DOCKER_USERNAME != '' && github.ref == 'refs/heads/main' && github.event_name != 'pull_request' }}"
run: |
az login --service-principal --username ${{ secrets.AZ_USERNAME }} --password ${{ secrets.AZ_PASSWORD }} --tenant ${{ secrets.AZ_TENANT }} --output none
az aks get-credentials --resource-group exceptionless-v6 --name ex-k8s-v6
sed -i "s/^appVersion:.*$/appVersion: '${VERSION}'/" ./k8s/exceptionless/Chart.yaml
helm upgrade --set "version=${VERSION}" --reuse-values --values ./k8s/ex-dev-values.yaml ex-dev --namespace ex-dev ./k8s/exceptionless
- name: Deploy Changes to Production Environment
if: "${{ env.DOCKER_USERNAME != '' && startsWith(github.ref, 'refs/tags/v') && github.event_name != 'pull_request' }}"
run: |
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ k8s/ex-prod\.yaml
*secrets*
k8s/ex-*-snapshots.yaml
node_modules
src/Exceptionless\.Web/ClientApp/dist/
src/Exceptionless\.Web/ClientApp/build/
src/Exceptionless\.Web/ClientApp.angular/dist/

*.DotSettings
4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

11 changes: 0 additions & 11 deletions .husky/task-runner.json

This file was deleted.

7 changes: 6 additions & 1 deletion exceptionless.http
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@ Hello World!

### get events

GET {{apiUrl}}/events
GET {{apiUrl}}/events?sort=date
Authorization: Bearer {{token}}

### get events with after token

GET {{apiUrl}}/events?sort=date&after=WzE2OTQxNDczMjc1NTgsIjY0ZmFhMmZmZTBhZTljMmY1YzhmZjMxYyJd
Authorization: Bearer {{token}}

###
Expand Down
1 change: 1 addition & 0 deletions k8s/ex-setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ $SP_ID=$(az aks show --resource-group $RESOURCE_GROUP --name $CLUSTER --query se
$SP_SECRET=$(az ad sp credential reset --name $SP_ID --years 3 --query password -o tsv)
# store secret in 1Password (Exceptionless Azure CI Service Principal)
az aks update-credentials --resource-group $RESOURCE_GROUP --name $CLUSTER --reset-service-principal --service-principal $SP_ID --client-secret $SP_SECRET
az aks get-credentials --resource-group $RESOURCE_GROUP --name $CLUSTER --overwrite-existing

# delete the entire thing
az aks delete --resource-group $RESOURCE_GROUP --name $CLUSTER
Expand Down
2 changes: 1 addition & 1 deletion src/Exceptionless.Core/Jobs/CloseInactiveSessionsJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ protected override async Task<JobResult> RunInternalAsync(JobContext context)
continue;

sessionsToUpdate.Add(sessionStart);
if (heartbeatResult is not null)
if (heartbeatResult?.CacheKey is not null)
{
cacheKeysToRemove.Add(heartbeatResult.CacheKey);
if (heartbeatResult.Close)
Expand Down
1 change: 0 additions & 1 deletion src/Exceptionless.Core/Models/EventSummaryModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@

public record EventSummaryModel : SummaryData
{
public required string Id { get; set; }
public DateTimeOffset Date { get; set; }
}
1 change: 0 additions & 1 deletion src/Exceptionless.Core/Models/StackSummaryModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ namespace Exceptionless.Core.Models;
[DebuggerDisplay("Id: {Id}, Status: {Status}, Title: {Title}, First: {FirstOccurrence}, Last: {LastOccurrence}")]
public record StackSummaryModel : SummaryData
{
public required string Id { get; init; }
public required string Title { get; init; }
public StackStatus Status { get; init; }
public DateTime FirstOccurrence { get; init; }
Expand Down
1 change: 1 addition & 0 deletions src/Exceptionless.Core/Models/SummaryData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

public record SummaryData
{
public required string Id { get; set; }
public required string TemplateKey { get; set; }
public required object Data { get; set; }
}
Loading