Skip to content
Snippets Groups Projects

Frontend dependencies moved to npm

Merged Piotr Gawron requested to merge frontend-moved-to-npm into master
5 unresolved threads

This MR move all frontend dependencies into npm dependencies using django-npm module.

Edited by Piotr Gawron

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Piotr Gawron added 1 commit

    added 1 commit

    • 4ee4b380 - problem with collectstatic fixed

    Compare with previous version

  • Piotr Gawron changed the description

    changed the description

  • Piotr Gawron added 1 commit

    added 1 commit

    Compare with previous version

    • I would update the frontend dependencies if possible, npm shows the following:

      found 50 vulnerabilities (6 low, 30 moderate, 14 high)

      run npm audit fix to fix them, or npm audit for details

      In particular:

      npm audit
      
                             === npm audit security report ===
      
      # Run  npm install jquery@3.5.1  to resolve 3 vulnerabilities
      SEMVER WARNING: Recommended action is a potentially breaking change
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ High          │ Cross-Site Scripting (XSS)                                   │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/328                             │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ Moderate      │ Prototype Pollution                                          │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/796                             │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ Moderate      │ Cross-Site Scripting                                         │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/1518                            │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      # Run  npm update jquery --depth 4  to resolve 39 vulnerabilities
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ High          │ Cross-Site Scripting (XSS)                                   │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ datatables.net-bs                                            │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ datatables.net-bs > datatables.net > jquery                  │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/328                             │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ High          │ Cross-Site Scripting (XSS)                                   │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ datatables.net-buttons-bs                                    │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ datatables.net-buttons-bs > datatables.net-bs >              │
      │               │ datatables.net > jquery                                      │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/328                             │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ High          │ Cross-Site Scripting (XSS)                                   │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ datatables.net-buttons                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ datatables.net-buttons > datatables.net > jquery             │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/328                             │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ High          │ Cross-Site Scripting (XSS)                                   │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ datatables.net-buttons-bs                                    │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ datatables.net-buttons-bs > datatables.net-buttons >         │
      │               │ datatables.net > jquery                                      │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/328                             │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ High          │ Cross-Site Scripting (XSS)                                   │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ datatables.net-bs                                            │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ datatables.net-bs > jquery                                   │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/328                             │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ High          │ Cross-Site Scripting (XSS)                                   │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ datatables.net-buttons-bs                                    │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ datatables.net-buttons-bs > datatables.net-bs > jquery       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/328                             │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ High          │ Cross-Site Scripting (XSS)                                   │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ datatables.net-buttons                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ datatables.net-buttons > jquery                              │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/328                             │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ High          │ Cross-Site Scripting (XSS)                                   │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ datatables.net-buttons-bs                                    │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ datatables.net-buttons-bs > datatables.net-buttons > jquery  │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/328                             │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ High          │ Cross-Site Scripting (XSS)                                   │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ datatables.net-buttons-bs                                    │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ datatables.net-buttons-bs > jquery                           │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/328                             │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ High          │ Cross-Site Scripting (XSS)                                   │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ eonasdan-bootstrap-datetimepicker                            │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ eonasdan-bootstrap-datetimepicker > jquery                   │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/328                             │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ High          │ Cross-Site Scripting (XSS)                                   │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ fullcalendar                                                 │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ fullcalendar > jquery                                        │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/328                             │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ High          │ Cross-Site Scripting (XSS)                                   │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ fullcalendar-scheduler                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ fullcalendar-scheduler > fullcalendar > jquery               │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/328                             │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ High          │ Cross-Site Scripting (XSS)                                   │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ fullcalendar-scheduler                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ fullcalendar-scheduler > jquery                              │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/328                             │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ Moderate      │ Prototype Pollution                                          │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ datatables.net-bs                                            │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ datatables.net-bs > datatables.net > jquery                  │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/796                             │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ Moderate      │ Prototype Pollution                                          │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ datatables.net-buttons-bs                                    │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ datatables.net-buttons-bs > datatables.net-bs >              │
      │               │ datatables.net > jquery                                      │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/796                             │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ Moderate      │ Prototype Pollution                                          │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ datatables.net-buttons                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ datatables.net-buttons > datatables.net > jquery             │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/796                             │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ Moderate      │ Prototype Pollution                                          │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ datatables.net-buttons-bs                                    │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ datatables.net-buttons-bs > datatables.net-buttons >         │
      │               │ datatables.net > jquery                                      │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/796                             │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ Moderate      │ Prototype Pollution                                          │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ datatables.net-bs                                            │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ datatables.net-bs > jquery                                   │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/796                             │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ Moderate      │ Prototype Pollution                                          │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ datatables.net-buttons-bs                                    │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ datatables.net-buttons-bs > datatables.net-bs > jquery       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/796                             │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ Moderate      │ Prototype Pollution                                          │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ datatables.net-buttons                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ datatables.net-buttons > jquery                              │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/796                             │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ Moderate      │ Prototype Pollution                                          │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ datatables.net-buttons-bs                                    │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ datatables.net-buttons-bs > datatables.net-buttons > jquery  │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/796                             │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ Moderate      │ Prototype Pollution                                          │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ datatables.net-buttons-bs                                    │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ datatables.net-buttons-bs > jquery                           │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/796                             │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ Moderate      │ Prototype Pollution                                          │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ eonasdan-bootstrap-datetimepicker                            │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ eonasdan-bootstrap-datetimepicker > jquery                   │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/796                             │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ Moderate      │ Prototype Pollution                                          │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ fullcalendar                                                 │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ fullcalendar > jquery                                        │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/796                             │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ Moderate      │ Prototype Pollution                                          │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ fullcalendar-scheduler                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ fullcalendar-scheduler > fullcalendar > jquery               │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/796                             │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ Moderate      │ Prototype Pollution                                          │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ fullcalendar-scheduler                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ fullcalendar-scheduler > jquery                              │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/796                             │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ Moderate      │ Cross-Site Scripting                                         │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ datatables.net-bs                                            │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ datatables.net-bs > datatables.net > jquery                  │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/1518                            │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ Moderate      │ Cross-Site Scripting                                         │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ datatables.net-buttons-bs                                    │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ datatables.net-buttons-bs > datatables.net-bs >              │
      │               │ datatables.net > jquery                                      │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/1518                            │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ Moderate      │ Cross-Site Scripting                                         │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ datatables.net-buttons                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ datatables.net-buttons > datatables.net > jquery             │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/1518                            │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ Moderate      │ Cross-Site Scripting                                         │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ datatables.net-buttons-bs                                    │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ datatables.net-buttons-bs > datatables.net-buttons >         │
      │               │ datatables.net > jquery                                      │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/1518                            │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ Moderate      │ Cross-Site Scripting                                         │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ datatables.net-bs                                            │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ datatables.net-bs > jquery                                   │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/1518                            │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ Moderate      │ Cross-Site Scripting                                         │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ datatables.net-buttons-bs                                    │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ datatables.net-buttons-bs > datatables.net-bs > jquery       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/1518                            │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ Moderate      │ Cross-Site Scripting                                         │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ datatables.net-buttons                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ datatables.net-buttons > jquery                              │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/1518                            │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ Moderate      │ Cross-Site Scripting                                         │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ datatables.net-buttons-bs                                    │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ datatables.net-buttons-bs > datatables.net-buttons > jquery  │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/1518                            │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ Moderate      │ Cross-Site Scripting                                         │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ datatables.net-buttons-bs                                    │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ datatables.net-buttons-bs > jquery                           │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/1518                            │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ Moderate      │ Cross-Site Scripting                                         │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ eonasdan-bootstrap-datetimepicker                            │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ eonasdan-bootstrap-datetimepicker > jquery                   │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/1518                            │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ Moderate      │ Cross-Site Scripting                                         │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ fullcalendar                                                 │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ fullcalendar > jquery                                        │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/1518                            │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ Moderate      │ Cross-Site Scripting                                         │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ fullcalendar-scheduler                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ fullcalendar-scheduler > fullcalendar > jquery               │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/1518                            │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ Moderate      │ Cross-Site Scripting                                         │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ jquery                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ fullcalendar-scheduler                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ fullcalendar-scheduler > jquery                              │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/1518                            │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      # Run  npm update moment --depth 3  to resolve 6 vulnerabilities
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ Low           │ Regular Expression Denial of Service                         │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ moment                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ eonasdan-bootstrap-datetimepicker                            │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ eonasdan-bootstrap-datetimepicker > moment                   │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/532                             │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ Low           │ Regular Expression Denial of Service                         │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ moment                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ eonasdan-bootstrap-datetimepicker                            │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ eonasdan-bootstrap-datetimepicker > moment-timezone > moment │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/532                             │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ Low           │ Regular Expression Denial of Service                         │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ moment                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ fullcalendar                                                 │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ fullcalendar > moment                                        │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/532                             │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ Low           │ Regular Expression Denial of Service                         │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ moment                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ fullcalendar-scheduler                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ fullcalendar-scheduler > fullcalendar > moment               │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/532                             │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ Low           │ Regular Expression Denial of Service                         │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ moment                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ fullcalendar-scheduler                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ fullcalendar-scheduler > moment                              │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/532                             │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ Low           │ Regular Expression Denial of Service                         │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ moment                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ moment                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ moment                                                       │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/532                             │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      # Run  npm update bootstrap --depth 2  to resolve 2 vulnerabilities
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ Moderate      │ Cross-Site Scripting                                         │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ bootstrap                                                    │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ bootstrap                                                    │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ bootstrap                                                    │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/891                             │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      ┌───────────────┬──────────────────────────────────────────────────────────────┐
      │ Moderate      │ Cross-Site Scripting                                         │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Package       │ bootstrap                                                    │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Dependency of │ eonasdan-bootstrap-datetimepicker                            │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ Path          │ eonasdan-bootstrap-datetimepicker > bootstrap                │
      ├───────────────┼──────────────────────────────────────────────────────────────┤
      │ More info     │ https://npmjs.com/advisories/891                             │
      └───────────────┴──────────────────────────────────────────────────────────────┘
      
      
      found 50 vulnerabilities (6 low, 30 moderate, 14 high) in 155 scanned packages
        run `npm audit fix` to fix 47 of them.
        3 vulnerabilities require semver-major dependency updates.
      Edited by Carlos Vega
    • I'm aware of that but I would be really careful here. First, I want to make it work.

      To get rid of those warnings quite often you need to change major version and they become incompatible with other libraries. We have no tests for frontend and if you change library like jquery that is included in every template you might need to test every single page that uses javascript.

    • Please register or sign in to reply
    • Very important, there is an error in migration 0190_remove_study_related_fields.py, it raises django.db.utils.DataError: value too long for type character varying(20). The migration to apply that change happens after this other migration, in migration 0192_auto_20201207_0956.py.

      Also, the migration 0190 uses default property for CustomStudySubjectField instead of default_value.

      Not sure how this has passed the CI :worried:

    • Good catch - I will fix it.

      You upgraded postgres database with subjects in it - it would happen in all current productions.

    • Exactly, I think it will happen in all current productions.

    • Please register or sign in to reply
  • Carlos Vega assigned to @piotr.gawron and unassigned @carlos.vega

    assigned to @piotr.gawron and unassigned @carlos.vega

  • Piotr Gawron added 3 commits

    added 3 commits

    • 57dd2887 - length of the custom study name must be longer from the beginning
    • 288d4eab - NPM_ROOT_PATH added to local_settings template
    • 47dc2783 - styling to hide hidden button in 2FA

    Compare with previous version

  • Piotr Gawron enabled an automatic merge when the pipeline for 47dc2783 succeeds

    enabled an automatic merge when the pipeline for 47dc2783 succeeds

  • Piotr Gawron mentioned in commit 58b12691

    mentioned in commit 58b12691

  • merged

Please register or sign in to reply
Loading