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

Support the notify/v2 interface for all services #2

Merged
merged 17 commits into from
Nov 7, 2024
Merged

Conversation

amrc-benmorrow
Copy link
Contributor

Move the implementation of the notify/v2 interface into this module, so that all F+ services can implement it.

Support SEARCH notify requests.

The service notify API requires Rx to implement sensibly, so just make
it a fixed dependency. Any service which isn't providing notify/v2
probably should be.
Now I have a means of generating correct package-lock files, we should
be committing them to the repo.
This should prevent incorrect package-lock files from being produced.
There is no good idiom in Javascript for 'copy this object without this
key'.
Refactor using Optional and a function from Session to Observable to
avoid needing to pass the Session around.
I don't like this API design; smashing more and more into a set of
function arguments isn't a good idea.
This makes sure we use a configured local npm registry where
appropriate.
Copy link

@djnewbould djnewbould left a comment

Choose a reason for hiding this comment

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

Looks good, I've left a few comments. It might be worth adding a few code comments in places especially for some of the RXJS stuff, it can be a little difficult to understand if you're not too familiar with it.

lib/notify-v2.js Show resolved Hide resolved
lib/notify-v2.js Outdated Show resolved Hide resolved
lib/notify-v2.js Outdated Show resolved Hide resolved
package.json Show resolved Hide resolved
* Minor tweaks.
* Comments for the Rx code.
@amrc-benmorrow amrc-benmorrow merged commit ccc1b7c into main Nov 7, 2024
@amrc-benmorrow amrc-benmorrow deleted the bmz/notify branch November 7, 2024 11:26
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.

2 participants