1. 26 Jun, 2018 2 commits
    • BAIRE Anthony's avatar
      render the job status with a template filter · f87d9f4c
      BAIRE Anthony authored
      This makes much less code (and possibly less bugs!)
      
      Also I did two other changes:
      
      - removed the "result" field from the template and use the 'status'
        field instead. Actually the status is what we display to the user (the
        'state' and 'result' fields are internal to allgo).
      
        The status is the textual representation of:
        - the 'result' field if the job is terminated (success, error, timeout
          or aborted)
        - the 'state' field otherwise (new, waiting, running, aborting)
      
      - changed the colors of the waiting and timeout state
        - waiting:  orange -> yellow
        - timeout:  yellow -> orange
        The rationale is that 'waiting' is a more normal state than
        'timeout' (thus the timeout color should be closer to red)
      
      - introduce a separate icon for the 'aborting' state (orange fa-play)
      f87d9f4c
    • BERJON Matthieu's avatar
      Bug fix: webapp detail missing filter · 96e19513
      BERJON Matthieu authored
      There was the django `static` filter missing because it's called into
      the template to load the javascript bit for the tooltip display.
      
      See also: #187
      
      Signed-off-by: BERJON Matthieu's avatarMatthieu Berjon <matthieu.berjon@inria.fr>
      96e19513
  2. 25 Jun, 2018 3 commits
  3. 22 Jun, 2018 6 commits
  4. 21 Jun, 2018 2 commits
  5. 20 Jun, 2018 22 commits
  6. 19 Jun, 2018 5 commits
    • BAIRE Anthony's avatar
      55c953a1
    • BERJON Matthieu's avatar
      Bug fix: OAuth2 registration · 3b75ebbb
      BERJON Matthieu authored
      The Oauth registration was buggy for several reasons. The links used in the templates were the wrong one inhibiting the correct behaviour.
      The site ID configuration was wrong. This part is fixed by updating the migration script. The current system needs at least to have the `ALLGO_SITE_ID`
      set up corresponding to the actual URL of the website (http://localhost:<PORT> in development https://allgo.inria.fr in production.
      The `ACCOUNT_USERNAME_VALIDATORS` was raising an error on the Oauth registration and has been removed. No known bug were introduced by doing that.
      
      The login and signup templates have been rewritten in order to have a smoother and nicer integration in the current website. Moreover, the
      focus has been made on the OAuth registration (that's what users see first).
      
      The user admin part has been modified in order to display the possibility to change the password in case the user has set up a local account on the service
      or the management of its Oauth connections (redirecting to the `connextions.html` template provided by the django Oauth plugin and integrated in the website.
      3b75ebbb
    • BERJON Matthieu's avatar
      Reading of Redis logs for a specific job · 96741268
      BERJON Matthieu authored
      I added a helper function to extract the job logs for a specific job in the Redis database.
      The function is a copy of another part of the code not merged yet in the master branch.
      
      I updated the view accordingly, added a proper docstring and moved the class in the module to keep the code ordered.
      I updated as well the template to display the data.
      96741268
    • BAIRE Anthony's avatar
      Use auto-generated migrations (instead of storing them in the git repo) · ec6d2baa
      BAIRE Anthony authored
      
      This commit will have to be reverted when we go to production
      ec6d2baa
    • BAIRE Anthony's avatar
      django container_init: initialise the db from scratch · a852c09b
      BAIRE Anthony authored
      This commit removes the calls to the 'migration.sh' script that
      did a full a import of the rails db (rails apps will be imported
      on-demand)
      
      The django db is now initialised from scratch, using the db_seed command
      a852c09b