-
-
Notifications
You must be signed in to change notification settings - Fork 806
Adds Inbox support to Mocha #9332
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
fa0cc01
Adds Inbox support to Mocha
PascalSenn 6c3792d
cleanup
PascalSenn dfeb6ff
Refactor inbox middleware to simplify OpenTelemetry activity handling
PascalSenn f81f37f
clenaup
PascalSenn 5acc68a
Add Mocha.Inbox project and implement ConsumeInboxMiddleware for mess…
PascalSenn 3ef4b29
remove usused fielsg
PascalSenn ba0a7ac
cleanup
PascalSenn 738d837
resolve comments
PascalSenn 8a94d9e
Merge branch 'main' into pse/adds-inbox
PascalSenn bcfc926
Merge branch 'main' into pse/adds-inbox
PascalSenn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
284 changes: 284 additions & 0 deletions
284
src/Mocha/src/Demo/Demo.Billing/Migrations/20260307183420_AddInboxMessage.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
58 changes: 58 additions & 0 deletions
58
src/Mocha/src/Demo/Demo.Billing/Migrations/20260307183420_AddInboxMessage.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| using System; | ||
| using Microsoft.EntityFrameworkCore.Migrations; | ||
|
|
||
| #nullable disable | ||
|
|
||
| namespace Demo.Billing.Migrations | ||
| { | ||
| /// <inheritdoc /> | ||
| public partial class AddInboxMessage : Migration | ||
| { | ||
| /// <inheritdoc /> | ||
| protected override void Up(MigrationBuilder migrationBuilder) | ||
| { | ||
| migrationBuilder.CreateTable( | ||
| name: "inbox_messages", | ||
| columns: table => new | ||
| { | ||
| message_id = table.Column<string>(type: "character varying(512)", maxLength: 512, nullable: false), | ||
| message_type = table.Column<string>(type: "character varying(512)", maxLength: 512, nullable: true), | ||
| processed_at = table.Column<DateTime>(type: "timestamp with time zone", nullable: false, defaultValueSql: "NOW()") | ||
| }, | ||
| constraints: table => | ||
| table.PrimaryKey("ix_inbox_messages_primary_key", x => x.message_id)); | ||
|
|
||
| migrationBuilder.CreateTable( | ||
| name: "RevenueSummaries", | ||
| columns: table => new | ||
| { | ||
| Id = table.Column<Guid>(type: "uuid", nullable: false), | ||
| OrderCount = table.Column<int>(type: "integer", nullable: false), | ||
| TotalRevenue = table.Column<decimal>(type: "numeric(18,2)", nullable: false, precision: 18, scale: 2), | ||
| AverageOrderAmount = table.Column<decimal>(type: "numeric(18,2)", nullable: false, precision: 18, scale: 2), | ||
| TotalItemsSold = table.Column<int>(type: "integer", nullable: false), | ||
| PeriodStart = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: false), | ||
| PeriodEnd = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: false), | ||
| CompletionMode = table.Column<string>(type: "character varying(50)", maxLength: 50, nullable: false), | ||
| CreatedAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: false) | ||
| }, | ||
| constraints: table => | ||
| table.PrimaryKey("PK_RevenueSummaries", x => x.Id)); | ||
|
|
||
| migrationBuilder.CreateIndex( | ||
| name: "ix_inbox_messages_processed_at", | ||
| table: "inbox_messages", | ||
| column: "processed_at"); | ||
| } | ||
|
|
||
| /// <inheritdoc /> | ||
| protected override void Down(MigrationBuilder migrationBuilder) | ||
| { | ||
| migrationBuilder.DropTable( | ||
| name: "inbox_messages"); | ||
|
|
||
| migrationBuilder.DropTable( | ||
| name: "RevenueSummaries"); | ||
| } | ||
| } | ||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.