Rename the 'capabilities' endpoint to 'guidelines' to align more
with DefCore terminology. Several references to 'capabilities' were
thus updated to 'guidelines'.
Split out the actual requests to the DefCore repository so
that it can be used by other components.
Also, the cache expiration time was increased to 12 hours from 10 minutes.
Change-Id: I031798ffc32cdd66428af83a1ee610f00385c524
The persistence of the openstackid session causes issues where
when people log out, then click "Sign-In" again, they aren't
prompted for their password. Instead they are logged in automatically
with the users they just logged out from because the openstackid endpoint
still has them as logged in. With this patch, the user will be logged
out of refstack as well as openstackid when signing out of RefStack.
This way a user can sign into refstack with another openstackid
without having to delete cookies or navigate to the openstackid site
to manually log out.
Change-Id: I23936ba6b64b58e4f6a3f4d62ba89439c4ddee21
There were issues with IE caching angular $http get requests, so
this patch will ensure no caching.
Change-Id: If932f307f8eeb636a99d2296b0053030057182f9
Closes-Bug: #1504818
With an updated eslint version and the addition of eslint-config-openstack
and eslint-plugin-angular, there are several more stylistic guidelines to
follow. However, this is what other OpenStack angular projects follow such
as Horizon. Some notable changes are:
* Wrapped javascript content in anonymous functions. This is a safeguard to
keep the code from conflicting with other variables with the same name in
other scripts on the same page.
* Explicitly inject dependencies and have controllers, factories, etc as
explicitly declared functions.
* Use angular "controller as" syntax instead of assigning variables to $scope.
* Added eslint rule that requires JSDoc for every function declaration.
Note these are mainly stylistic changes and all the functionality of RefStack
should remain the same.
Change-Id: I044b1f473d589681a2ae9d2704700dd85687cbb6
If the user isn't authenticated, and the user refreshes the page,
the user is taken to the home page. The user should only be redirected
on the pages that need redirection. This patch is a quick fix for this
issue.
Change-Id: I68f604af437ea934485c1bcef8d8b7fd7d91858a
Closes-Bug: #1493565
If OpenStackID returns failure user will be shown failure message.
Steps to check:
Setup RefStack as usual but point REFSTACK_HOST=127.0.0.1. It will
cause OpenStackID auth failure. So try to auth and you should get
error message in popup (instead of plain json document as it was before).
Change-Id: Icda5b219429047e89b393245a3a6eeadf171bd90
RefStack UI should properly handle user signout.
How to check:
Open two RefStack in two browser tabs and signin in both. Then signout in first
tab. Then try to open 'Profile' or 'My Results' in second tab. If everything is
ok you will be redirected to RefStack home tab.
Change-Id: Ifc14ba953b269ce8940f82e61d7f3634682fe0da
Users can upload, delete and retrieve list of their public keys.
User can upload test result with any public keys without any connection
with uploading public keys in Refstack. It means that you can upload
signed test results and upload public key later. Also, it means that
deleting public key doesn't mean deleting results signed with this key.
Change-Id: Idc418c4c90221740eef04fcf498d7071a4446b9c
In Refstack's database store only fullname, email and openid.
After sign in refstack backend create session and write it id in cookie.
When UI is opened in browser, Angular try to get info from
/v1/profile. If data about user received then user is authenticated.
Change-Id: Ib2cabc0c6b4de4b2ca1f02cc9e062a6e3550daa0
This patch adds eslint, a permissively licensed (as opposed to
jshint or jslint) javascript style linter. It also enables the use
of 'npm run lint', which may be used in OpenStack's gate to
cause build failures when improperly formed javascript is
committed.
Existing javascript was updated to pass linting rules. Note
that most of these changes were formatting and file length
concerns. The noted stylistic change that we should probably
discuss is the use of singlequote vs. doublequote. Single is
the pep8 standard used in python, and thus enforcing that
seems to make the most sense.
Change-Id: I52768fe6e7ee1f76f0d67f44273fdc48b159489a
This is the groundwork for the community results listing page
and the test run report page. The report page is fairly basic, primarily
showing how results stack up against defcore capabilities. Design is subject
to change, but this gets the ball rolling. A config.json.sample was also added.
The UI now expects a config.json in the root which will contain the
Refstack API URL.
Change-Id: Id7a376d0bccda5cbb5daf05e52a2c174ad40b497
Used a combination of AngularJS and Bootstrap to form
a preliminary front-end website for Refstack. Most of the content
text can be considered placeholders and is subject to change.
Change-Id: Ide82783478d1863052fe54d02ca6ee88113c46b2