Age | Commit message (Collapse) | Author | Files | Lines |
|
Added some pretty CSS
Change-Id: I8330f8de34ab22197bedad802b3696526c009ba4
Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
|
|
|
|
Fixed a bug in the widget that allowed multiple
objects to be selected when only one was allowed.
Change-Id: I623a041fa82a2f7ee178df782d21d100617eac3b
Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
|
|
Under special circumstances, the 'context' field may be empty and serialization will fail,
but that field is optional so we will ignore errors.
Change-Id: I2e1e47a2f7d507e45b171f80aa241c8026cfc1a5
Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
|
|
Change-Id: I01dd7f671a21c9b9f06dede341d6ddf410f0e776
Signed-off-by: Sawyer Bergeron <sawyerbergeron@gmail.com>
|
|
|
|
Users will see a more informative landing page that directs them to log
in if they have not yet done so, rather than displaying actions they can
not yet take and having a required login get triggered later
Change-Id: I9812367930665614933551f780f4c6726ff3049c
Signed-off-by: Sawyer Bergeron <sawyerbergeron@gmail.com>
|
|
Change-Id: I05213a3521c5ffa6b311c9e11e9d593dd2098ebe
Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
|
|
|
|
btn-primary has a handful of advantages over btn-default, including
consistency across browsers and correctly styling non-button
html tags
p.s. vim is best
Change-Id: I6e55a75a9fd48d64496fd83f43a7856af0c04cc0
Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
|
|
Any users that have not uploaded an ssh key will see a message on the
landing page that they need to upload one. Message is not seen by people
who have already uploaded a key
Change-Id: I01667e161521d801090173d47815abbeff094907
Signed-off-by: Sawyer Bergeron <sawyerbergeron@gmail.com>
|
|
|
|
|
|
|
|
|
|
Network step is now much prettier
Change-Id: I72487e3a5f30e4c0339734674c53d4661f9c0104
Signed-off-by: Sawyer Bergeron <sawyerbergeron@gmail.com>
|
|
Edit buttons are currently not functional due to major changes in how
the workflow works, so this commit disables them for the time being to
avoid confusion
Change-Id: I62dddbc25267e9da55c503b48fed4f05cea97c22
Signed-off-by: Sawyer Bergeron <sawyerbergeron@gmail.com>
|
|
|
|
It was assumed but never enforced that each pod configuration
elects at least one host as the "jumphost". This commit
makes that a requirement when creating a configuration.
Change-Id: If55f1aa231b3cba8713f325f158796d85466b02a
Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
|
|
A major source of bugs has been how we've approached inlining
workflows. We no longer inline them as of this commit, and instead
use a stack structure. This commits the result of workflows to the
database before other workflows try to read them, so we don't have
to maintain a code path for when something is or isn't committed
to db.
This patchset allows for workflows to pass limited information
to preset selections
Change-Id: I3d040c7f3024c7420017ae4ec66a23219303dcb6
Signed-off-by: Sawyer Bergeron <sawyerbergeron@gmail.com>
|
|
We had a button that would barf up XML logs for development
but forgot to disable it for the live dashboard
Change-Id: I1061ba967f077a103a7e1ae61d60d81cd9e4c443
Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
|
|
the line .labs needed to be changed to ['labs']
Change-Id: I6d2aa2eca0413186ddf482aba7f01e4e53c0265b
Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
|
|
Change-Id: I7582360e3e5522cf06798200f80e5585864e945e
Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
|
|
Previously, the database query was not reliably detecting
hosts which were to be released and made available
for new bookings. This should now take all bookings that
are over and have been cleaned by the lab, and make the
hosts available for reuse.
Change-Id: I040c2e02ac48d7bfde3fc1cf6bac4e59a48c8933
Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
|
|
|
|
|
|
|
|
|
|
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>
|
|
Some versions of some browsers dont play nice with a document.open() and document.write(),
So I am manipulating the DOM manually instead of writing the response itself.
Change-Id: Ib852be55dfcb4e360a5cfd89e5e3e2b845d6322a
Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
|
|
Minor changes that allows the ssh job to be created.
Django model creation can become very complex when you
go beyond the model.object.create() method, and this
just fixes the order of operations.
Change-Id: I811f26149365067bdd15f2466f8ba9211c3ef901
Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
|
|
|
|
Change-Id: I2da02fa7865b618c583d15cca9ef256c62f19286
Signed-off-by: Sawyer Bergeron <sawyerbergeron@gmail.com>
|
|
Currently, a user can leave the "Define Hardware" step without choosing
which lab thier pod should be at. This causes errors later in the
pod creation process.
This commit forces one lab to be selected before they can leave the first step.
Change-Id: I7315bc8781ebeb66bcd32fdba30535100b59a3ff
Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
|
|
Fatih Pointed out to me the existence of ptl's of sub projects,
which show up differently in the INFO.yaml files.
This commit also adds support for gerrit.opnfv.org and git.opnfv.org links.
I don't remember why we were only accepting github links, but that seems strange.
Change-Id: Ica64c4ee7d5c0ce4fa6bfbcbabb1c4ca7cf06018
Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
|
|
|
|
Change-Id: I81bb064d83e1dc6df8658cd4cfa2a400c7e723ca
Signed-off-by: Sawyer Bergeron <sawyerbergeron@gmail.com>
|
|
|
|
Because of how Python3 changed how it handled strings,
the byte string read from the user's keyfile was not directly
serializable. This decodes the bytes into a unicode string, assuming UTF-8 encoding.
Change-Id: I5f723a61fb577fa6d4e76e701ef529521ab389ba
Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
|
|
On google chrome, using vanilla html forms, eg:
document.getElementById("Form_id").submit();
does not properly set the CSRF header from the cookies.
This results in 403 unauthorized errors in chrome when doing certain things.
This is possibly an issue to do with how chrome handles iframes differently from firefox.
To fix, we replaced basic forms with serialized XMLHttpRequests,
which are more common in this codebase anyway.
Change-Id: I93e92cd326c8bba47408b66a95d9d5d806c154f6
Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
|
|
Some corner cases that cause issues recently came to our attention.
Fixes issues in the booking workflow and the Notification system.
Change-Id: Ie16118ba1bdbeff86bb41a16dc783337b921d527
Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
|
|
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>
|
|
|
|
In this commit:
- delete a lot of really bad and / or unused code
- redesign a much simpler Notification model
- create and send notifications to the user's inbox on booking start & end
- migrations
- emails user when booking is ready and when it ends
Not in this commit:
- Creating notifications from lab messages
- warning messages when a booking is about to end
- creating "summary" notifications when e.g. a booking has been fulfilled by a lab
Change-Id: I69b4dc36c3f2bce76d810106baadeef5a562cc7d
Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
|
|
|
|
|
|
|
|
|
|
|
|
This is a pretty complex html file that we will have to modify soon,
so I made sure that every tag is opened and closed at the correct height.
The correct height for a tag is 4 spaces more indented than its parent
Change-Id: Ie356b61746477f65304f38c019f471e5cae1aa94
Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
|