-
Notifications
You must be signed in to change notification settings - Fork 5
Feature/model service #89
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
Conversation
… instances from the ir
… not in a certain set of events
…a store service to manage the application's state.
…s to enable the consumer to destinct the different update kinds.
… service to first integrate in the dev branch
changed usage of api service to model service throughout the application
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.
As requested by @janniclas i did a functionality based test on this PR. These are my results:
- General communication with instance registry 0.8.0 works
- Number of Components in the dashboard is displayed correctly, and updates without reloading the page
- Adding an instance works
- Table rows for component types updated without reloading (on add instance / delete instance via curl)
- Instance attributes do not update without reloading, meaning that state does not change without hitting Reload (is this intended for this PR?)
- Docker controls are displayed for non-docker instances (is this intended for this PR?)
- Docker controls do not work, no start/stop/pause/resume/delete calls to the registry are being made (is this intended for this PR?)
thx for the additional inquiry @johannesduesing . state should be reloading I will have a look at that. EDIT: state should not be reloading automatically sorry my mistake. It should and will in the long run, but this update doesn't contain the functionality to handle the state change events of the instance registry right now. They are only included in another branch on which I'm working, got confused there. |
added more roboust handling of msg parsing. added comments. added handler for linkstatechanged events
That is very strange. I did another test, just to make sure. As stated before, adding an instance from the UI works just fine, reaches the registry and is executed. The added instance shows up in the table, but i can not use the docker controls for start / stop / pause / resume / delete, because they do not reach the registry.
The same goes for |
@janniclas as per your suggestion I have cloned all the repositories newly and tested. Below is the result:
@johannesduesing Yes, I also got 404 error for 'Stop' and 'Pause' functionalities. @winniedo could you please confirm the exact reason for appending 'a' to the 'Insatnce Id'? |
@johannesduesing yes, your guess was correct. :) The probem was because of the 'a'. I just now tested by removing the 'a' while sending the request to ir for 'start/Stop/play/resume' and the docker functionality works as expected. None of the existing functionalities is broken in the latest test. |
Codecov Report
@@ Coverage Diff @@
## develop #89 +/- ##
=========================================
- Coverage 4.95% 4.65% -0.3%
=========================================
Files 11 11
Lines 202 215 +13
Branches 11 9 -2
=========================================
Hits 10 10
- Misses 192 205 +13
Continue to review full report at Codecov.
|
@johannesduesing @ishwaryaPaderborn thx for your review and the catch with the invalid url. |
I checked out the latest version and found the following:
EDIT:
|
Tested the updated code and found few results: |
since the observed behavior of both reviewers differ we will postpone this till thursday's meeting where we can hopefully sort things out together. |
Okey this is now hopefully my final contribution to the testing for this PR 😄 Firefox 64.0.2 on Ubuntu 16.04 LTS 64-bit
Google Chrome 71.0.3578.98 on Windows 7 Ultimate 64-bit
I don't know why it works in Chrome and not in firefox.. Maybe you have an idea @janniclas ? EDIT:
Here you only check for result Confirm & State Running, there you show a warning (as expected), but for all other cases you just execute the delete call. You never check for result Cancle here. |
…g result was confirmed or cancle
…anagement into feature/modelService
Update regarding the latest changes:
|
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.
To me the only problem left with this PR now is the parsing error when clicking the docker controls, and the result is that the state is not updating without reloading the page. But since this is known to @janniclas i think this PR is ready to merge.
since the remaining bug has nothing to do with the functionality added with this pull request it will be merged now and a ticket opened for the bug. |
This pull request is made based on the results of #83 so please only merge after this was merged.
This pull request introduces a model service and a store service as an additional abstraction layer. The model layer is used to subscribe to any changes made to the state stored in the store service. This is used to share the information about certain instances with multiple components without making the same server request all over again.
If this, admittedly pretty large request, needs further clarification don't hesitate to ask :)
This pretty much closes #53