Skip to content

Conversation

@GitHK
Copy link
Contributor

@GitHK GitHK commented Sep 16, 2024

What do these changes do?

After the upgrade of python 3.11 enums work a bit differently. class X(int, Enum) and class X(IntEnum) work differently when serialising them in a string. To maintain the same behaviour it is required to use the IntEnum

Previous serialisation redis://:***@redis:6379/RedisDatabase.ANNOUNCEMENTS -> current fixed one redis://:***@redis:6379/5

Related issue/s

How to test

Dev-ops checklist

@GitHK GitHK self-assigned this Sep 16, 2024
@GitHK GitHK changed the title fixed issue with enum conversion 🐛 Fixed Redis issue where keys ended up in the wrong deployment. Sep 16, 2024
@GitHK GitHK marked this pull request as ready for review September 16, 2024 13:21
Copy link
Member

@sanderegg sanderegg left a comment

Choose a reason for hiding this comment

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

Did you check if there are other occurences of this?

Copy link
Collaborator

@matusdrobuliak66 matusdrobuliak66 left a comment

Choose a reason for hiding this comment

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

super!

@GitHK GitHK added the t:maintenance Some planned maintenance work label Sep 16, 2024
@codecov
Copy link

codecov bot commented Sep 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.7%. Comparing base (cafbf96) to head (7612a3b).
Report is 545 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #6368      +/-   ##
=========================================
+ Coverage    84.5%   88.7%    +4.1%     
=========================================
  Files          10    1075    +1065     
  Lines         214   47411   +47197     
  Branches       25     356     +331     
=========================================
+ Hits          181   42090   +41909     
- Misses         23    5252    +5229     
- Partials       10      69      +59     
Flag Coverage Δ
integrationtests 64.5% <ø> (?)
unittests 86.1% <100.0%> (+1.5%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...ges/settings-library/src/settings_library/redis.py 95.6% <100.0%> (ø)

... and 1084 files with indirect coverage changes

Copy link
Member

@pcrespov pcrespov left a comment

Choose a reason for hiding this comment

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

thx! 🎉

@sonarqubecloud
Copy link

@sanderegg sanderegg merged commit 22c4456 into ITISFoundation:master Sep 16, 2024
@matusdrobuliak66 matusdrobuliak66 mentioned this pull request Oct 30, 2024
57 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a:simcore-sdk t:maintenance Some planned maintenance work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants