-
Notifications
You must be signed in to change notification settings - Fork 81
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
[Bugfix] | GH-1749 -Fixing share expiration task #1750
[Bugfix] | GH-1749 -Fixing share expiration task #1750
Conversation
@@ -479,7 +479,7 @@ def fetch_submitted_shares_with_notifications(session): | |||
def get_all_active_shares_with_expiration(session): | |||
return ( | |||
session.query(ShareObject) | |||
.filter(and_(ShareObject.expiryDate.isnot(None), ShareObject.deleted.is_(None))) | |||
.filter(and_(ShareObject.expiryDate.isnot(None), ShareObject.deleted.is_(None), ShareObject.status == 'Processed')) |
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.
Let's use ShareObjectStatus.Processed
instead of hardcoding the enum value
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.
Some minor changes. The code looks better with this PR. Thank you!
Hi @dlpzx , Thanks for the review. I have updated the PR to include those changes |
Hi @TejasRGitHub the PR looks good, but there are some conflicts |
# Conflicts: # backend/dataall/modules/shares_base/db/share_object_repositories.py
@dlpzx , Merged from main and resolved conflicts |
Feature or Bugfix
Detail
Relates
Testing
Security
Please answer the questions below briefly where applicable, or write
N/A
. Based onOWASP 10.
fetching data from storage outside the application (e.g. a database, an S3 bucket)?
eval
or similar functions are used?By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.