Skip to content

Conversation

@eikek
Copy link
Member

@eikek eikek commented Dec 9, 2025

  • Removes existing logic of calculating a willHibernateAt date and instead return the newly provided one from amalthea
  • Accept a lastInteraction timestamp with the session patch request which is used to update the corresponding session. It is possible to specify either the full (iso) timestamp or use now that will resolve to the current time when evaluated at the backend server

Requires the changes in amalthea to be deployed!

/deploy amalthea-sessions=main

@RenkuBot
Copy link
Contributor

RenkuBot commented Dec 9, 2025

You can access the deployment of this PR at https://renku-ci-ds-1128.dev.renku.ch

@coveralls
Copy link

coveralls commented Dec 9, 2025

Pull Request Test Coverage Report for Build 20339056754

Details

  • 84 of 96 (87.5%) changed or added relevant lines in 11 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall first build on eikek/build/session-last-interaction at 86.009%

Changes Missing Coverage Covered Lines Changed/Added Lines %
components/renku_data_services/crc/db.py 3 4 75.0%
components/renku_data_services/notebooks/crs.py 4 6 66.67%
components/renku_data_services/crc/core.py 26 29 89.66%
components/renku_data_services/notebooks/core_sessions.py 14 20 70.0%
Totals Coverage Status
Change from base Build 20303050813: 86.0%
Covered Lines: 24037
Relevant Lines: 27947

💛 - Coveralls

@eikek eikek changed the title feat: Generate pydantic class from amalthea CRD feat: set lastInteraction time via session patch and return willHibernateAt Dec 10, 2025
@eikek eikek force-pushed the eikek/build/session-last-interaction branch from 484ab47 to cffa1f5 Compare December 11, 2025 13:19
@eikek eikek marked this pull request as ready for review December 12, 2025 13:57
@eikek eikek requested review from a team, SalimKayal and sgaist as code owners December 12, 2025 13:57
@eikek eikek force-pushed the eikek/build/session-last-interaction branch 4 times, most recently from 9d04302 to 4896fd0 Compare December 17, 2025 10:09
Copy link
Member

@olevski olevski left a comment

Choose a reason for hiding this comment

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

Just a few minor changes Eike. All else looks good. We should also test this with the ui changes from SwissDataScienceCenter/renku-ui#3928 from @lorenzo-cavazzi

@eikek eikek force-pushed the eikek/build/session-last-interaction branch from 861ef2d to d0a2be7 Compare December 18, 2025 08:53
@eikek eikek requested a review from olevski December 18, 2025 08:54
olevski
olevski previously approved these changes Dec 18, 2025
@olevski
Copy link
Member

olevski commented Dec 18, 2025

@eikek can you please hold off on merging this? It will go in renku 2.13.0 but there are things that have not been merged in data services yet that need to go out in 2.12.0.

@olevski olevski added the do not merge A PR that has been approved but should not be merged label Dec 18, 2025
@eikek
Copy link
Member Author

eikek commented Dec 18, 2025

@eikek can you please hold off on merging this? It will go in renku 2.13.0 but there are things that have not been merged in data services yet that need to go out in 2.12.0.

Yes sure, as we discussed. 👍🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not merge A PR that has been approved but should not be merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants