Skip to content
Snippets Groups Projects
  1. Oct 05, 2018
  2. Oct 03, 2018
  3. Sep 28, 2018
    • Benjamin Bertrand's avatar
      Do not take into account old deferred tasks · 2ed77eb2
      Benjamin Bertrand authored
      A deferred task will remain deferred forever if the task it depends on
      fails. When checking for waiting tasks, we should ignore deferred tasks
      that are too old.
      "Too old" is currently set to 30 minutes. We shouldn't have tasks that
      take that long. We might want to shorten that even a bit (to not block
      new identical tasks to be run) but if a task failed there is probably
      something to be done.
      
      JIRA INFRA-559 #action In Progress
      2ed77eb2
    • Benjamin Bertrand's avatar
      Display hosts with no interface · 05191311
      Benjamin Bertrand authored
      JIRA INFRA-569 #action In Progress
      05191311
    • Benjamin Bertrand's avatar
      Allow to delete hosts and interfaces via the API · 9977c3e7
      Benjamin Bertrand authored
      Add endpoints:
      DELETE /network/hosts/<host_id>
      DELETE /network/interfaces/<interface_id>
      
      JIRA INFRA-570 #action In Progress
      9977c3e7
    • Benjamin Bertrand's avatar
      Add button to delete hosts · f3206d0a
      Benjamin Bertrand authored
      - set cascade to all and delete-orphan to delete interfaces when
        deleting a host
      - button added on the view host page to delete host (admin only)
      
      JIRA INFRA-557 #action In Progress
      f3206d0a
    • Benjamin Bertrand's avatar
      Add button to export items to excel file · 8471ec5b
      Benjamin Bertrand authored
      Retrieving all items from the database takes some time.
      The task is thus handled by the RQ worker.
      We use ajax to periodically monitor the status of the job
      and redirect to the file when ready.
      A progress bar is displayed to let the user see the progress.
      
      The mechanism put in place could be re-used for other use cases.
      
      JIRA INFRA-545 #action In Progress
      8471ec5b
    • Benjamin Bertrand's avatar
      Implement alert flashing from javascript · eced4c36
      Benjamin Bertrand authored
      JIRA INFRA-545
      eced4c36
    • Benjamin Bertrand's avatar
      Update DataTables with bootstrap 4 theme · ddbfdcc5
      Benjamin Bertrand authored
      Included libraries:
      - DataTables 1.10.18 (with bootstrap 4 theme)
      - Buttons 1.5.2
      - Column visibility 1.5.2
      - Print view 1.5.2
      
      JIRA INFRA-545
      ddbfdcc5
  4. Sep 21, 2018
  5. Sep 20, 2018
  6. Sep 14, 2018
  7. Sep 13, 2018
  8. Aug 21, 2018
  9. Aug 08, 2018
    • Benjamin Bertrand's avatar
      Replace jwt decorators with flask-login · fb3f568e
      Benjamin Bertrand authored
      Using flask-login request_loader, we can validate jwt tokens.
      This allows to use the same decorators for the web UI (using cookies)
      and the API (using JWT) as well as the current_user local proxy.
      fb3f568e
  10. Aug 02, 2018
    • Benjamin Bertrand's avatar
      Remove flask-bootstrap dependency · 7c98683d
      Benjamin Bertrand authored
      The official flask-bootstrap is still not compatible with bootstrap 4.
      The application basically only uses the main template and one macro.
      It's easier to include directly bootstrap in CSEntry.
      It makes upgrading to the latest bootstrap much easier and removes a
      dependency.
      
      Update to bootstrap 4.1.3
      
      Added:
      - jquery-3.3.1.min.js
      - bootstrap.bundle.min.js (include popper but not jquery)
      
      Note that jquery.slim can't be used.
      We need for example $.getJSON for datatables.
      7c98683d
  11. Aug 01, 2018
  12. Jul 31, 2018
  13. Jul 27, 2018
  14. Jul 19, 2018
  15. Jul 17, 2018
  16. Jul 13, 2018
  17. Jul 12, 2018
  18. Jul 11, 2018
  19. Jul 09, 2018
    • Benjamin Bertrand's avatar
      Use sqlalchemy events hook to trigger tasks · d9516a98
      Benjamin Bertrand authored
      Use the before_flush hook to trigger the core services update.
      It's much nicer than having to call a method in several places.
      
      The core services update is triggered on creation/modification/deletion
      of an Interface.
      
      In the before_flush we can manipulate the session (add objects) but we
      shouldn't call commit.
      The db.session.commit() was removed from the launch_task method.
      d9516a98
  20. Jul 06, 2018
Loading