? ? Success

User tests: Successful: Unsuccessful:

avatar Devportobello
Devportobello
19 Jun 2015

Context

When using Joomla! versioning feature, we are able to fix a number of history limit in configuration.
Follow of #7191

Actual limitation

This history limit is only applied of the whole component context eg: com_banners.
If you want to got (wanna keep using banners component for exemple) only 10 history limit for banner and 5 for client (dunno if this could be real) this is actually not possible.

How to test

Part1

  • Create 1 banner, save and edit multiple time (you need versioning history ON and history limitation setup)
  • Then create 1 client, save and edit multiple time.
  • Both got same history limitation
  • Erase all

Part2

Apply patch.

Go to administrator\components\com_banners and edit config.xml and add after

<field
    name="history_limit"
    type="text"
    filter="integer"
    label="JGLOBAL_HISTORY_LIMIT_OPTIONS_LABEL"
    description="JGLOBAL_HISTORY_LIMIT_OPTIONS_DESC"
    default="5"
/>

this

<field
    name="history_limit_client"
    type="text"
    filter="integer"
    label="COM_BANNERS_CLIENT_HISTORY_LIMIT_OPTIONS_LABEL"
    description="COM_BANNERS_CLIENT_HISTORY_LIMIT_OPTIONS_DESC"
    default="5"
/>
<field
    name="history_limit_banner"
    type="text"
    filter="integer"
    label="COM_BANNERS_BANNER_HISTORY_LIMIT_OPTIONS_LABEL"
    description="COM_BANNERS_BANNER_HISTORY_LIMIT_OPTIONS_DESC"
    default="5"
/>

OR
Use this repo / ZIP.

Repeat the part1 after having different setup for history limitation using 2 new context (banner / client) eg: 3 for maximum version client, 4 for maximum version banner and 5 for the base maximum version
You would be able to got different number of history limit.

avatar Devportobello Devportobello - open - 19 Jun 2015
avatar Devportobello Devportobello - change - 19 Jun 2015
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 19 Jun 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 19 Jun 2015
The description was changed
Labels Added: ?
avatar zero-24 zero-24 - change - 19 Jun 2015
The description was changed
Easy No Yes
avatar zero-24 zero-24 - change - 19 Jun 2015
Category Libraries
avatar smz
smz - comment - 20 Jun 2015

The link to "this repo / ZIP" mentioned in the PR description does not work.

Why don't you create a "sister PR" for com_banners (which btw should be on its way out...)? That would make testers life a lot easier...

If the com_banners mods is not meant to stay there you can clearly state that in the PR description and then close it when/if this PR is merged.

avatar zero-24
zero-24 - comment - 21 Jun 2015

@smz @Devportobello try this banner release: https://github.com/zero-24/banners/releases/tag/version_history_test

follow the instruction on the release and here. For me it works Thanks @Devportobello

avatar zero-24 zero-24 - test_item - 21 Jun 2015 - Tested successfully
avatar jwaisner
jwaisner - comment - 21 Jun 2015

@test

PR works as intended.


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

avatar jwaisner jwaisner - test_item - 21 Jun 2015 - Tested successfully
avatar zero-24 zero-24 - change - 21 Jun 2015
Status Pending Ready to Commit
avatar zero-24
zero-24 - comment - 21 Jun 2015

RTC. Thanks :smile:


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

avatar zero-24 zero-24 - change - 21 Jun 2015
Labels Added: ?
avatar Devportobello Devportobello - change - 22 Jun 2015
The description was changed
avatar zero-24 zero-24 - change - 2 Jul 2015
Milestone Added:
avatar zero-24 zero-24 - change - 2 Jul 2015
Milestone Added:
avatar Kubik-Rubik Kubik-Rubik - change - 6 Jul 2015
Milestone Added:
avatar Kubik-Rubik Kubik-Rubik - change - 6 Jul 2015
Milestone Removed:
avatar roland-d roland-d - reference | ed82a74 - 25 Oct 15
avatar roland-d
roland-d - comment - 25 Oct 2015

Thanks everybody. Merged into 3.5-dev with commit ed82a74

avatar roland-d roland-d - change - 25 Oct 2015
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2015-10-25 16:07:00
Closed_By roland-d
avatar roland-d roland-d - close - 25 Oct 2015
avatar joomla-cms-bot joomla-cms-bot - close - 25 Oct 2015
avatar roland-d roland-d - close - 25 Oct 2015
avatar joomla-cms-bot joomla-cms-bot - change - 25 Oct 2015
Labels Removed: ?
avatar Devportobello Devportobello - head_ref_deleted - 26 Oct 2015

Add a Comment

Login with GitHub to post a comment