RTC Release Blocker PR-5.1-dev Pending

User tests: Successful: Unsuccessful:

avatar wilsonge
wilsonge
26 Feb 2024

Various minor reworkings to the TUF code as below

Summary of Changes

  • Removes the extra HTTP Factory - it serves no purpose. Whilst we don't implement PSR-18 yet it shows the type of object to be passed around which is a created HTTP client - not the factory for it: https://www.php-fig.org/psr/psr-18/
  • Rework constructor args - db is now required (it already existed in one of the two instantiating classes anyhow and we call Factory::getDbo() already in the other), makes application a required parameter (we were statically grabbing it in the class - which shouldn't be the case for new classes).
  • Fixes the constructor doc block

Testing Instructions

Check all TUF functionality from #42799 continues to work with no changes. New code is slightly easier to maintain and read.

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar wilsonge wilsonge - open - 26 Feb 2024
avatar wilsonge wilsonge - change - 26 Feb 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 26 Feb 2024
Category Libraries
avatar wilsonge wilsonge - change - 26 Feb 2024
Title
Move around some TUF constructor args
[5.1] TUF Code Cleanup
avatar wilsonge wilsonge - edited - 26 Feb 2024
avatar wilsonge
wilsonge - comment - 26 Feb 2024

@SniperSister would be good to understand why we're forcing curl to make the http requests rather than the any of the 3 options the server might support

avatar wilsonge wilsonge - change - 26 Feb 2024
The description was changed
avatar wilsonge wilsonge - edited - 26 Feb 2024
avatar wilsonge wilsonge - change - 27 Feb 2024
Labels Added: PR-5.1-dev
avatar HLeithner HLeithner - change - 11 Mar 2024
Labels Added: Release Blocker
avatar alikon
alikon - comment - 12 Mar 2024

hopefully i've done it in a right way
but it works for me now

avatar alikon alikon - test_item - 12 Mar 2024 - Tested successfully
avatar alikon
alikon - comment - 12 Mar 2024

I have tested this item ✅ successfully on 0eda369


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

avatar brianteeman brianteeman - test_item - 12 Mar 2024 - Tested successfully
avatar brianteeman
brianteeman - comment - 12 Mar 2024

I have tested this item ✅ successfully on 0eda369


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

avatar brianteeman
brianteeman - comment - 12 Mar 2024

Before this PR my test server without curl would fail to check for updates etc
With this PR there was no problem


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

avatar alikon alikon - change - 12 Mar 2024
Status Pending Ready to Commit
avatar alikon
alikon - comment - 12 Mar 2024

RTC


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

avatar richard67
richard67 - comment - 12 Mar 2024

@alikon Have you seen that PHPCS fails in Drone?

avatar richard67 richard67 - change - 12 Mar 2024
Labels Added: RTC
avatar alikon
alikon - comment - 12 Mar 2024

no, cause
sometimes drone failure are ..... ?

avatar richard67
richard67 - comment - 12 Mar 2024

no, cause sometimes drone failure are ..... ?

@alikon You can't check the drone log to see what fails?

avatar alikon
alikon - comment - 12 Mar 2024

not on my local

avatar richard67
richard67 - comment - 12 Mar 2024

not on my local

@alikon I mean on GitHub with the link beside the test result. The thing is that when PHPCS fails, no integration or system or unit tests are run, so we cannot see if something's wrong with them.

Anyway I've fixed it now.

avatar alikon
alikon - comment - 12 Mar 2024

@richard67 i mean sometimes you got drone failing for timoeout and... something else ..,etc
thanks for fixing it

avatar LadySolveig LadySolveig - change - 14 Mar 2024
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2024-03-14 15:22:14
Closed_By LadySolveig
avatar LadySolveig LadySolveig - close - 14 Mar 2024
avatar LadySolveig LadySolveig - merge - 14 Mar 2024
avatar LadySolveig
LadySolveig - comment - 14 Mar 2024

Thanks to all involved ?

Add a Comment

Login with GitHub to post a comment