-
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
✨ Announcements entrypoint at the web-api (⚠️ devops) #4487
✨ Announcements entrypoint at the web-api (⚠️ devops) #4487
Conversation
a7a5748
to
6161026
Compare
Codecov Report
@@ Coverage Diff @@
## master #4487 +/- ##
======================================
Coverage 86.4% 86.4%
======================================
Files 1013 1018 +5
Lines 43218 43305 +87
Branches 1006 1006
======================================
+ Hits 37370 37455 +85
- Misses 5616 5618 +2
Partials 232 232
Flags with carried forward coverage won't be shown. Click here to find out more.
|
0d5172f
to
46e8c68
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.
Thanks a lot very nice, just some thoughts from my side for this one :)
DevOps tasks are acknowledged, Currently the webserver gets almost all routing and it would be more than just some minutes work to implement a special rate-limit for this specific route. The announcements will be rate-limited just as all other API of the webserver, which was raised for the TIP deployment but is still set at some reasonable values.
services/web/server/src/simcore_service_webserver/announcements/_redis.py
Outdated
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/announcements/_models.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.
Thanks a lot!
I believe you miss increasing the --databases
to 6 in services/docker-compose.yml
@pcrespov your PR should propagate together with ITISFoundation/osparc-ops-environments#272 that includes the devops changes for the redis-commander |
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.
green from me 👍
196bfea
to
80bfa11
Compare
services/web/server/src/simcore_service_webserver/announcements/_models.py
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/announcements/_redis.py
Outdated
Show resolved
Hide resolved
80bfa11
to
e3293a4
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.
Tested and working as expected. Thanks!!
Code Climate has analyzed commit 256434b and detected 0 issues on this pull request. View more on Code Climate. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Co-authored-by: Odei Maiz <[email protected]>
What do these changes do?
New plugin to handle public announcements:
GET /announcements
entrypoint to list public announcementsannouncements
(5). Currently added manually!Related issue/s
How to test
cd services/web/server pytest tests/unit/with_dbs/02/test_announcements.py
DevOps
web-server
(i.e. notwb-db-event-listener
or.env-wb-db-event-listener
) must be configured withWEBSERVER_ANNOUNCEMENTS=1
announcements:${REDIS_HOST}:${REDIS_PORT}:5
GET /announcements
entrypoint is openedWEBSERVER_ANNOUNCEMENTS: bool