Skip to content
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

refactor: use typed patch instance for session updates #500

Merged
merged 11 commits into from
Nov 5, 2024

Conversation

leafty
Copy link
Member

@leafty leafty commented Nov 1, 2024

See #485.

The session blueprint is also updated to use the validated_json() method for API responses.

@leafty leafty force-pushed the leafty/fix-db-update-platform-config branch from 15945ce to 4550d80 Compare November 1, 2024 14:25
…session

# Conflicts:
#	components/renku_data_services/users/db.py
Base automatically changed from leafty/fix-db-update-platform-config to main November 4, 2024 13:18
@leafty leafty marked this pull request as ready for review November 4, 2024 13:20
@leafty leafty requested a review from a team as a code owner November 4, 2024 13:20
@coveralls
Copy link

coveralls commented Nov 4, 2024

Pull Request Test Coverage Report for Build 11680883133

Details

  • 88 of 106 (83.02%) changed or added relevant lines in 5 files are covered.
  • 7 unchanged lines in 5 files lost coverage.
  • Overall coverage decreased (-0.06%) to 90.807%

Changes Missing Coverage Covered Lines Changed/Added Lines %
components/renku_data_services/session/blueprints.py 19 20 95.0%
components/renku_data_services/session/db.py 18 35 51.43%
Files with Coverage Reduction New Missed Lines %
components/renku_data_services/base_api/misc.py 1 98.41%
components/renku_data_services/crc/blueprints.py 1 93.81%
components/renku_data_services/crc/db.py 1 87.5%
components/renku_data_services/crc/models.py 2 84.81%
components/renku_data_services/storage/blueprints.py 2 93.18%
Totals Coverage Status
Change from base Build 11665036817: -0.06%
Covered Lines: 11182
Relevant Lines: 12314

💛 - Coveralls

@leafty leafty requested a review from Panaetius November 5, 2024 09:08
return str(id)
def serialize_ulid(cls, value: Any) -> Any:
"""Handle ULIDs."""
if isinstance(value, ULID):
Copy link
Member

Choose a reason for hiding this comment

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

that's a nice way to handle it 👍 , we might want to add that for the other apispec_base.py's as well

Copy link
Member Author

Choose a reason for hiding this comment

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

I was thinking that we should have a common apispec_base.py file because otherwise we have a lot of code fragmentation.

@leafty leafty merged commit b2b7ff2 into main Nov 5, 2024
15 checks passed
@leafty leafty deleted the leafty/fix-db-update-session branch November 5, 2024 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants