summaryrefslogtreecommitdiffstats
path: root/src/booking
AgeCommit message (Collapse)AuthorFilesLines
2019-06-21Prefetches CollaboratorsParker Berberian1-1/+1
Prefetches collaborators to further reduce database accesses Change-Id: I5a976c4e17e20ca463576178371f70e59551b576 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-06-20Speed up Booking StatsParker Berberian1-20/+20
Refactors the bookings stats function to use the database less. Runs in around 1/3 the time as the current version Change-Id: I4f367b96374511d2f669d4554919a65912f304f8 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-05-31Merge "Refactor selector step logic"Parker Berberian4-19/+47
2019-05-31Refactor selector step logicSawyer Bergeron4-19/+47
Change-Id: I61e361e63da7453b2eee0e0c162a6f4e48460128 Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2019-05-24Add and Fix testsParker Berberian1-55/+50
Makes the existing code less terrible and adds more unit tests Change-Id: Ia3662323eb22ed238829418869ff0363f00337ef Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-05-03Implement OPNFV workflowSawyer Bergeron3-26/+61
This is a counterpart to an update to network models, and allows for configuring baremetal OPNFV and Openstack deploys Change-Id: I0185dbfa6c9105d7e63a7e7d7dd1f5cf228a8877 Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-04-17Merge "Fixes the idf and pdf templates so that we can deploy opnfv"Parker Berberian2-0/+19
2019-04-17Fixes the idf and pdf templates so that we can deploy opnfvParker Berberian2-0/+19
Change-Id: I0091629f8f0af423210b2e81210d65239e9662b4 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-04-16Fix quick booking image filtering bugSawyer Bergeron1-3/+1
Change-Id: I9fe5b34be2113d3bf7d2e763730b6658f529d387 Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2019-04-16Merge "Limit total number of active bookings per user"Parker Berberian1-0/+8
2019-04-16Limit total number of active bookings per userSawyer Bergeron1-0/+8
Change-Id: I4f79e3225f423274de3d2da912a080521447b185 Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2019-04-16Merge "Fixing Network Models"Parker Berberian1-14/+19
2019-04-15Fixing Network ModelsParker Berberian1-14/+19
Change-Id: Ia2cdf069e90c8091e8d984c368e47f375aed02ea Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-04-10Fix private images being visible to anyoneSawyer Bergeron1-8/+6
Change-Id: I1df1a11dd1b9e51d026157f9c7fd8b4a008371d8 Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2019-03-15Minor Cleanup enhancementsParker Berberian2-3/+2
Change-Id: I032c8771b69e0f6d320759ee95c4987e41df57ba Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-03-01Merge "Enhance PDF/IDF Support"Parker Berberian1-1/+2
2019-03-01Add test utils and tests for quick bookingSawyer Bergeron3-80/+290
Change-Id: Ie76c6fe26622ca8363055b8ebbe0dc6deaed5824 Signed-off-by: Sawyer Bergeron <sawyerbergeron@gmail.com> Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-03-01Enhance PDF/IDF SupportParker Berberian1-1/+2
Improves PDF template and code organization and adds an IDF template. To complete these templates, the lab must be able to report L3 network info and ipmi info at the least. A change to the API to allow for this has to be made. Change-Id: I4b9d2e73eb3940300f7e95fa2f9f4ddd0d606c60 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-02-25Update Inbox FeaturesetSawyer Bergeron1-0/+2
Inbox now supports marking unread, marking for deletion, and has a new UI Change-Id: Ia684056f70ecca31bbd71634f4d1d5415f7e5428 Signed-off-by: Sawyer Bergeron <sawyerbergeron@gmail.com>
2019-02-18Merge "Fixed all Flake8 errors"Parker Berberian1-8/+4
2019-02-12Fixed all Flake8 errorsParker Berberian1-8/+4
Change-Id: I1186429df8989461e2384f1f3e533c55cebfb1b4 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-02-01Merge "Allow Users to Delete objects and Cancel Bookings"Parker Berberian2-1/+21
2019-01-29Allow Users to Delete objects and Cancel BookingsParker Berberian2-1/+21
A user can now delete thier own resources, configs, and snapshots as well as cancelling bookings. Change-Id: Ic8e4751feeb0b8fa0d76816b8df2d16729ad2828 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-01-23Fix Reimaging HostsParker Berberian1-7/+4
When a User wants to reimage a host, the dashboard needs to also refresh the network and ssh configurations. Otherwise a host is reimaged and becomes unreachable. Change-Id: I534f200498c9217bda81190861021c482e052a81 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-01-18Fix ConfigBundle not being set in quick deploySawyer Bergeron1-0/+1
booking.config_bundle was not getting set in quick deploy, making the booking detail page inaccurate Change-Id: If62518030cc5d1726cbc03efa745c38a99465881 Signed-off-by: Sawyer Bergeron <sawyerbergeron@gmail.com>
2019-01-18Allow for Hosts to be Re-ImagedParker Berberian3-15/+60
This change adds a button the user can press on thier booking detail page to reset thier host. They can choose to deploy any available image to thier servers (not just the one already used) Change-Id: I97a9869d2b38389c54f13173bb28a68cc52bb8d5 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-01-18Add Quick-Booking WorkflowSawyer Bergeron6-43/+459
Users can now quickly provision a single-host pod without having to configure unecessary networking. This is intended to be analogous to the workflow used during LaaS 1.0, and to speed up the process of creating a booking for users who do not need more than a single host (for virtual deployments) Change-Id: Ia19cea9a42bbb1df57aad05af8f8ea821395664d Signed-off-by: Sawyer Bergeron <sawyerbergeron@gmail.com>
2019-01-02Renders Pod Destriptor File earlierParker Berberian3-1/+20
Currently, the PDF is rendered 'on-demand' every time you visit the booking detail page. This change renders the pdf once and saves it in the booking model. Advantages: - saves computation of re-rendering pdf constantly - fixes issue where pdf fails to render after booking expires Change-Id: I58d20fadce088d78ebd22f1d6f67cab371823542 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2018-11-26Fix all flake8 errorsParker Berberian6-50/+69
The flake8 command in test.sh finds no longer finds any errors. This may form a basis of a jenkins verify job as a sort of 'weak compile-time checks' The flake8 command will not complain about line length, and will not complain about django's manage.py file Change-Id: Ic47cb4fc7ada55e64485661ab6881aef475018ff Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2018-10-26Hides information about your booking from other usersParker Berberian1-0/+4
If a user is not the owner or a collaborator on a booking, they should be kept from seeing the booking detail page which may contain credentials, etc from the lab fulfilling the booking. Change-Id: I27c383a0e1d017b5d02a7c9a37676f6a968c9270 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2018-10-15Removed references to old codeParker Berberian1-127/+0
With the LaaS 2.0 rewrite, there was still some old/dead/broken code being referenced. This patch fixes that. Change-Id: I25803652bc59bba1e416e526d205742c52f14a65 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2018-10-15Lab as a Service 2.0Parker Berberian15-437/+376
See changes here: https://wiki.opnfv.org/display/INF/Pharos+Laas Change-Id: I59ada5f98e70a28d7f8c14eab3239597e236ca26 Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2018-03-26Limit User Booking Length and ExtensionsSawyer Bergeron3-2/+48
Jira: PHAROS-363 Bookings can now only be 3 weeks upon creation with a maximum of 2 1 week extensions. Change-Id: I677770de3f62f188d23e60be6d71b42b25bf007e Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2018-02-19Merge "Provide Interface for Booking Deletion"Parker Berberian2-2/+25
2018-02-19Provide Interface for Booking DeletionSawyer Bergeron2-2/+25
Jira: PHAROS-355 User can now delete their own booking by going to the detail view of their booking and clicking 'delete' Change-Id: I279da364c2a5dfd03b877d1236c610d0fef563bc Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2018-02-15Change opsys Label to Operating SystemSawyer Bergeron1-0/+1
Jira: PHAROS-360 This makes the booking UI more intuitive by clarifying a field Change-Id: Ic7806e72a1ab94d650064c2c8e8820853385c356 Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2018-01-09Implement Booking Modification InterfaceSawyer Bergeron6-5/+157
Jira: PHAROS-330 Users can change start date if it has not already occurred, and can change end date, purpose, and both installer and scenario. Standard checks apply similar to when initially creating a booking. Change-Id: Ibae7fe91a58bd6e0741db065265c05c3823bdc27 Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2017-12-13Add Dashboard OS Selection Menu on BookingSawyer Bergeron5-5/+43
JIRA: PHAROS-326 Implement dropdown menu on pod booking page for user to select base OS, as well as associated support in API and pod status/booking status views This patch includes the migration file mentioned by Parker Berbarian Change-Id: I46a7b0e5e7020a89bc8fa0fe53c10bbda14a2e2d Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2017-09-22Rename pharos-dashboard and pharos-validatorTrevor Bramwell12-0/+591
As subdirectories of the pharos-tools repo, there is little need to keep the pharos prefix. Change-Id: Ica3d79411f409df638647300036c0664183c2725 Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>