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

ONPREM-1444 Enhance populateElasticEntries.php to support range filtering for INT_ID #13100

Draft
wants to merge 2 commits into
base: Ursa-21.9.0
Choose a base branch
from

Conversation

GElkayam
Copy link
Member

No description provided.

@@ -9,8 +9,22 @@
$c->add(entryPeer::UPDATED_AT, $argv[1], Criteria::GREATER_EQUAL);
if($argc > 2 && is_numeric($argv[2]))
$c->add(entryPeer::PARTNER_ID, $argv[2], Criteria::EQUAL);
if($argc > 3 && is_numeric($argv[3]))
$c->add(entryPeer::INT_ID, $argv[3], Criteria::GREATER_EQUAL);
if($argc > 3)
Copy link
Collaborator

@yossipapi yossipapi Jan 29, 2025

Choose a reason for hiding this comment

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

I would separate them t different param and use the same logic as above
if($argc > 3 && is_numeric($argv[3]))
....
if($argc > 4 && is_numeric($argv[4]))
....

@GElkayam GElkayam changed the base branch from Ursa-21.8.0 to Ursa-21.9.0 February 2, 2025 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants