1. 15 Mar, 2021 2 commits
  2. 13 Mar, 2021 2 commits
    • Einar Uvsløkk's avatar
      Fix error in workout permissions · 7b0c8ee6
      Einar Uvsløkk authored
      During black box testing of FR5 (View Workout) an error related to
      workout permissions was discovered. Due to using wrong values when
      checking Coach visibility on workouts, coaches was not able to view
      workout details for their athletes.
      
      Unit tests are also updated to reflect the changes.
      7b0c8ee6
    • Einar Uvsløkk's avatar
      Add black box test for FR5 · ae8f0085
      Einar Uvsløkk authored
      Implement black box test for FR5 "View Workout" using Selenium.
      ae8f0085
  3. 11 Mar, 2021 3 commits
  4. 09 Mar, 2021 8 commits
  5. 07 Mar, 2021 1 commit
  6. 06 Mar, 2021 4 commits
  7. 05 Mar, 2021 5 commits
    • Einar Uvsløkk's avatar
      Merge branch 'fix-pipeline' into 'master' · ba3a07be
      Einar Uvsløkk authored
      Make the pg_config available on test image
      
      See merge request !5
      ba3a07be
    • Einar Uvsløkk's avatar
      6ce1de53
    • Einar Uvsløkk's avatar
      Use psycopg2-binary to avoid building from source · aecc0b46
      Einar Uvsløkk authored
      The psycopg2 requirement got included in the requirements.txt file when
      django-heroku was added in commit 1667ceda, which in turn broke the CI
      pipeline.
      aecc0b46
    • Einar Uvsløkk's avatar
      Setup continuous deployment to heroku · 1667ceda
      Einar Uvsløkk authored
      - Use django-heroku to configure backend for heroku
      - Use dj-database-url to configure database with DATABASE_URL
      - Add Procfile for backend
      - Add requirements.txt to repo root for heroku/python build
      - Move runtime.txt to repo root
      - Add Procfile for frontend
      - Add package.json to repo root for heroku/nodejs build
      1667ceda
    • Einar Uvsløkk's avatar
      Fix invalid start byte in requirements.txt · 908dc731
      Einar Uvsløkk authored
      Using pipenv to install dependencies from requirements.txt resulted in
      the following error (pipenv install -r requirements.txt):
      
          Unexpected syntax in …/requirements.txt.
          Are you sure this is a requirements.txt style file?
          'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
      
      Turns out the encoding of the file got messed up somehow!?
      The invalid start byte is caused by the <feff> character.
      Running file requirements.txt reveals:
      
          requirements.txt: Little-endian UTF-16 Unicode text, with CRLF line terminators
      
      Fixed by running:
      
          iconv -f utf-16 -t utf-8 requirements.txt -o requirements.txt.new
          dos2unix requirements.txt.new
          mv requirements.txt.new requirements.txt
      908dc731
  8. 04 Mar, 2021 4 commits
  9. 03 Mar, 2021 5 commits
    • Einar Uvsløkk's avatar
      35718bdf
    • Einar Uvsløkk's avatar
      Add option to filter high scores on exercises · cf8e3b8d
      Einar Uvsløkk authored
      It is now possible to filter the high score list on exercise types using
      a query parameter in the api call.
      cf8e3b8d
    • Einar Uvsløkk's avatar
      862f13ca
    • Einar Uvsløkk's avatar
      34451ee8
    • Andreas N. Digernes's avatar
      Frontend Feature Highscore · c98aef2c
      Andreas N. Digernes authored
      Created a html page for highscores.
      It renders a container with a title and a description, and a list of highscores.
      It also has a template for rendering highscore components to the list.
      
      Added new javascript file, highscores.js.
      It adds an event listener to the window, which triggers when DOM is fully loaded.
      The event listener fetches all highscores and renders all highscores stored.
      If response is not successfull, a feedback is displayed to the user.
      
      The function fetchHighscores sends a request to the api enpoint highscores.
      If response is successfull, a component from the highscore template is rendered with highscore information.
      
      Added a line in navbar.js, rendering a button on the navigation bar redirecting the user to highscore view.
      
      Added a new statement to updateNavBar function in scripts.js.
      The statement checks if the browser window has a pathname for highscores.html, and activates the link redirecting to the page if it exists.
      If user is authenticated, the css class hide is removed from the DOM element.
      
      Added some new styles to style.css used to design highscore.html view.
      c98aef2c
  10. 02 Mar, 2021 6 commits