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
web/multinode: Show appropriate error while adding new node #4293
base: main
Are you sure you want to change the base?
Conversation
Hey! This is my first PR to this project so let me know if anything is missing! Thank you. |
Hey @Pranav2612000, thank you for your pull request :) Before I review this change, could you get the build to pass? It looks like there are currently some linting errors: |
c00cd5a
to
495379a
Compare
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have the users @Pranav2612000 on file. Once you have signed the CLA, please let us know, so we can manually review and add you to the approved contributors list. |
@Pranav2612000 , one more thing: could you upgrade your |
while adding new nodes, if the nodeID, Public IP Address or the API Key are incorrect no error was being shown on the webpage. This commit resolves this issue by showing a error notification on the top right corner of the screen with appropriate error text.
495379a
to
da9e2e6
Compare
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have the users @Pranav2612000 on file. Once you have signed the CLA, please let us know, so we can manually review and add you to the approved contributors list. |
Hey @mobyvb ! I've updated nvm and node to 7.5.1/15.8.0 as you asked. |
@cla-bot check |
The cla-bot has been summoned, and re-checked this pull request! |
@@ -16,6 +16,7 @@ | |||
"vue-chartjs": "3.5.1", | |||
"vue-class-component": "7.2.6", | |||
"vue-clipboard2": "0.3.1", | |||
"vue-notification": "^1.3.20", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mobyvb don't forget to review the dependency. https://github.com/storj/docs/blob/main/code/Dependencies.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also don't we already have some sort of notification system?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @egonelbre
I was planning on reviewing the dependency before approving.
We do have a custom notification system for the satellite web app. @VitaliiShpital has shared the following with me about how it is written/implemented:
ok, so it consists of explicit vuex module https://github.com/storj/storj/blob/main/web/satellite/src/store/modules/notifications.ts
notificator plugin https://github.com/storj/storj/blob/main/web/satellite/src/utils/plugins/notificator.ts
which is enabled in main.ts like this https://github.com/storj/storj/blob/main/web/satellite/src/main.ts#L21
here we add it to UI https://github.com/storj/storj/blob/main/web/satellite/src/App.vue#L8
and here’s an example of it’s usage https://github.com/storj/storj/blob/main/web/satellite/src/components/accessGrants/AccessGrants.vue#L119
I still need to audit the vue-notification package (link for me, later: https://github.com/euvl/vue-notification).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have reviewed the vue-notification
package, and it seems fine. It does not require any additional dependencies besides itself, and I didn't notice any issues in the code (there is not very much code).
@Pranav2612000 would you like me to review this PR as-is, or do you want to try implementing notifications like web/satellite
, which I linked in my previous comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have reviewed the vue-notification package, and it seems fine. It does not require any additional dependencies besides itself, and I didn't notice any issues in the code (there is not very much code).
That does not seem to be the case. There seem to be plenty of additions in the lock file, e.g. fsevents
, node-notifier
, fork-ts-checker-webpack-plugin-v5
, vue-loader-v16
, prettier
, source-map
. Did you compare the before and after of the node_modules folder?
And if we already have a system for notifications then we should diverge only if we have a really good reason and/or plan to move other implementations to it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I said that because I was looking at the package.json here https://github.com/euvl/vue-notification/blob/master/package.json and did not see any non-dev dependencies added.
But yes, I see that the package lock has been updated. And I have not audited any of those new packages other than vue-notification.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0kay. Does that mean we should use the notification system already being used? Can you point me to the documentation for it? I'll be happy to use it. ( I had also asked if we have a notification system before, but I got to know we don't have one and that's why I used this package )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mobyvb the notification system we already have is only in the satellite so how do we share it with the web/storagenode and web/multinode ?
This pull request has been mentioned on Storj Community Forum (official). There might be relevant details there: https://forum.storj.io/t/multinode-seems-to-stop-where-it-should-continue/21697/14 |
While adding new nodes, if the nodeID, Public IP Address, or
the API Key is incorrect no error was being shown on the webpage.
This commit resolves this issue by showing an error notification on
the top right corner of the screen with appropriate error text.
Fixes #4199
Please describe the performance impact:
Code Review Checklist (to be filled out by reviewer)