-
Notifications
You must be signed in to change notification settings - Fork 27
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
✨ Is2805/can disable exporter with envs (⚠️ devops) #2814
✨ Is2805/can disable exporter with envs (⚠️ devops) #2814
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2814 +/- ##
======================================
Coverage 78.9% 78.9%
======================================
Files 670 670
Lines 27236 27257 +21
Branches 3141 3146 +5
======================================
+ Hits 21495 21518 +23
+ Misses 4985 4980 -5
- Partials 756 759 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
|
28237e8
to
28a8c70
Compare
thanks for the notice! |
👌 |
I added {
"apiVersion": "0.7.0",
"appName": "simcore_service_webserver",
"buildDate": "2022-01-09T12:26:29Z",
"vcsRef": "dd536f998",
"vcsUrl": "git@github.com:ITISFoundation/osparc-simcore.git",
"stackName": "master-simcore",
"pluginsDisabled": [
"WEBSERVER_EXPORTER",
"WEBSERVER_SCICRUNCH"
]
} |
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.
Nice!
I'd like that all requests in the exporter to fail as fast as possible if the exporter is disabled.
services/web/server/src/simcore_service_webserver/application_settings.py
Outdated
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/exporter/request_handlers.py
Show resolved
Hide resolved
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.
lgtm thanks for this
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.
Thanks!
When the plugin is disabled, the app has no routes to export projects and therefore it responds I guess with a 404 Not Found or 405 Method Not Allowed as soon as it is requested ... Is there any other way to use the exporter other than through the designated entrypoints? |
Yes, we also discussed about it. No there are no other ways to use it. |
70a1979
to
9549694
Compare
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.
👍
What do these changes do?
We can now disable webserver's exporter plugin via env vars as
WEBSERVER_EXPORTER=null
.WEBSERVER_EXPORTER=null
where required to disable export feature (@odeimaiz since the front-end needs to disable some components as well, should I add a flag with the to check if the exporter plugin is enabled/disabled in the static data?DONE (see below)Related issue/s
Until proper fix, it temporary avoids issues in
How to test
If webserver started wiht
INFO
it should logChecklist
make openapi-specs
,git commit ...
and thenmake version-*
)cd packages/postgres-database
,make setup-commit
,sc-pg review -m "my changes"