aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2020-04-14Merge "Add user + user list to API"Parker Berberian15-86/+195
2020-04-14Add user + user list to APISawyer Bergeron3-1/+35
Change-Id: I15cf0c33b9d452fda47f97e3d9b43e00c1bf9bfd Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2020-03-17fixed bug in make_serverAdam Hassick1-2/+1
Change-Id: I4467d22dfa92282523bf65af641677f08842345b Signed-off-by: Adam Hassick <ahassick@iol.unh.edu>
2020-03-17Merge "Quick Deploy Fixes." into resourceSawyer Bergeron11-81/+154
2020-03-17Quick Deploy Fixes.Parker Berberian11-81/+154
Change-Id: I46d410af62e4962d235346ba56472aaacb9d3ff2 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2020-03-16Test resource templates now use the same lab as the image generated ↵Adam Hassick1-1/+1
alongside it. Signed-off-by: Adam Hassick <ahassick@iol.unh.edu> Change-Id: I22ce80b4d162dd31dc3bd2ff2bd7ee30d474a0dd (cherry picked from commit 064f145f218385a6401fa6be2ccbbc462e915c26)
2020-03-16Merge "Fix Query in api MakeHardwareConfig" into resourceSawyer Bergeron1-1/+1
2020-03-16Fix Server Interface MigrationParker Berberian1-1/+4
Before, the relation between host and interface was being lost Change-Id: I347ac71d7667adcedd2deea03edde155895e6a23 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2020-03-16Merge "Fixed a few bugs for the stats functions and created a few tests."Parker Berberian3-40/+104
2020-03-16Fixed a few bugs for the stats functions and created a few tests.Sean3-40/+104
Signed-off-by: Sean <ssmith@iol.unh.edu> Change-Id: I2e4598811bddabe5b7447c3a92d39d16acb77a03 Signed-off-by: Sean <ssmith@iol.unh.edu>
2020-03-16Merge "Test resource templates now use the same lab as the image generated ↵Parker Berberian32-864/+1271
alongside it."
2020-03-16Test resource templates now use the same lab as the image generated ↵Adam Hassick1-1/+1
alongside it. Signed-off-by: Adam Hassick <ahassick@iol.unh.edu> Change-Id: I22ce80b4d162dd31dc3bd2ff2bd7ee30d474a0dd
2020-03-16Fix Query in api MakeHardwareConfigParker Berberian1-1/+1
Change-Id: I9ced78e73f49343bcb41b8e0de25d8b0223b14bd Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2020-03-16Fixing and adding tests for the new resource models.Parker Berberian4-154/+98
Change-Id: I4dd0569411b415a3e8a8de43d4b99e927e5b7821 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2020-03-12Add akraino template for dashboardAdam LeBlanc11-6/+99
Signed-off-by: Adam LeBlanc <aleblanc@iol.unh.edu> Change-Id: I02242e00779bcae7cd7622c2e891e4199c8d0e71 Signed-off-by: Adam LeBlanc <aleblanc@iol.unh.edu>
2020-02-27Improve Data MigrationParker Berberian8-157/+146
Improved migration files so that they preserve data Change-Id: I53283fd3fd207ed3f9773beea7b1ce2062b5bd9f Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2020-02-21Update Docs for new development workflowParker Berberian2-2/+4
The new development workflow spawns a server at port 8000 and requires DEBUG to be True. Change-Id: I430b163b4847fbbdc147b2e6b707409e7220e40d Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2020-02-20Add Migration FilesParker Berberian4-0/+538
Adds migration files with some custom logic to accompany the refactoring in resource_inventory. Change-Id: Id3b3e46913c1f9a102426a5c33d7a282f46e8b28 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2020-02-17js: use npm instead of bowerJeremy Plsek84-2260/+160
Bower is considered deprecated, so switch to npm. - Update all dependencies - Use npm's version of mxgraph - Use npm's version of jquery - Use npm's version of plotly - Fix mxgraph to use styles and images from the correct location - Removed random csrf token input in nav bar and use js to get csrf token - Remove all calendar and some resource files since they were not used Change-Id: I30d6bd91cded9547caa4c0a5247cd9f214fe9798 Signed-off-by: Jeremy Plsek <jplsek@iol.unh.edu>
2020-02-13Fix ImportsParker Berberian16-86/+104
Fixes stale import statements. The dashboard can now come up and we can run our unit tests Change-Id: I7189afb2cd37aaa2492de065c236b6aa9a35de5b Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2020-02-12Modifies Resource Models for ongoing refactorParker Berberian11-608/+526
Change-Id: Ice88f53135f57aca8e2de4d69274e7d490f981a4 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2020-02-10Add getInterface() to Resource APIParker Berberian1-0/+10
Change-Id: I714b6054bfc199d55de9619672768f8fc1355747 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2020-02-06Merge "Fix booking errors"Parker Berberian2-2/+11
2020-02-06Merge "Updates Interface Models"Parker Berberian1-1/+1
2020-02-06Merge "Comments and Documentation"Parker Berberian42-144/+389
2020-02-04Updates Interface ModelsParker Berberian1-1/+1
Removes a redundant name field and adds an explicit ForeignKey mapping between Interface and InterfaceProfile Change-Id: I3472ef53b889d8d5557e4f083a15940c2022877d Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2020-01-30Adds Template OverridesParker Berberian66-9/+57
Changes the structure of the template directories to allow a new project to define their own set of override templates that inherit from a common base. I have slightly modified landing.html here as an example. In comming changes we will try to move all the "laas" specific content into the laas directory Change-Id: I46151be182de901f870debb247b305ea34ae77ba Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2020-01-30Fix booking errorsBrandon Lo2-2/+11
This implements Host model's "release" method and replaces an instance of Network to PhysicalNetwork. Change-Id: I99b0bedbde2dcd63411cbb1fbf9b4905fc9570b1 Signed-off-by: Brandon Lo <lobrandon1217@gmail.com>
2020-01-28Comments and DocumentationParker Berberian42-144/+389
This change adds a ton of comments and documentation across all the code. Change-Id: Ifee0a2f534e8584f14b0f13af4dda8dc70eb7553 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2020-01-28Begin Resource RefactorParker Berberian13-142/+253
Begins the Resource Refactor by creating new interfaces to the resources through a Resource super class and using that new interface in the api Change-Id: I15a8179bfe915d2cde6d658d056e11cbd2c70e43 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-12-19style: make more consistent stylesJeremy Plsek24-648/+614
- Fix indentation in places - User settings have better labels - Lab info title now the same as others - Add "empty" sections to be more helpful to the user. They are not using links, since most of the "workflow" is handled by javascript. - Update padding in places to better line up with other elements - Add padding to bootstrap notifications (add check for messages to not just have random padding on the top of the page) - Remove unnecessary text in a form - Remove card-body from table-only or list-only cards (lists and tables are now flush with cards) - Add bg-danger to not-working hosts - Replace True/False text shown to the user with Yes/No - Remove ":" from some headers - Vertical buttons are now in a button group - Add pre-wrap class to avoid pre from breaking box sizing on the booking detail page - Reduce table indent in pod card and add table overflow scrollbar Signed-off-by: Jeremy Plsek <jeremyplsek@gmail.com> Change-Id: If09dca2f2b7386c44eeeb817ef76e8f748e456da
2019-12-17devel: use mounts for developmentJeremy Plsek4-9/+24
This removes the need to rebuild the containers every time for simple changes during development. This does not include python dependencies since those are installed globally in the container. (I would have done the same for JS dependencies, but it's used in the static files.) Removed the background flag for running in dev mode when using make. It's easier to kill the servers (^C) and view logs of the server without needing to call separate commands later. Nginx is disabled in dev mode since the server and static files are handled by Django instead. Update readme to reflect upon changes made. Signed-off-by: Jeremy Plsek <jeremyplsek@gmail.com> Change-Id: I7888ca89021fca313e1043a7f94b5e1b7e12498c
2019-12-03Add warning email and notificationBrandon Lo11-9/+215
This adds the abandoned changes made to the notification system and also adds a simple task to check for expiring bookings and sends out emails and notifications. Change-Id: I1530d19f41cf93626bb642e6b269f9ec55860b81 Signed-off-by: Brandon Lo <lobrandon1217@gmail.com>
2019-11-12Merge "Allow public marked grb and configs to be shown"Parker Berberian3-2/+40
2019-11-07Allow public marked grb and configs to be shownBrandon Lo3-2/+40
Change-Id: I97f4965e8522cac1ceb5c0492e9aa0a2e128d266 Signed-off-by: Brandon Lo <lobrandon1217@gmail.com>
2019-11-07Bumps PostgreSQL VersionParker Berberian1-1/+1
The builds were failing because of incompatible version with the psycopg2 dependency. Bumping this version to latest fixes the issue. Change-Id: Ib6a2a0acb6031d61f45349c27276e866b6e6f975 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-11-05Merge "Rename pharos to laas"Parker Berberian27-46/+46
2019-10-29Fyi this is what we have for committers for laasAric Gardner1-6/+45
Please ammend to remove the ones that should not be there. Once merged this will create a review in my gerrit and I will merge that which will update the ldap group to match this list. Signed-off-by: Aric Gardner <agardner@linuxfoundation.org> Change-Id: I72933fd6857c37d506a59055031d351c1658ba73
2019-10-08Rename pharos to laasAric Gardner27-46/+46
related to change: https://gerrit.opnfv.org/gerrit/c/releng/+/68161 Signed-off-by: Aric Gardner <agardner@linuxfoundation.org> Change-Id: I4985eb116fd2c214f3639eb991f27b5d75b5ab7c Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-09-04Fix regression that broke 'Configure a POD' workflowParker Berberian1-0/+3
Change-Id: I7d954a636e5db0a8d473eaab6d20cc6d177c9c74 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-08-29Merge "Adds Downtime Awareness"Sawyer Bergeron7-2/+135
2019-08-15Merge "Checks if host is working"Sawyer Bergeron1-1/+2
2019-08-15Merge "Adds Hostname Validator"Sawyer Bergeron2-2/+64
2019-08-13Adds Downtime AwarenessParker Berberian7-2/+135
This adds a Downtime model and relevant operations so that the dashboard knows when a lab is down for maintenance and can act accordingly. This change doesn't modify the front end at all, but it does pass relevant downtime info to the templates so that they can be updated in a future change. Change-Id: Idb88b15838b949f352f11a31a1fce9749d283d28 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-08-07Checks if host is workingParker Berberian1-1/+2
Adds an additional check to ensure that the host is working before using it for a booking. Change-Id: I69731ca10ad59b6b774d04bdf6f3e628e6a07a79 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-07-17Add unit tests for SearchableSelectMultipleWidgetBrandon Lo1-5/+126
Removes behavior-based unit testing for this widget, instead adds in unit tests that will test each function. This makes sure that every function does what is expected. Change-Id: Ie97831480865defe5ab38c9499016c7fa3c12a62 Signed-off-by: Brandon Lo <lobrandon1217@gmail.com>
2019-07-17Merge "LAAS-44: Unit Test Javascript"Sawyer Bergeron6-0/+3944
2019-07-16LAAS-44: Unit Test JavascriptBrandon Lo6-0/+3944
Add Karma, Mocha, and Chai NPM packages to allow for browser based front-end JavaScript testing. Not all functions are tested, but a lot of the required behavior is. This allows for new JS unit tests in future patches. Change-Id: I2ac2a865ed3a458d8f5ebdeb7c2b4defda24fd41 Signed-off-by: Brandon Lo <lobrandon1217@gmail.com>
2019-07-15Merge "Fixes Building and Deploying Containers"Sawyer Bergeron1-8/+4
2019-07-10Fix DependenciesParker Berberian1-0/+2
An earlier patch changed dependencies, but did not change the settings.py app, which breaks a new install Change-Id: I398c2dabf9d46753fa36fb12cad25783c5b19fae Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>