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

Jackson's Changes for Notifications #1

Conversation

jaxoncreed
Copy link

Description

Jackson's Changes to Individdata's notifications

  • Some configuration modifications
  • Unsubscribe route
  • Test updates

@ixuz
Copy link
Member

ixuz commented Dec 9, 2021

Awesome! Thank you @jaxoncreed!
I'll have a look at this tomorrow with our Individdata team.

Copy link

@TamSzaGot TamSzaGot left a comment

Choose a reason for hiding this comment

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

It nice that you have merged your version of building well known handling with WellKnownBuilder.

Missing unit tests for WebHookSubscription2021UnsubscribeHttpHandler.

Your comment in src/http/WebHookSubscription2021UnsubscribeHttpHandler.ts line 58 about using the wrong data structure for the notificationData.subscriptions may be valid, but our initial take to use a HashMap were not serializable and could not be put into the storage. Please make a better suggestion.

Copy link

@TamSzaGot TamSzaGot left a comment

Choose a reason for hiding this comment

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

Perhaps it would be good to have a link to the notification proposal

https://github.com/solid/notifications-panel/blob/main/proposals/solid-webhook-notifications.md

Into a comment in the classes implementing WebHookSubscription2021.

callback?: ((res: IncomingMessage) => void) | undefined,
): void {
const parsedUrl = url instanceof URL ? url : new URL(url);
this.jwksKeyGenerator
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps this whole promise-chain could be better implemented using async/await.

@TamSzaGot TamSzaGot merged commit 175bf5c into individdata:feat/notification-gw-handler-and-webhook Dec 16, 2021
@ixuz
Copy link
Member

ixuz commented Jan 3, 2022

Hi @jaxoncreed I think this PR might have been merged/closed prematurely. Did you have unfinished work for this PR?
In that case, shall I revert the merge?

@jaxoncreed
Copy link
Author

No, @ixuz. I don't have unfinished work here. Though, it should be noted that the changes in this branch don't have full test coverage.

@ixuz
Copy link
Member

ixuz commented Jan 3, 2022

Understood!
I previously tried to merge/pull changes from upstream it resulted in an issue with importing the jose dependencies.
It looks like there's some code in this branch that was written for an older version of jose than 4.0.0.
The breaking changes in jose are mentioned here: https://github.com/panva/jose/blob/main/CHANGELOG.md#400-2021-10-14

Are there any particular reason to keep using jose 3.x.x version? If not, we can adopt the latest version.

@jaxoncreed
Copy link
Author

I don't think so. I don't think I actively made the decision to use 3.x.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants