Details

    • Type: Sub-task Sub-task
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: TAG 2018/19 Sprint 2
    • Fix Version/s: None
    • Component/s: OIOIOI
    • Labels:

      Description

      Direct assignment to many-to-many relation is deprecated in Django 1.10.
      This breaks one of the portals' fixtures. Because we are not planning to upgrade Django any time soon, this issue is meant to address this deprecation only in the following fixture: oioioi/portals/fixtures/test_portals.json

      Docs: https://docs.djangoproject.com/en/2.1/releases/1.10/#direct-assignment-to-a-reverse-foreign-key-or-many-to-many-relation

        Activity

        Hide
        Gerrit Gerrit added a comment -
        Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 6
        https://gerrit.sio2project.mimuw.edu.pl/3211

        (no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors

        In the earlier similar commit class PendingDeprecationWarning was
        not added to the list warning --> error (did not generated an error),
        but it is now.
        Additionally, new exceptions were added and appropriate
        Jira issues were created:

        SIO-2155 Set the app_name attribute in urls modules strikes back
        SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version
        SIO-2234 Change use of User.is_authenticated() and User.is_anonymous() methods
        SIO-2235 Fix test_portals.json fixture

        Added exception for 'on_delete' warnings generated by external packages.

        Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
        Show
        Gerrit Gerrit added a comment - Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 6 https://gerrit.sio2project.mimuw.edu.pl/3211 (no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors In the earlier similar commit class PendingDeprecationWarning was not added to the list warning --> error (did not generated an error), but it is now. Additionally, new exceptions were added and appropriate Jira issues were created: SIO-2155 Set the app_name attribute in urls modules strikes back SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version SIO-2234 Change use of User.is_authenticated() and User.is_anonymous() methods SIO-2235 Fix test_portals.json fixture Added exception for 'on_delete' warnings generated by external packages. Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
        Hide
        Gerrit Gerrit added a comment -
        Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 7
        https://gerrit.sio2project.mimuw.edu.pl/3211

        (no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors

        In the earlier similar commit class PendingDeprecationWarning was
        not added to the list warning --> error (did not generated an error),
        but it is now.
        Additionally, new exceptions were added and appropriate
        Jira issues were created:

        SIO-2155 Set the app_name attribute in urls modules strikes back
        SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version
        SIO-2234 Change use of User.is_authenticated() and User.is_anonymous() methods
        SIO-2235 Fix test_portals.json fixture

        Added an exception for warnings generated by external packages.

        Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
        Show
        Gerrit Gerrit added a comment - Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 7 https://gerrit.sio2project.mimuw.edu.pl/3211 (no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors In the earlier similar commit class PendingDeprecationWarning was not added to the list warning --> error (did not generated an error), but it is now. Additionally, new exceptions were added and appropriate Jira issues were created: SIO-2155 Set the app_name attribute in urls modules strikes back SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version SIO-2234 Change use of User.is_authenticated() and User.is_anonymous() methods SIO-2235 Fix test_portals.json fixture Added an exception for warnings generated by external packages. Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
        Hide
        Gerrit Gerrit added a comment -
        Change oioioi~master~Ic96d65f7ff9c79a8915e2ea0185252e589001492, patchset 1
        https://gerrit.sio2project.mimuw.edu.pl/3213

        (SIO-2235) Fix test_portals.json fixture

        Change-Id: Ic96d65f7ff9c79a8915e2ea0185252e589001492
        Show
        Gerrit Gerrit added a comment - Change oioioi~master~Ic96d65f7ff9c79a8915e2ea0185252e589001492, patchset 1 https://gerrit.sio2project.mimuw.edu.pl/3213 ( SIO-2235 ) Fix test_portals.json fixture Change-Id: Ic96d65f7ff9c79a8915e2ea0185252e589001492
        Hide
        Gerrit Gerrit added a comment -
        Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 8
        https://gerrit.sio2project.mimuw.edu.pl/3211

        (no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors

        In the earlier similar commit class PendingDeprecationWarning was
        not added to the list warning --> error (did not generated an error),
        but it is now.
        Additionally, new exceptions were added and appropriate
        Jira issues were created:

        SIO-2155 Set the app_name attribute in urls modules strikes back
        SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version
        SIO-2235 Fix test_portals.json fixture

        Added an exception for warnings generated by external packages.

        Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
        Show
        Gerrit Gerrit added a comment - Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 8 https://gerrit.sio2project.mimuw.edu.pl/3211 (no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors In the earlier similar commit class PendingDeprecationWarning was not added to the list warning --> error (did not generated an error), but it is now. Additionally, new exceptions were added and appropriate Jira issues were created: SIO-2155 Set the app_name attribute in urls modules strikes back SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version SIO-2235 Fix test_portals.json fixture Added an exception for warnings generated by external packages. Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
        Hide
        Gerrit Gerrit added a comment -
        Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 9
        https://gerrit.sio2project.mimuw.edu.pl/3211

        (no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors

        In the earlier similar commit class PendingDeprecationWarning was
        not added to the list warning --> error (did not generated an error),
        but it is now.
        Additionally, new exceptions were added and appropriate
        Jira issues were created:

        SIO-2155 Set the app_name attribute in urls modules strikes back
        SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version
        SIO-2235 Fix test_portals.json fixture

        Added an exception for warnings generated by external packages.

        Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef
        Show
        Gerrit Gerrit added a comment - Change oioioi~master~I5811b92c9294f2d87d61bc70d672dcaf4e5dacef, patchset 9 https://gerrit.sio2project.mimuw.edu.pl/3211 (no-ticket) Fix pytest.ini so that it treats all new deprecation warnings as errors In the earlier similar commit class PendingDeprecationWarning was not added to the list warning --> error (did not generated an error), but it is now. Additionally, new exceptions were added and appropriate Jira issues were created: SIO-2155 Set the app_name attribute in urls modules strikes back SIO-2233 Adapt old-style settings.MIDDLEWARE_CLASSES to the new version SIO-2235 Fix test_portals.json fixture Added an exception for warnings generated by external packages. Change-Id: I5811b92c9294f2d87d61bc70d672dcaf4e5dacef

          People

          • Assignee:
            Szymon Acedański
            Reporter:
            Marek Żochowski
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: