Uploaded image for project: 'Student Success Plan'
  1. Student Success Plan
  2. SSP-1790

Unpredictable MAP term grid contents when more than 20 records in external_term

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: SSP 2.0.0, SSP 2.1.0, SSP 2.0.1
    • Fix Version/s: SSP 2.1.0, SSP 2.0.1
    • Component/s: External Data, MAP
    • Labels:
      None

      Description

      Observed in the field... a deployer has 250+ records in the external_term table and the end result is a single, seemingly random "semester panel" in the MAP UI. This happens because the client-side selection of current and future terms relies on the "main" term store having loaded all terms into memory, which it typically hasn't (just has the first page). So if you have more than 20 terms in the db and the first page of results doesn't include the "current" term, the results are effectively unpredictable. Through what amounts to an accident of logic, the UI picks the "first" term on the first result page, where "first" could mean any number of things depending on how server- and client-side sorts were applied.

      The short term fix is going to be to load all terms into the term store. The long term fix should be to delegate lookup of current and future terms to the server, even if just because date-based calculations on the client side are always a bad idea. But more generally to ensure the calculation logic is always consistent.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dmccallum Dan McCallum
                Reporter:
                dmccallum Dan McCallum
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: