Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lazy loading #77

Merged
merged 13 commits into from
Dec 23, 2019
Merged

Lazy loading #77

merged 13 commits into from
Dec 23, 2019

Commits on Nov 11, 2019

  1. Perform AJAX request for classes+assignments separately from table init

    Instead of using Tabulator to perform the AJAX request that gets the
    data to populate tableData, perform the AJAX request separately and
    update the table. This will make it easier to perform separate AJAX
    requests as each term (Q1, Q2, Q3, Q4) is requested.
    psvenk committed Nov 11, 2019
    Configuration menu
    Copy the full SHA
    c7dcda2 View commit details
    Browse the repository at this point in the history

Commits on Dec 18, 2019

  1. Configuration menu
    Copy the full SHA
    41f1354 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    be114fb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d4590ce View commit details
    Browse the repository at this point in the history
  4. Add /schedule endpoint and factor out schedule code

    1) The schedule-scraping has been commented out of scrape_student in
    scrape.js, instead exporting scrape_schedule directly.
    2) A new endpoint, '/schedule', has been declared in serve.js, from which
    the schedule can be retrieved as JSON (because it is no longer included
    in the JSON file from /data).
    3) The JavaScript in home.html now performs the schedule request separately
    with a separate callback function, and clock.js no longer assumes
    that tableData.schedule must exist if tableData exists.
    
    A similar treatment will be given to other components that are scraped
    until the loading has become sufficiently modular (lazy loading)
    to make it feasible to retrieve data from past terms and to extend
    Aspine in other ways in the future.
    psvenk committed Dec 18, 2019
    Configuration menu
    Copy the full SHA
    4866e80 View commit details
    Browse the repository at this point in the history
  5. Add /pdf endpoint and factor out PDF code

    Same as previous commit, but with the PDF files (Reports tab).
    psvenk committed Dec 18, 2019
    Configuration menu
    Copy the full SHA
    6436678 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    51cdbe6 View commit details
    Browse the repository at this point in the history

Commits on Dec 19, 2019

  1. Configuration menu
    Copy the full SHA
    9a56685 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    84a8025 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1463797 View commit details
    Browse the repository at this point in the history
  4. Making sure to merge tableData with /data response rather than overwr…

    …iting it. This fixes the problem where tableData already contains information, for example pdf_files, which are then erased when /data does 'tableData = response'. This would occur when a user immediately navigates to the 'Reports' page before /data has the chance to complete.
    Ruborcalor committed Dec 19, 2019
    Configuration menu
    Copy the full SHA
    f806e56 View commit details
    Browse the repository at this point in the history
  5. making sure mostRecentActivity table is sized correctly in the case t…

    …hat /data returns while the user is on a different tab
    Ruborcalor committed Dec 19, 2019
    Configuration menu
    Copy the full SHA
    d3382ab View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    fbc8061 View commit details
    Browse the repository at this point in the history