Skip to content

[4.0][CLI] com_finder use console command#30768

Merged
HLeithner merged 6 commits intojoomla:4.0-devfrom
alikon:patch-117
Sep 26, 2020
Merged

[4.0][CLI] com_finder use console command#30768
HLeithner merged 6 commits intojoomla:4.0-devfrom
alikon:patch-117

Conversation

@alikon
Copy link
Contributor

@alikon alikon commented Sep 25, 2020

Summary of Changes

move com_finder from cli to console command

Testing Instructions

php cli/joomla.php finder:index purge to index and rebuilds
php cli/joomla.php finder:index to index only
php cli/joomla.php finder:index --pause=10 to index with a pause of 10 seconds

Actual result BEFORE applying this Pull Request

php finder_indexer.php --purge

Expected result AFTER applying this Pull Request

php cli/joomla.php finder:index purge

image

Documentation Changes Required

yes

@richard67
Copy link
Member

@ceford
Copy link
Contributor

ceford commented Sep 26, 2020

I have tested this item ✅ successfully on 2b42e5e

In the testing instructions the before test is incomplete - it should be php cli/finder_indexer.php --purge
And the first of the Testing Instructions has a stray p - php cli/joomla.php finder:indexp purge
In the second test I got a skipping pause message so I guess there is a default pause

  • Skipping pause, as previous batch had a very low processing time (0.134s < 1s)

But all worked as described. I did not understand the PHPCS link.


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

@richard67
Copy link
Member

richard67 commented Sep 26, 2020

I did not understand the PHPCS link.

@ceford For every pull request, automatic tests like e.g. unit tests or system tests are run, and also code style tests (PHP, javasript, scss, ...). The results to the tests can be found on GitHub at the bottom of each PR in a section for the checks. If all checks were successfukll, that box is hidden, but it can be expanded with the link "Show all checks". There you see all checks, failed ones marked with a red mark. The link "Details" right beside each check leads to a page with a log file, where you can see at the left hand side which step of a test has failed, in this case it was "PHPCS". By clicking on the failed test step you can see then details about the failures. I had linked the log of the PHPCS test for Nicola so he can check and fix. Proper code style is necessary for good maintenance, and passing the PHPCS test is also necessary for later running the (more important) unit and system tests.

@sandewt
Copy link
Contributor

sandewt commented Sep 26, 2020

Skipping pause, as previous batch had a very low processing time (0.134s < 1s)

Pause = 10

#30768

Pause = 0.1

#30768-2

Pause is skipping. How should I interpret this?

@alikon
Copy link
Contributor Author

alikon commented Sep 26, 2020

pause is skipping cause the elab time is already very low (0.1 sec)

@sandewt
Copy link
Contributor

sandewt commented Sep 26, 2020

pause is skipping cause the elab time is already very low (0.1 sec)

#30768-3

Indeed, works so properly.

@sandewt
Copy link
Contributor

sandewt commented Sep 26, 2020

I have tested this item ✅ successfully on 2b42e5e

In the testing instructions the before test is incomplete - it should be php cli/finder_indexer.php --purge

Tested before with:
php cli/finder_indexer.php --purge

Joomla! 4.0.0-beta5-dev Development [ Mañana ] 15-September-2020 19:15 GMT


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

@alikon
Copy link
Contributor Author

alikon commented Sep 26, 2020

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Sep 26, 2020
@HLeithner HLeithner merged commit 71f48b1 into joomla:4.0-dev Sep 26, 2020
@HLeithner
Copy link
Member

Thanks

@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Sep 26, 2020
@HLeithner HLeithner added this to the Joomla 4.0 milestone Sep 26, 2020
@HLeithner
Copy link
Member

@alikon can you update the documentation? and the upgrade site for J4, should be too much I think it's updating the filename and parameters in the original documentation and in upgrade path.

@ceford
Copy link
Contributor

ceford commented Sep 26, 2020

I did not understand the PHPCS link.

@ceford For every pull request, automatic tests like

@richard67 Once again, thank you for the explanation - I see it now and have read a few more articles on testing.

dgrammatiko added a commit to dgrammatiko/joomla-cms that referenced this pull request Sep 26, 2020
* Joomla/4.0-dev: (844 commits)
  [4.0] Template layout select (joomla#30772)
  [4.0][CLI] com_finder use console command (joomla#30768)
  [4.0] Modifying com_actionlogs string (joomla#30758)
  [4.0] Fancy selectbox fix (joomla#30739)
  [4.0] Add missing Table Caption (joomla#30763)
  [4.0] Wrap all buttons in btn-group to improve styling (joomla#30761)
  [4.0] Cassiopeia missing string (joomla#30765)
  Improve batch text (joomla#28447)
  Fix icons not displaying (joomla#30749)
  Remove the chrome "cardGrey". The same effect can be achieved by using the module class "card-grey" with the "card" chrome (joomla#30734)
  Remove obsolete html code (joomla#30737)
  [4.0] Check out improvements related to nullable columns (joomla#30747)
  Removing card.scss overrides as we don't use those classes
  Use renderField() method to render fields (joomla#30738)
  [4.0] spelling (joomla#30742)
  [4.0] Remove use of ReflectionParameter::getClass() (joomla#30581)
  [4.0] Fix saving images (joomla#30730)
  [4.0] Cleanup cassiopeia chromes and rename "default" to "card" (joomla#30729)
  Fix hiddenLabel and add hiddenLegend form attribute (joomla#29710)
  [4.0] Fix Debug plugin to display query parameters (joomla#30717)
  ...
@alikon alikon deleted the patch-117 branch September 26, 2020 16:57
dgrammatiko added a commit to dgrammatiko/joomla-cms that referenced this pull request Sep 29, 2020
…ger_events_consistency

* '4.0-dev' of github.com:joomla/joomla-cms: (84 commits)
  [4.0] Error in legacy plugins when method contains $event argument (joomla#30575)
  [4.0] Cassiopea table css (joomla#30740)
  [4.0] Blog view links (joomla#30788)
  Change grid minmax definition for newsflash module (joomla#30781)
  [4.0] Pluginless lazyloading for the core (joomla#30748)
  Update package-lock.json (joomla#30713)
  [4.0] mod_article_news readmore (joomla#30780)
  Improve code, remove separator (joomla#30785)
  [4.0] Template layout select (joomla#30772)
  [4.0][CLI] com_finder use console command (joomla#30768)
  [4.0] Modifying com_actionlogs string (joomla#30758)
  [4.0] Fancy selectbox fix (joomla#30739)
  [4.0] Add missing Table Caption (joomla#30763)
  [4.0] Wrap all buttons in btn-group to improve styling (joomla#30761)
  [4.0] Cassiopeia missing string (joomla#30765)
  Improve batch text (joomla#28447)
  Fix icons not displaying (joomla#30749)
  Remove the chrome "cardGrey". The same effect can be achieved by using the module class "card-grey" with the "card" chrome (joomla#30734)
  Remove obsolete html code (joomla#30737)
  [4.0] Check out improvements related to nullable columns (joomla#30747)
  ...

� Conflicts:
�	administrator/components/com_media/resources/scripts/app/Api.js
�	administrator/components/com_media/resources/scripts/components/toolbar/toolbar.vue
�	package-lock.json
sakiss pushed a commit to sakiss/joomla-cms that referenced this pull request Oct 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

Comments