Skip to content

Conversation

@jerry-peng
Copy link
Contributor

@jerry-peng jerry-peng commented Jun 19, 2018

fixes issue #656
Tested on: Chrome, Firefox, Safari (desktop & iphone), Edge

Changes in this PR.

  • Cleanup the javascript codes so it makes more sense
  • Fixed the bug where site redirects itself 2 times
  • Added code so the url is properly constructed and pushed to broswer history
  • Added code so that clicking "back" button in browser will trigger datasheets/gallery page number to change.

Testing this PR.

  1. Go to site page

  2. Go to a site with a lot of datasheet and gallery data (might need to manually add them)

  3. Click on the page number for both datasheet and gallery, and check the url in the browser. Make sure the change according to the page number clicked.
    Important: The url parameter should be: "..../site_name/?datasheet={1}&gallery={2}" where {1} is the datasheet page number, and {2} is gallery page number. For each parameter in the url (datasheet/gallery), if the page number is 1, it should not appear.

  4. Click "back" or "forward" button on browser repeatedly, make sure the page number you clicked are stored in history.

  5. Manually input a test url to that specific site into browser, with different page numbers for each parameter (Make sure to test page numbers that are out of range). If the page number is out of range in url, the datasheet/gallery table page should load page number 1.

  6. Make sure the rest of the page's functionality are not affected.

Expected Output.

  1. The url changes according to the page number clicked.
  2. Clicking "back" "forward" button in browser, the page number are stored and works properly.
  3. Manually inputting url with invalid page number, and the page numbers are not affected and page number 1 is highlighted.
$ make test
[... test output ...]

@osuosl/devs

Tan and others added 30 commits January 3, 2018 15:27
CarvellWakeman and others added 22 commits February 8, 2018 12:36
This adds support for https://sentry.io so that we can manage our application
errors in a more sane fashion. For it to actually work, you need to setup
projects on an account which we'll do on the OSL side. But for general
development this doesn't require anything.

You will need to rebuild your web docker image to test and use this since we
import the raven (Sentry's python library) in settings.py.
Fix water quality graphing code (specifically data filtering)
Fixes Server 500 when school is deleted
removed educator kits and upload resource
Edge pages now display gallery and datasheets, drop downs work
Changed code to calculate sample averages
Fixed side scrolling issues on site details (affects laptops as well)
@jerry-peng jerry-peng requested a review from hertelc June 19, 2018 19:15
@jerry-peng jerry-peng assigned ramereth and unassigned ramereth Jun 19, 2018
@jerry-peng jerry-peng requested a review from ramereth June 19, 2018 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants