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

feat: read state #423

Merged
merged 13 commits into from
Mar 20, 2024
Merged

feat: read state #423

merged 13 commits into from
Mar 20, 2024

Conversation

chris13524
Copy link
Member

@chris13524 chris13524 commented Mar 18, 2024

Description

Implements support for marking notifications as read as per the specs.

Resolves #425

Subsequent PRs will address the remaining TODOs at the end of integration.rs

How Has This Been Tested?

New tests

Due Diligence

  • Breaking change
  • Requires a documentation update
  • Requires a e2e/integration test update

@chris13524 chris13524 self-assigned this Mar 18, 2024
@@ -313,7 +316,7 @@ pub struct SubscriptionGetNotificationsRequestAuth {
/// did:web of app domain
pub app: DidWeb,
#[serde(flatten)]
#[validate]
#[validate(nested)]
Copy link
Member Author

@chris13524 chris13524 Mar 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix for silent breaking change in 0.17.0. See Keats/validator#307

@@ -92,7 +92,7 @@ sqlx = { version = "0.7.3", features = ["runtime-tokio-native-tls", "postgres",
wiremock = "0.5.19"
itertools = "0.11.0"
sha3 = "0.10.8"
validator = { version = "0.16.1", features = ["derive"] }
validator = { version = "0.17.0", features = ["derive"] }
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Upgrade to support custom validators accepting Option<T> instead of T, allowing the ability to validate the state of the Option and not just T.

Some may consider this change a bug

@chris13524 chris13524 changed the base branch from main to fix/errors-excluded-from-metrics March 19, 2024 04:08
Base automatically changed from fix/errors-excluded-from-metrics to main March 19, 2024 14:29
@chris13524 chris13524 marked this pull request as ready for review March 20, 2024 16:03
Copy link
Contributor

@geekbrother geekbrother left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm with one concern about the index for the new field.

@chris13524 chris13524 merged commit 35afe9a into main Mar 20, 2024
13 checks passed
@chris13524 chris13524 deleted the feat/read-status branch March 20, 2024 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: read/unread support
3 participants