The SIO2 project
  1. The SIO2 project
  2. SIO-2442

500 error when editing multilanguage news in newsfeed

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Current Version
    • Fix Version/s: None
    • Component/s: OIOIOI
    • Labels:

      Description

      Details are on sentry:

      https://sentry.io/organizations/the-sio2-project/issues/2468677411/events/6ccfc92789eb42a0893afab164cb3ed4/?project=116859

      To reproduce:
      1. Create news and add translation to it
      2. Save news
      3. Edit news
      4. On save 500 error is thrown

        Activity

        Michalina Sidor made changes -
        Field Original Value New Value
        Labels tag1
        Mieszko Grodzicki made changes -
        Assignee Mieszko Grodzicki [ mgrodzicki ]
        Mieszko Grodzicki made changes -
        Status New [ 10000 ] Open [ 1 ]
        Hide
        Gerrit Gerrit added a comment -
        Change oioioi~master~I40542c693cd0bb4856ed63b65e4a24e6f7a0e086, patchset 1
        https://gerrit.sio2project.mimuw.edu.pl/3797

        SIO-2442 Fix multilanguage news edit error

        Fix NewsLanguageVersion.save() method so that
        it is possible to edit existing NewsLanguageVersion.

        Strengthen newsfeed tests:
         - fix test_news_edit, as it was sending form with
        incorrect id and not editing anything,
         - make all tests in TestNewsfeedOptions check whether
        sending the form results in redirection to newsfeed main
        page (which means change was successful).

        Change-Id: I40542c693cd0bb4856ed63b65e4a24e6f7a0e086
        Show
        Gerrit Gerrit added a comment - Change oioioi~master~I40542c693cd0bb4856ed63b65e4a24e6f7a0e086, patchset 1 https://gerrit.sio2project.mimuw.edu.pl/3797 SIO-2442 Fix multilanguage news edit error Fix NewsLanguageVersion.save() method so that it is possible to edit existing NewsLanguageVersion. Strengthen newsfeed tests:  - fix test_news_edit, as it was sending form with incorrect id and not editing anything,  - make all tests in TestNewsfeedOptions check whether sending the form results in redirection to newsfeed main page (which means change was successful). Change-Id: I40542c693cd0bb4856ed63b65e4a24e6f7a0e086
        Mieszko Grodzicki made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Mieszko Grodzicki [ mgrodzicki ] Wojciech Dubiel [ wolf480 ]
        Resolution Fixed [ 1 ]
        Mieszko Grodzicki made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Wojciech Dubiel [ wolf480 ] Mieszko Grodzicki [ mgrodzicki ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        New New Open Open
        189d 23h 4m 1 Mieszko Grodzicki 2021-12-28 18:51
        Open Open Resolved Resolved
        12d 2h 50m 1 Mieszko Grodzicki 2022-01-9 21:42
        Resolved Resolved Closed Closed
        33m 4s 1 Mieszko Grodzicki 2022-01-9 22:15

          People

          • Assignee:
            Mieszko Grodzicki
            Reporter:
            Paweł Dietrich
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: