Skip to content

Conversation

@i-oden
Copy link
Member

@i-oden i-oden commented Sep 17, 2025

Pull Request Template

Before Marking as Ready for Review

  • Add relevant information to the sections below (Summary etc)
  • Rebase or merge the latest dev (or other targeted branch)
  • Update documentation if needed
  • Add an entry to the SPRINTLOG.md if needed
  • Choose an appropriate label. See here for information on the labelling options
  • The code follows the style guidelines
  • Perform a self-review: read the diff as if reviewing someone else's code
  • I have commented the code, particularly in hard-to-understand areas
  • Verify that all checks and tests have passed

If the target branch is master:

Summary

We have increased the readtimeout value in the CLI, this does the same change to the API since the API handles the deletion of contents in the S3 buckets.

urllib3.exceptions.ReadTimeoutError: AWSHTTPSConnectionPool(host='[s3a3.sto2.safedc.net](http://s3a3.sto2.safedc.net/)', port=443): Read timed out.

Related Issue/Ticket

HMS-2533

Testing

If applicable: How did you verify the change? Include commands, data, or screenshots.

Reviewer Notes

Anything that helps reviewers (e.g. areas needing close attention).


Once all boxes are checked, mark the PR as Ready for Review and tag at least one team member as the initial reviewer.

@i-oden i-oden self-assigned this Sep 17, 2025
@i-oden i-oden added the type: feature For release template label Sep 17, 2025
@codecov
Copy link

codecov bot commented Sep 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.91%. Comparing base (aa7b2ee) to head (219f5b2).
⚠️ Report is 72 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #1644      +/-   ##
==========================================
+ Coverage   92.89%   92.91%   +0.01%     
==========================================
  Files          29       30       +1     
  Lines        4984     4995      +11     
==========================================
+ Hits         4630     4641      +11     
  Misses        354      354              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@valyo
Copy link
Member

valyo commented Nov 24, 2025

@codex review

@chatgpt-codex-connector
Copy link

To use Codex here, create a Codex account and connect to github.

@valyo valyo marked this pull request as ready for review November 27, 2025 08:11
@valyo valyo requested a review from a team as a code owner November 27, 2025 08:11
@ebbaoliveberg
Copy link
Contributor

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. 🎉

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link
Contributor

@ebbaoliveberg ebbaoliveberg left a comment

Choose a reason for hiding this comment

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

Some comments about imports, please look at them.

The time when it was issued is recorded to put an expiration time on the token.
"""
from dds_web.utils import current_time
Copy link
Contributor

Choose a reason for hiding this comment

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

Why import in the functions and not in the top of the file?

Copy link
Member

Choose a reason for hiding this comment

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

Importing it at the top of the file created a circular dependency issue when utils is importing models while models was trying to import utils

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok.

db.DateTime(),
nullable=True,
default=dds_web.utils.current_time,
default=lambda: datetime.datetime.utcnow(),
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the reason for changing this?

Copy link
Member

Choose a reason for hiding this comment

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

this one is related to the previous, in that I went to calling datetime.datetime.utcnow() instead of utils.current_time due to the circular imports issue, but then the tests failed because freezegun does not work as expected if utcnow() is called as function reference or when the Python module loads (once at startup). When it is called as lambda function, apparently SQLAlchemy calls the lambda when creating each row in the test execution.
I hope this isn't too confusing

Copy link
Member

Choose a reason for hiding this comment

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

I mean, maybe there's better solution but I also saw the warning "The method "utcnow" in class "datetime" is deprecated" and decided that this should be addressed in a separate task

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok.

Copy link
Contributor

@ebbaoliveberg ebbaoliveberg left a comment

Choose a reason for hiding this comment

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

No obvious issues as far as I can tell.

@valyo valyo merged commit 3571bb7 into dev Dec 3, 2025
17 checks passed
@valyo valyo deleted the HMS-2533-add-timeouts-to-deletions branch December 3, 2025 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: feature For release template

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants