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

Chore: Check for DS / PS already set #4484

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

sreichel
Copy link
Contributor

@sreichel sreichel commented Jan 15, 2025

Description (*)

@justinbeaty, only to remove some changes from #4411, to make review easier.

@sreichel sreichel added the chore label Jan 15, 2025
@github-actions github-actions bot added the Mage.php Relates to app/Mage.php label Jan 15, 2025
@github-actions github-actions bot added Component: Reports Relates to Mage_Reports Component: Sales Relates to Mage_Sales labels Jan 15, 2025
Comment on lines +271 to +301


/**
* Get SQL for get record count
*
* @return Varien_Db_Select
* @see Mage_Reports_Model_Resource_Report_Product_Viewed_Collection
* @see Mage_Sales_Model_Resource_Report_Bestsellers_Collection
*/
public function getSelectCountSql()
{
$this->_renderFilters();
$select = clone $this->getSelect();
$select->reset(Zend_Db_Select::ORDER);
return $this->getConnection()->select()->from($select, 'COUNT(*)');
}

/**
* Set ids for store restrictions
*
* @param array $storeIds
* @return $this
* @see Mage_Reports_Model_Resource_Report_Product_Viewed_Collection
* @see Mage_Sales_Model_Resource_Report_Bestsellers_Collection
*/
public function addStoreRestrictions($storeIds)
{
if (!is_array($storeIds)) {
$storeIds = [$storeIds];
}
$currentStoreIds = $this->_storesIds;
Copy link
Contributor

Choose a reason for hiding this comment

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

this should be in a separate PR for easier review

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For some reason i dont see that comment/review in history?

It moved 1:1 duplicated methods to its parent abtract class.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Its one commit cb3fbba

@sreichel sreichel modified the milestones: 20.13.0, 20.14.0 Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Component: Reports Relates to Mage_Reports Component: Sales Relates to Mage_Sales Mage.php Relates to app/Mage.php phpstan
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants