Skip to content

Commit

Permalink
Admin UI: Show Messages of Identity in the Identity details page (#490)
Browse files Browse the repository at this point in the history
* feat: add message service to the AdminUi

* feat: add identity details message component to the AdminUi

* feat: add pagination to messages overview

* feat: add custom AdminUi rerouting strategy to refresh components

* refactor: use recipients array in the AdminUi messages component

* feat: add MessageOverview DbSet to AdminUi

* feat: add MessagesController to the AdminUi

* chore: create postgres migrations for MessagesOverview

* refactor: rename RouteReuseStrategy class name

* feat: add Message Recipients Dialog to the AdminUi

* feat: use Message Recipients dialog in the Identity details component

* refactor: simplify Identity details Message Overview component

* chore: create sqlserver migrations for Messages Overview in the AdminUi

* chore: compile sqlserver models in the AdminUi

* refactor: use table to display identity details Message Recipients dialog

* refactor: improve Messages table in the AdminUi

* fix: removed pre merge compiled models in the AdminUi

* fix: add missing group by in the postgres MessagesOverview migration

* fix: simplified Message service in the AdminUi

* fix: MessageRecipients should use a composite key

* chore: remade adminUi postgres migrations

* chore: remade adminUi sqlserver migrations

* test: add integration tests for MessageOverview in the AdminUi

* chore: run dotnet format

* Helm Chart: Update Consumer API, Admin UI and Admin CLI (#501)

* feat: update adminui

* feat: update consumerapi

* Helm Chart: Update Consumer API, Admin UI and Admin CLI (#501)

* feat: update adminui

* feat: update consumerapi

* ci: trigger pipeline

* chore: now displaying 3 recipients if there is more than 3

* chore: making the dialog a fixed width

* chore: prettier

* chore: change button text

* ci: trigger pipelines

* feat: add message method that returns a decrypted body provided correct key is passed in (wip)

* feat: add message method that returns a decrypted body provided correct key is passed in (wip)

* feat: add message method that returns a decrypted body provided correct key is passed in (wip)

* feat: add libsodium decrypter (wip)

* refactor: implement interface

* fix: remove unnecessary tests

* chore: add overflow

* chore: template for message preview and download (wip)

* chore: prettier

* chore: display error message (wip)

* test: add HandlerTest for decrypting messages with symmetric key

* refactor: add ExtractSymmetricKey method

* refactor: move deserializedSecret to correct location

* feat: implement handler to decrpyt message with symmetric key

* chore: remove comment

* chore: fix property naming convention

* chore: prettier

* fix: failing tests (todo: fix symmetric key passing)

* fix: compiler errors & formatting

* Revert "feat: add message method that returns a decrypted body provided correct key is passed in (wip)"

This reverts commit 19357bd.

* Revert "feat: add message method that returns a decrypted body provided correct key is passed in (wip)"

This reverts commit b0c91ea.

* Revert "feat: add libsodium decrypter (wip)"

This reverts commit d5a41a8.

* Revert "refactor: implement interface"

This reverts commit a0e84cb.

* Revert "chore: add overflow"

This reverts commit beb43ec.

* Revert "chore: template for message preview and download (wip)"

This reverts commit fedb894.

* Revert "test: add HandlerTest for decrypting messages with symmetric key"

This reverts commit 8849591.

* Revert "refactor: add ExtractSymmetricKey method"

This reverts commit 90d0fef.

* Revert "feat: implement handler to decrpyt message with symmetric key"

This reverts commit c542e2d.

* chore: remove unused directives

* ci: trigger pipelines

* fix: add missing dependencies

* chore: moved to project AdminApi

* chore: remove duplicate health check project

* ci: trigger pipelines

* fix: fixed after merge with 'main'

* fix: nullable compiler warnings

* fix: dependency vulnerability

* chore: remove exclude flag for package without vulnerability

* test: disable json schema validation

* chore: remove nullable property group

* fix: use recipient information table instead of message recipients view

* fix: specify schema name

* fix: add missing schema name to view

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Vladimir Vuckovic <[email protected]>
Co-authored-by: Timo Notheisen <[email protected]>
Co-authored-by: Timo Notheisen <[email protected]>
Co-authored-by: Nikola Vetnić <[email protected]>
Co-authored-by: Hunor Tot-Bagi <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Daniel Almeida <[email protected]>
  • Loading branch information
9 people authored May 6, 2024
1 parent 4fc33a1 commit 9ab2466
Show file tree
Hide file tree
Showing 38 changed files with 1,942 additions and 429 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Backbone.AdminApi.Infrastructure.Database.Postgres.Migrations
{
/// <inheritdoc />
public partial class MessagesOverview : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.Sql("""
CREATE VIEW "AdminUi"."MessageOverviews" AS
SELECT
"Messages"."Id" AS "MessageId",
"Messages"."CreatedBy" AS "SenderAddress",
"Messages"."CreatedByDevice" AS "SenderDevice",
"Messages"."CreatedAt" AS "SendDate",
COUNT ("Attachments"."Id") AS "NumberOfAttachments"
FROM
"Messages"."Messages" AS "Messages"
LEFT JOIN
"Messages"."Attachments" AS "Attachments"
ON
"Messages"."Id" = "Attachments"."MessageId"
GROUP BY
"Messages"."Id", "Messages"."CreatedBy", "Messages"."CreatedByDevice", "Messages"."CreatedAt"
""");
}

/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.Sql(""" DROP VIEW "AdminUi"."MessageOverviews" """);
}
}
}
Loading

0 comments on commit 9ab2466

Please sign in to comment.