•  
      request #9922 [Validation 9.4] Regression on news submission
    Infos
    #9922
    Manuel Vacelet (vaceletm)
    2017-02-15 14:03
    2017-02-01 11:41
    10212
    Details
    [Validation 9.4] Regression on news submission

    When I create a news in my project, I can no longer access it afterward because the link as no ID eg:

    https://c6.valid.enalean.com/forum/forum.php?forum_id=0&group_id=479

    This was introduced by gerrit #7329

    Forums
    development
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Nouha Terzi (terzino), marouane baini (bainim)
    Stage
    Empty
    Closed
    2017-02-01
    Attachments
    References

    Follow-ups

    User avatar

    Please ask for review using the regular process (internal review at ST, publish + review ques), there are to much reviews for us to manage drafts for each and every change.

    User avatar
    marouane baini (bainim)2017-02-15 10:22
    Hello Manuel,
    I tried to fix the issue by adding the missing argument and i published a draft.
    Thank you for your revue.
    With my Best regards,
    Marouane.
    User avatar
    marouane baini (bainim)2017-02-13 12:18
    Hello Manuel,
    I modified the code after your last comment by changing $GLOBALS['...'] and i published a draft
    Thank you for your revue.
    With my Best regards,
    Marouane.
    User avatar

    Hello Marouane,

    That sounds good. I quickly saw the code and that looks OK (FYI, we prefer to use ForgeConfig::get('..') to access configuration variable rather than legacy $GLOBALS['...'].

    You can publish your draft and ask the review.

    User avatar
    marouane baini (bainim)2017-02-10 17:59
    Hello Manuel,

    After your last comments on the request #9822: Hide forum privacy radio buttons for private projects (gerrit https://gerrit.tuleap.net/#/c/7568/)

    i tried to fix the issue by applying a second condition on the forum creation to check whether the forum introduced is for news or not.
    this param reside in local.inc and is defined so there'll be no harm checking on it in the forum creation.

    Well it's up to you ><, i tried to introduce the visible solutions.

    With my Best regards,
    Marouane.
    User avatar

    Hello Marouane,

    We tend to avoid flag parameters (https://martinfowler.com/bliki/FlagArgument.html) but it really depends of the qualify of the code you are modifying (and here you are in one of the worst part of Tuleap...). Do you have a draft you can share so we can see if there is a better alternative ?

    User avatar
    marouane baini (bainim)2017-02-02 12:26
    last edited by: marouane baini (bainim) 2017-02-02 12:43
    Hello Manuel,

    We changed the params sent by the news (privacy one), cause the forum and the news use the same method for their creation.
    to bypass this issue i added a boolean flag which i pass as parameter to make the difference between forum and news.

    if you want i can create a new method for news but i'll have to duplicate some code in order to do it.

    it's up to you.

    waiting for your response.

    Best regards,
    Marouane.
    User avatar
    Thomas Gerbet (tgerbet)2017-02-01 14:46
    To be able to release Tuleap 9.4 without this regression, a revert of the original contribution is under review (gerrit #7563). The original contribution should be reworked and proposed again to review once this issue is properly fixed.

    • Status changed from New to Verified
    User avatar

    Marouane,

    Are you able to fix that today or do we need to pull-out the patch from 9.4 ?