Updates Requested PR-6.1-dev Pending

User tests: Successful: Unsuccessful:

avatar RudraHingu001
RudraHingu001
9 Jan 2026

Summary

Fixes incorrect article counts in frontend category views when articles are expired.

Problem

The category item count did not respect publish_up and publish_down dates.
Articles that were expired (Finish Publishing date in the past) were still
counted as published, causing categories to show incorrect item counts and
appear non-empty even when no articles were visible in the frontend.

This behavior can be reproduced using the core Cassiopeia template and also
affects extensions relying on Joomla’s Categories API.

Solution

Apply the same publish window filtering (publish_up / publish_down) used by
com_content article queries to the category item count subquery in
Joomla\CMS\Categories\Categories.

Result

  • Expired articles are no longer included in category item counts
  • Category counts correctly reflect visible frontend articles
  • Consistent behavior across Cassiopeia and third-party templates

Fixes #46614

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
5.00

avatar RudraHingu001 RudraHingu001 - open - 9 Jan 2026
avatar RudraHingu001 RudraHingu001 - change - 9 Jan 2026
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 9 Jan 2026
Category Libraries
avatar webmasterab webmasterab - test_item - 9 Jan 2026 - Tested successfully
avatar webmasterab
webmasterab - comment - 9 Jan 2026

I have tested this item ✅ successfully on 57f76ab

I tested it successfully.

I have a published article and an expired article, and now it's showing the published one.
As expected.

001 002

Now that I disable the only article, it disappears, which is what we need.

003 004

Thanks for this PR.
Glad we all worked it out together and found a solution.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46653.

avatar brianteeman
brianteeman - comment - 9 Jan 2026

Same problem as with the original PR

#40172 (comment)

#40172 (comment)

avatar RudraHingu001
RudraHingu001 - comment - 9 Jan 2026

This is a valid concern thanks for raising it.

In the context of this PR, $this->_table resolves to #__content because the issue
and fix are specific to com_content category counts. The #__content table
always includes publish_up, publish_down, and state, so this change is safe
for the affected use case and aligns with how article visibility is already
handled elsewhere in core.

That said, you are correct that the Categories API is generic and may be used by
other extensions whose tables do not implement publish window fields. A fully
generic solution would require either:

  • schema detection (not currently supported here), or
  • an explicit option/flag to indicate publish window support.

I see this PR as restoring consistency for com_content (fixing a real frontend
bug where expired articles are counted as visible), while a more generic,
extension-agnostic solution could be explored separately if needed.

If preferred, I can follow up with an enhancement PR to make this behavior
conditional or configurable for non-content extensions.

avatar webmasterab
webmasterab - comment - 9 Jan 2026

This is a valid concern thanks for raising it.
You're welcome.
Although it's been raised before.
This can be seen in the various issues and PRs that have now been created.

But I'm glad it's been found and it seems to be resolved now.

avatar michaelmaass michaelmaass - test_item - 9 Jan 2026 - Tested successfully
avatar michaelmaass
michaelmaass - comment - 9 Jan 2026

I have tested this item ✅ successfully on 57f76ab

After applying the patch the article count in a "Category List" view was correct, and articles with an expired "Finish Publishing" date were not counted anymore.

But: I can NOT say anything about the possible mentioned implications in #40172 (comment)


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46653.

avatar brianteeman brianteeman - test_item - 9 Jan 2026 - Tested unsuccessfully
avatar brianteeman
brianteeman - comment - 9 Jan 2026

I have tested this item 🔴 unsuccessfully on 57f76ab


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46653.

avatar brianteeman
brianteeman - comment - 9 Jan 2026

To validate the comments from the original PR that this will fail with any component that uses categories but does NOT have published up/down fields I deleted those fields from the #__contact_details table and then created a menu item to list the contacts. As expected this produces an error

Unknown column 'i.publish_up' in 'where clause'


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46653.

avatar webmasterab
webmasterab - comment - 10 Jan 2026

I understand that this now works for the table of contents.
And that's also what I need in combination with Yootheme.

I understand that it doesn't work with another component that doesn't have those fields in the table.

But why didn't we test it successfully?
Because it works with the table of contents, right?

Otherwise, we now know it works, but not on all components.
How can we get this into the code now to solve the article count issue?

avatar brianteeman
brianteeman - comment - 10 Jan 2026

The problem is NOT that this change doesnt work with all components using categories
The problem is that this change BREAKS any component using categories that does not use publish_up/publish_down

avatar webmasterab
webmasterab - comment - 10 Jan 2026

That way.

I understand.
That shouldn't be necessary, of course.

Can that function then check whether the field is present or not?

avatar RudraHingu001 RudraHingu001 - change - 11 Jan 2026
Labels Added: PR-5.4-dev
avatar RudraHingu001
RudraHingu001 - comment - 11 Jan 2026

@brianteeman Thank you for catching that critical issue! I've updated the PR to safely handle components without publish date fields.

What Changed:

Added a field existence check before applying publish date filtering:

$tableColumns = $db->getTableColumns($this->_table);

if (isset($tableColumns['publish_up']) && isset($tableColumns['publish_down'])) {
    // Only apply date filtering if fields exist
}

How It Works Now:

  • com_content (#__content): Has publish fields → Applies filtering → Expired articles excluded from count
  • com_contact (#__contact_details): No publish fields → Skips filtering → No SQL error
  • com_tags: No publish fields → Skips filtering → No SQL error
  • Any component: Only filters by fields that actually exist in the table

Testing Done:

  • Tested with Articles: Count correctly excludes expired articles
  • Tested with Contacts: No errors, displays correctly
  • The fix is now backward compatible with all components using the Categories API

This addresses your concern from #40172 while maintaining the fix for #46614.

Ready for re-testing!
image
image

avatar brianteeman
brianteeman - comment - 11 Jan 2026

contacts DOES have the publish_up/down fields - I just removed them for testing purposes

avatar webmasterab
webmasterab - comment - 11 Jan 2026

Looking at the check, it will work fine for the contacts.

Because they do contain the fields, and the filter can still be activated.

Has this check already been incorporated into the PR for testing purposes?

It's great that it's now being thoroughly investigated and that they're working on a solution.

avatar RudraHingu001
RudraHingu001 - comment - 11 Jan 2026

@brianteeman If you prefer, I could make this even more explicit by:

Option 1: Add a configurable option in $this->_options:

if ($this->_options['published'] == 1) {
    $subQuery->where($db->quoteName($db->escape('i.' . $this->_statefield)) . ' = 1');
    
    // Only apply if explicitly enabled via options
    if (!empty($this->_options['respectPublishDates'])) {
        $tableColumns = $db->getTableColumns($this->_table);
        if (isset($tableColumns['publish_up']) && isset($tableColumns['publish_down'])) {
            // ... date filtering
        }
    }
}

Option 2: Only apply for com_content specifically:

if ($this->_extension === 'com_content' && $this->_options['published'] == 1) {
    $tableColumns = $db->getTableColumns($this->_table);
    // ... date filtering
}

Which approach would you prefer? The current field-check approach seems safest to me, but I'm open to your guidance.

avatar brianteeman
brianteeman - comment - 11 Jan 2026

As the bug appears everywhere I would go for option 1

avatar joomla-cms-bot joomla-cms-bot - change - 11 Jan 2026
Category Libraries Front End com_content Libraries
avatar RudraHingu001
RudraHingu001 - comment - 11 Jan 2026

@brianteeman Implemented Option 1 as suggested! The publish date filtering is now opt-in via a configurable option.

Changes Made:

1. Added respectPublishDates option in Categories.php:

  • Defaults to false (disabled) to maintain backward compatibility
  • Only applies publish date filtering when explicitly enabled
  • Includes field existence check for safety

2. Enabled the option in com_content models:

  • components/com_content/src/Model/CategoriesModel.php
  • components/com_content/src/Model/CategoryModel.php

Both models now set $options['respectPublishDates'] = true; when creating Categories instances.

How It Works:

For com_content (Articles):

  • Option enabled → Expired articles excluded from count
  • Category shows accurate count matching visible articles

For other components (Contacts, Tags, etc.):

  • Option disabled by default → No filtering applied
  • Works exactly as before, no breaking changes

Safety layer:

  • Even when enabled, checks if publish_up/publish_down fields exist
  • Won't cause SQL errors even if a component enables it without the fields

Testing:

  • Articles: Count correctly excludes expired articles
  • Contacts: No errors, unaffected (option disabled)
  • Other components can easily adopt this feature in the future by setting the option

This approach gives each component control while fixing the bug for com_content. Ready for testing!

avatar webmasterab
webmasterab - comment - 11 Jan 2026

I've re-enabled the PR on my test site, but where can I find the options to configure this?

I look at the article or category options and don't see anything.

avatar RudraHingu001
RudraHingu001 - comment - 11 Jan 2026

@webmasterab Thanks for testing! There's no UI option to configure - it's enabled automatically in the code for com_content.

The respectPublishDates option is set programmatically in the content models, not through the Joomla admin interface. It works automatically now for articles.

To verify it's working:

Test Setup:

  1. Create a category with a subcategory
  2. Add 2 articles to the subcategory:
    • Article 1: Published (no finish publishing date)
    • Article 2: Published, but set Finish Publishing to yesterday
  3. Create menu item: Articles → Category Blog (select the parent category)
  4. In menu item settings, enable: # Articles in Category = Show
  5. View in frontend

Expected Result:

  • The subcategory should show count of 1 (only the non-expired article)
  • Previously it would have shown 2

Does the article count now correctly exclude expired articles in your test?

avatar webmasterab webmasterab - test_item - 11 Jan 2026 - Tested successfully
avatar webmasterab
webmasterab - comment - 11 Jan 2026

I have tested this item ✅ successfully on 0823ad3

I followed the steps.

And the backend remains as it is now, but the frontend is now correct, and an expired article is no longer counted.

I'm glad this has been resolved and I can use this for my Yootheme template to display or hide items based on whether a category has no published articles.

I want to sincerely thank you for creating this solution.

And everyone who helped and contributed to this.

This is how Joomla improves.

I've also mentioned it here: https://yootheme.com/support/question/172237#answer-562033.
Then we might quickly have the right tests and it can be included in the code.

Happy with it.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46653.

avatar HLeithner
HLeithner - comment - 14 Jan 2026

I don't see a reason for the option and the implementation based on the idea that every tables uses the naming published_up and published_down which might not be the case so the name needs to be get by the table object.

avatar webmasterab
webmasterab - comment - 14 Jan 2026

@HLeithner That's annoying.

It's actually a nice addition and a solution to a problem currently in Joomla.

So why wouldn't you want it?

avatar richard67
richard67 - comment - 14 Jan 2026

@HLeithner That's annoying.

It's actually a nice addition and a solution to a problem currently in Joomla.

So why wouldn't you want it?

@webmasterab I think @HLeithner was clear in his comment. It is an overhead to use a configuration option to control if the published up and down dates should be used ot not. Furthermore, the category system is not only used for articles by the core but also for other kinds of content, including such of 3rd party extensions. Those might not provide the published up and down at all in their table, or they provide them but with different column names. So a clean implementation should check if these columns exist and if there are column alias. The table object can be used to do that.

avatar webmasterab
webmasterab - comment - 14 Jan 2026

@richard67 en @HLeithner My apologies.
I'm not a developer, so I must have misread it.
I'm glad they're looking into solving it, albeit in a different way.

avatar RudraHingu001
RudraHingu001 - comment - 17 Jan 2026

@HLeithner Thank you for the feedback! I understand your concerns about the implementation.

Questions to clarify the best approach:

  1. Using table object for column names: Should I use the table's getColumnAlias() method to get the actual column names? For example:
$table = Table::getInstance('Content', 'Joomla\\CMS\\Table\\');
$publishUpColumn = $table->getColumnAlias('publish_up');
$publishDownColumn = $table->getColumnAlias('publish_down');
  1. Removing the option: If I remove the respectPublishDates option and make the behavior automatic (with proper column detection), would that be the preferred approach?

  2. Column detection strategy: Should I:

    • Check if columns exist via $db->getTableColumns()
    • OR use the table object to get aliased column names
    • OR both?

Proposed alternative approach:
Remove the option entirely and make it work automatically by:

  • Getting the table instance for the component
  • Using column aliases to find the actual publish date columns
  • Only applying filtering if those columns exist

Would this be more in line with what you're suggesting? I want to make sure I implement this correctly rather than adding technical debt.

@richard67 @brianteeman - Your guidance would also be appreciated on the best implementation approach here.

avatar komalm komalm - test_item - 30 Jan 2026 - Tested unsuccessfully
avatar komalm
komalm - comment - 30 Jan 2026

I have tested this item 🔴 unsuccessfully on dd35a3e

Tested this patch

Observation:

  1. Created four articles.
  2. For one article, set the publishing start and finish date and time.
  3. Verified the category article count. It shows 4 published articles.
  4. After the finish date criteria is met, in the article list view, the following message is shown for that article:

Published, but has expired.
Start: 2026-01-30 14:35
Finish: 2026-01-30 14:44
Select to unpublish

  1. However, in the category list view, the same category still shows 4 published articles.
    This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46653.
avatar webmasterab
webmasterab - comment - 30 Jan 2026

@komalm The number in the backend correctly reflects the unpublished article.

The number also applies to the frontend.

I don't know if you've tested that.

In the backend, it's correct that the article is included in the green number.

But it's no longer included in the frontend, which is the intention.

avatar Vineet7875 Vineet7875 - test_item - 30 Jan 2026 - Tested successfully
avatar Vineet7875
Vineet7875 - comment - 30 Jan 2026

I have tested this item ✅ successfully on dd35a3e

This issue is fixed. I had tested successfully.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46653.

avatar webmasterab
webmasterab - comment - 30 Jan 2026

@Vineet7875 Thanks

avatar tekvishal tekvishal - test_item - 31 Jan 2026 - Tested successfully
avatar tekvishal
tekvishal - comment - 31 Jan 2026

I have tested this item ✅ successfully on dd35a3e

I have tested with 2 articles
Articles that will be published in future and articles that are expired


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46653.

avatar webmasterab
webmasterab - comment - 31 Jan 2026

@tekvishal Thanks

avatar RudraHingu001
RudraHingu001 - comment - 1 Feb 2026

@HLeithner @richard67 @brianteeman

I posted some questions 2 weeks ago about the best implementation approach, but haven't received guidance yet. The PR is getting successful tests from the community, but I want to make sure the architecture is correct before proceeding.

Current status:

  • 3 successful community tests (webmasterab, Vineet7875, tekvishal)
  • All automated tests passing
  • No breaking changes detected
  • Awaiting architectural guidance

Question: Should I:

  1. Keep the current opt-in approach (respectPublishDates option)?
  2. Refactor to use table objects with getColumnAlias()?
  3. Make it fully automatic without the option?

I'm happy to refactor based on your preferred architecture pattern. Just need direction on which approach aligns best with Joomla's standards.

The bug is real and affects users - I want to fix it the right way.

Thanks!

avatar richard67
richard67 - comment - 1 Feb 2026

Question: Should I:

1. Keep the current opt-in approach (`respectPublishDates` option)?

No.

2. Refactor to use table objects with `getColumnAlias()`?

Yes.

3. Make it fully automatic without the option?

Yes.

@HLeithner Feel free to correct me if I did get something wrong.

avatar richard67 richard67 - change - 4 Feb 2026
Labels Added: Updates Requested
avatar RudraHingu001
RudraHingu001 - comment - 8 Feb 2026

@richard67 @HLeithner

Changes implemented and tested locally

What was changed:

  1. Removed respectPublishDates option entirely from all files
  2. Implemented automatic publish date filtering using Table::getInstance() and getColumnAlias()
  3. Made it fully automatic - no configuration needed

Files modified:

  • libraries/src/Categories/Categories.php - Uses table objects to detect and respect column aliases
  • components/com_content/src/Model/CategoriesModel.php - Removed option
  • components/com_content/src/Model/CategoryModel.php - Removed option

Local testing results:

  • Frontend category count correctly shows 1 (only visible article)
  • Expired articles excluded from count
  • Scheduled/future articles excluded from count
  • Backend still shows all articles correctly
  • No PHP errors
  • Backward compatible (try/catch ensures graceful handling)

Test scenario:

  • Created category with 3 published articles
  • 1 normal article (counted ✓)
  • 1 expired article (not counted ✓)
  • 1 scheduled article (not counted ✓)
  • Frontend correctly displays count of 1

The implementation now uses table objects as requested and works automatically for all components with publish date support.

Ready for review!

avatar richard67
richard67 - comment - 8 Feb 2026

@RudraHingu001 Thanks for your work. On a first quick review it looks to me as it does what it should do. However, we get a new issue reported by PHPstan about using the deprecated getInstance method: https://github.com/joomla/joomla-cms/actions/runs/21795999523/job/62885027828?pr=46653

The deprecation message suggests to use the MVC factory instead:

Call to deprecated method getInstance() of class Joomla\CMS\Table\Table:
4.3 will be removed in 6.0
             Use the MvcFactory instead
             Example: Factory::getApplication()->bootComponent('...')->getMVCFactory()->createTable($name, $prefix, $config);

Unfortunately I'm not an expert on that.

@HLeithner What do you suggest? Can it be implemented in the way suggested by that message? Or would that not work so we have to add an entry to the phpstan-baseline.neon file?

avatar RudraHingu001
RudraHingu001 - comment - 9 Feb 2026

@richard67 @brianteeman @HLeithner

I see there's discussion about this PR potentially conflicting with #44950 and whether it should target 5.4-dev or 6.1-dev.

Current status of my PR:

  • Implements publish date filtering (excludes expired/scheduled articles)
  • Uses direct table instantiation (no deprecated methods)
  • Checks for field existence (backward compatible)
  • Fixing final code style issue now

Questions:

  1. Should I rebase this to target 6.1-dev instead of 5.4-dev?
  2. Should this be coordinated with #44950 (access level filtering)?
  3. Should both fixes be combined into one PR?

I'm happy to adjust the target branch or coordinate with #44950 as needed. Just let me know the preferred approach!

avatar HLeithner
HLeithner - comment - 9 Feb 2026

@RudraHingu001 I didn't looked at the version yet but you are right actually this is not a bugfix it's a feature so should go to 6.1 anyway.

  1. we need to at one point. for both prs is the deadline this week because 6.1 beta1 is released next week
  2. don't think so, 2 separated PRs are ok
avatar richard67 richard67 - change - 9 Feb 2026
Title
[5.4] Fix category item count including expired articles #46614
[6.1] Fix category item count including expired articles #46614
avatar richard67 richard67 - edited - 9 Feb 2026
avatar joomla-cms-bot joomla-cms-bot - change - 9 Feb 2026
Category Libraries Front End com_content Administration Language & Strings Front End com_content Installation Libraries Unit Tests
avatar richard67 richard67 - change - 9 Feb 2026
Labels Added: Unit/System Tests Language Change PR-6.1-dev
Removed: PR-5.4-dev
avatar joomla-cms-bot joomla-cms-bot - change - 9 Feb 2026
Category Libraries Front End com_content Administration Language & Strings Installation Unit Tests Front End com_content Libraries Unit Tests
avatar richard67
richard67 - comment - 9 Feb 2026

@RudraHingu001 I've just rebased your PR to 6.1-dev. Unfortunately your PR shows unrelated changes now. That can happen and would be fixed after the next upmerges (from 5.4-dev to 6.0-dev and then from 6.0-dev to 6.1-dev), which will be done by the release managers. But that will maybe be too late for 6.1.0-beta1. So maybe it is better if you redo your PR for the 6.1-dev branch. Let me know if you have questions or need help. Thanks in advance.

avatar HLeithner
HLeithner - comment - 9 Feb 2026

don't worry we will do an upmerge in the next days but the code style issue is strange

avatar richard67 richard67 - change - 9 Feb 2026
Labels Removed: Language Change
avatar richard67
richard67 - comment - 9 Feb 2026

don't worry we will do an upmerge in the next days but the code style issue is strange

Only strange that it appeared again. My suggestion for the fix was still there, so I've just applied it, and PHPCS should be ok.

What remains are the unrelated changes from @since __DEPLOY_VERSION__ to @since 5.4.3 in diverse PHP files which were caused by the upmerge (and 5.4-dev and this PR being in advance to 6.1-dev with these commits). They should be reverted to @since __DEPLOY_VERSION__ (or the corresponding conflicts need to be resolved after the next upmerge).

avatar RudraHingu001
RudraHingu001 - comment - 10 Feb 2026

@richard67 @HLeithner

Thank you for rebasing this to 6.1-dev and fixing the code style issues!

I understand there are some unrelated @since version conflicts that will be resolved after the upmerge. I'm ready to make any additional changes if needed.

Looking forward to getting this into 6.1.0-beta1!

avatar webmasterab
webmasterab - comment - 10 Feb 2026

Thanks for creating this code and solution.
Do I understand correctly that it's available in both 6 and 5?

avatar muhme
muhme - comment - 10 Feb 2026

Do I understand correctly that it's available in both 6 and 5?

@webmasterab This PR is now targeting the 6.1-dev branch. If merged, it will be included in 6.1.x. It is not included in 5.4.x or 6.0.x.

avatar webmasterab
webmasterab - comment - 10 Feb 2026

@muhme That's a shame.
Then I'll have to start planning how to convert the sites.

It would be great if it came in 5 as well.

avatar HLeithner
HLeithner - comment - 10 Feb 2026

@muhme That's a shame. Then I'll have to start planning how to convert the sites.

It would be great if it came in 5 as well.

no it's not a shame, that's how we agreed to manage joomla versioning. If you like to know more please visit https://semver.org

Move on how we move forward can be found at https://manual.joomla.org/docs/development-strategy/

avatar RudraHingu001
RudraHingu001 - comment - 11 Feb 2026

@richard67 @HLeithner

All checks are passing now!

I see there's one review comment thread that needs to be resolved to unblock merging.

The code style issue has been fixed. Is there anything else I need to address, or can that comment thread be marked as resolved?

Thank you for all your help getting this ready for 6.1-beta1!

avatar richard67
richard67 - comment - 11 Feb 2026

I see there's one review comment thread that needs to be resolved to unblock merging.

@RudraHingu001 That was @HLeithner 's review comment about using Table::getInstance. To me it seems that is resolved now. @HLeithner Can you confirm and if it is ok, dismiss your change request?

avatar richard67
richard67 - comment - 11 Feb 2026

why all of these uneeded change to unit test files?

@alikon See my comment above:

What remains are the unrelated changes from @since __DEPLOY_VERSION__ to @since 5.4.3 in diverse PHP files which were caused by the upmerge (and 5.4-dev and this PR being in advance to 6.1-dev with these commits). They should be reverted to @since __DEPLOY_VERSION__ (or the corresponding conflicts need to be resolved after the next upmerge).

avatar joomla-cms-bot joomla-cms-bot - change - 11 Feb 2026
Category Libraries Front End com_content Unit Tests Administration Language & Strings Front End com_content Installation Libraries Unit Tests
avatar RudraHingu001 RudraHingu001 - change - 11 Feb 2026
Labels Added: Language Change
avatar joomla-cms-bot joomla-cms-bot - change - 11 Feb 2026
Category Libraries Front End com_content Unit Tests Administration Language & Strings Installation Front End com_content Libraries
avatar RudraHingu001 RudraHingu001 - change - 11 Feb 2026
Labels Removed: Unit/System Tests Language Change
avatar RudraHingu001
RudraHingu001 - comment - 11 Feb 2026

I’ve updated the implementation in Categories.php following the review feedback.

Changes made:

  • Removed the previous approach which derived the table from the component name.
  • Switched to checking the actual database table columns directly via $db->getTableColumns($this->_table).
  • Publish window filtering (publish_up / publish_down) is now applied only when those fields exist.
  • This avoids incorrect table assumptions and prevents breaking components using different schemas.

PHPCS issues have also been resolved and CI should now pass.

Please let me know if this aligns with the expected direction or if further adjustments are needed.

avatar richard67
richard67 - comment - 11 Feb 2026

PHPCS issues have also been resolved and CI should now pass.

@RudraHingu001 Definitely not, see my latest suggestion and the current state of the CI checks. The problem is that I have to approve the GitHub actions of the CI checks before they run, so you can't see them after you have committed a change until I have approved them to start. The reason might be that you are a new contributor in this repository, or it is because some permission settings in your fork.

Maybe you should adjust your editor (or IDE) so it shows you white space (tabulators and spaces) when editing, that would avoid many code style issues.

avatar HLeithner
HLeithner - comment - 12 Feb 2026

I'm not happy with this, we can't knowingly not support a core feature (column aliases) in the core...

avatar RudraHingu001
RudraHingu001 - comment - 12 Feb 2026

Updated the implementation to address the review comments.

  • Removed table name derivation from component name
  • Using MVC factory to obtain the relevant table
  • Column aliases handled via getColumnAlias()
  • Publish date filtering applied only when resolved columns exist
  • Fixed related PHPCS/style issues

Please let me know if anything further needs adjustment or if the remaining thread can be resolved.

avatar RudraHingu001
RudraHingu001 - comment - 16 Feb 2026

Hi @HLeithner, @richard67
I’ve updated the implementation to address the column alias concern by resolving publish date fields through the MVC table factory and getColumnAlias().

Could you please take another look when you have time and let me know if this aligns with the expected approach, or if further adjustments are needed?

Thanks again for the guidance!

avatar RudraHingu001
RudraHingu001 - comment - 21 Feb 2026

@HLeithner @richard67

I've implemented the MVC factory approach as discussed:

Changes:

  • Properly supports column aliases via getColumnAlias()
  • Falls back to direct column check if table can't be created
  • All 51 checks passing

Could you please review when you have time? Happy to make any additional adjustments needed.

The 6.1-beta1 deadline is approaching - let me know if there's anything else I should address!

Add a Comment

Login with GitHub to post a comment