Commit Graph

66 Commits

Author SHA1 Message Date
David Moreau Simard a12552fa57
opendev: Remove content and leave an URL to the GitHub repository
Change-Id: I1b02706b0cd681f5a8041897f57363ecdadd4fd9
2021-02-25 15:21:49 -05:00
David Moreau Simard c7dd84bbd6
zuul: transition to noop jobs
The Zuul CI jobs will be re-introduced later while the project migrates
to another Zuul instance.

Change-Id: Ieaa9eb2e8cf48b158f930446ef05af062b3466a7
2021-02-25 14:42:05 -05:00
Guillaume Vincent 57acf74e4a Apply prettier on javascript files
use prettier 2.0

Change-Id: I3a7b8ae39029a7f52f3c8f953bba7bfea82c2f1a
2020-04-20 18:22:38 +00:00
Guillaume Vincent a7213aeffb Do not round duration just display it
Change-Id: I3907c3d0971e5c3cb1143fff6c18b730bb61c60d
2020-04-20 18:22:34 +00:00
Guillaume Vincent 59e64da11f Update packages to the latest version
Change-Id: I07dd7afec996e690a3ab22ca0604bfeb7f5ff309
2020-04-20 18:22:31 +00:00
David Moreau Simard e58ca484f0
zuul: Use ./ for PUBLIC_URL when building in CI
Change-Id: I21fd853ad2831cc6fe9b1e873e7c412f7114e3f4
2020-04-20 09:26:42 -04:00
David Moreau Simard 5357f8bc32
Format started/ended and duration timestamps for results
Use a format like this:
    Fri, 31 May 2019 14:47:29 GMT"
Instead of:
    2019-05-31T14:47:29.927431Z

Change-Id: Ib55ea89f6d91d429c4ceb8fa9d0df1e24b404c72
2019-07-04 14:20:27 -04:00
David Moreau Simard 75acba49f5
Update title and logo alt text to use ARA Records Ansible
Change-Id: Idbcb50b2783376478b13e95493d1318d13773e2b
2019-06-05 10:32:02 -04:00
David Moreau Simard ba99a6f048
Update doc links to use latest now that 1.0 is released
Change-Id: Ideb3d57069fcb410e739da7cc6cf4f5f04a3bc62
2019-06-04 20:21:14 -04:00
David Moreau Simard 0526516f30
Remove stray comma
Change-Id: I5b3abd65b42ad904767d9cc748d15a6ccbabe4b3
2019-06-03 08:58:45 -04:00
Guillaume Vincent 06e13e80fd Fix visual glitches
Change-Id: I4f2875202f1a45445157adb4a9a0e18bc2e0afa8
2019-05-31 12:21:52 +02:00
Guillaume Vincent ce1e66dc2e Rename Container into Page and apply prettier
Change-Id: Ib1b132a7a9f09dfcfb94f8e5af22546571a686ac
2019-05-31 12:21:34 +02:00
Guillaume Vincent 15edc82340 Prevent Warning: Can't perform a React state update on an unmounted component
Change-Id: I8c2113613eaf69047145f4b1d1299e713cfeea13
2019-05-31 12:20:30 +02:00
Guillaume Vincent 9e2feefb2e Support authentication
Test at startup if /api/v1/ returns 401 status code.
If yes redirect to login page, else continue.
On login save credentials (username, password) in localStorage.
On every request we set credentials in header if present.

Fixes: https://github.com/ansible-community/ara-web/issues/1

Change-Id: I0f0b18b5590dec4ebfce32aa6519bb46fc8533f5
2019-05-31 12:20:02 +02:00
Guillaume Vincent 41c073b8fd Fix error handler in Playbooks page
error.status doesn't exists, the object we need to check in case of an error is error.response

Change-Id: If56f4df2ed412c15c04864bb95ba0c671f338fef
2019-05-29 15:11:30 +02:00
Guillaume Vincent acadff27db Differentiate between no playbooks from api server unreachable
Fixes: https://github.com/ansible-community/ara-web/issues/9
Change-Id: I651af7f967038bc6077a8749dedc03bffa22d0ca
2019-05-29 13:06:39 +02:00
David Moreau Simard 7dfa434849
Fix contributors link from /openstack/ to /ansible-community/
Change-Id: I721ed63160af7390e5b8f65f71c149f138c27ee1
2019-05-28 12:04:53 -04:00
David Moreau Simard 95db6c9910
Add a note about configuring public/config.json in the README
Change-Id: I927aa77bca4c6df085df1b1bdfe233c8f9717cdf
2019-05-28 11:55:03 -04:00
David Moreau Simard 6c720c67aa Improve the README
Change-Id: I34a2e8db4dba58c77b2ad3434827453fdc53a35a
2019-05-27 13:51:36 +00:00
David Moreau Simard 17a3e7b73b
Always run unit tests for commits
They are short and not expensive to run.

Change-Id: I325d8f42d9791c7fed1557a22da735d1d40daac0
2019-05-27 09:51:24 -04:00
Zuul 7967dbae09 Merge "Update documentation links to use the feature/1.0 branch" 2019-05-23 21:29:39 +00:00
David Moreau Simard 4b8608e646
Update documentation links to use the feature/1.0 branch
Change-Id: Id3dc84039fc038721ee18f24d1b5edfb36f48db6
2019-05-23 16:28:09 -04:00
David Moreau Simard 04d0ade78d
Display labels in playbook summary
Change-Id: I0b7d616e177cbe05a9b384f08b67572a0e37cb3f
2019-05-23 15:56:10 -04:00
David Moreau Simard 66ed7ef465
Display the playbook name if it's available, otherwise use the path
Change-Id: I834a4237771478c69b9d61635f93b1299bde7e8f
2019-05-23 15:56:10 -04:00
David Moreau Simard 7e33c0d328
Print playbook summary at the top of the playbook details
Change-Id: I83c2f27609c7de9d208f8b903c0d08089f9f28cd
2019-05-23 15:56:10 -04:00
David Moreau Simard 4b412ce053
Add the date the playbook started in the playbook summary
We need to display this somewhere and can iterate on it later if
need be.

Change-Id: If398ee3db93ac623e7104a8ee7043f607478501d
2019-05-23 15:56:10 -04:00
Guillaume Vincent ba3735f000 Remove unsed script and npm dependency
Change-Id: I253205ce19cc4a042fc2c0c2ecf7be11cd322db5
2019-05-22 14:26:12 +02:00
Guillaume Vincent 038e9d9e17 Group Playbook Task results per task
When we have a lot of hosts and a lot of tasks, displaying every tasks per host is not a good idea.
This patch groups tasks together to simplify troubleshooting.

Fixes: https://github.com/ansible-community/ara-web/issues/7

Change-Id: I32fcf9a0296063716a8f77179ee7f72137ffbe55
2019-05-22 14:15:39 +02:00
Guillaume Vincent 46f8897604 Update ara-web patternfly modules to use the released version
Patternfly is released, we can now use component from react-core modules.
Update patternfly modules.

Replace html components with react equivalents

Change-Id: I93941fe86ae2dda905af78779b414cbc8cc4fcc1
2019-05-22 14:14:40 +02:00
David Moreau Simard 8f72f77129
Update dependencies based on npm vulnerability audit
Change-Id: I1eacf51c9032a2f1218226c07b0ca825c0b93a45
2019-05-16 12:05:20 -04:00
David Moreau Simard 27266c9b27
Add ara_web_git_mirror_credentials secret to zuul configuration
ara_git_mirror_credentials was defined in ara but can't be used outside
of the project. It needs to be defined here as well and have a unique
name.

Change-Id: I4cf37ee374f2fbdf7281242ebe9c14e4a3173ee3
2019-04-25 16:09:01 -04:00
OpenDev Sysadmins 9ea873b898 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:49:47 +00:00
Zuul 009394c82e Merge "Update dependencies and move from patternfly-next to patternfly" 2019-04-17 18:31:10 +00:00
David Moreau Simard 4abe7755b8
Update dependencies and move from patternfly-next to patternfly
patternfly-next hasn't been updated since they've moved to
@patternfly/patternfly [1].
Otherwise update dependencies to resolve vulnerability and deprecation
warnings.

[1]: https://blog.patternfly.org/patternfly/patternfly-4-beta-is-here/

Change-Id: Ie6a08723bb5262a3f3db773982261c4139b68816
2019-04-17 13:53:06 -04:00
David Moreau Simard b5d4dde7dd
Replicate the git repository to ansible-community/ara-web
recordsansible was a test organization, the github repository is being
moved to ansible-community.

Change-Id: Id89b461e5333a43e8b2ae3153af5f90e5101d6b3
2019-04-12 15:14:42 -04:00
David Moreau Simard 510090e8d4
Enable upload-git-mirror job to replicate to recordsansible/
Change-Id: Id4e095b196ce7be8f3e8cd070b7c1289aba6d7c5
2019-04-09 10:58:09 -04:00
David Moreau Simard bb4685eb09
Leverage refactored API for displaying playbook details
Numbers for the summary are now provided, we no longer need to count them.

We no longer need dedicated task actions (for now), remove them.

In the playbook details, we now iterate through each play to print a table that reconciles
tasks, results and hosts involved in that play.

The design of the UI is not final and is mostly a proof of concept for
the visualizing the refactored API.

Depends-On: https://review.openstack.org/#/c/641136/
Change-Id: I27180fab04e1192516be6f12fee53c299f434fee
2019-03-20 11:57:00 -04:00
David Moreau Simard 6a927681fa
Bump/update npm dependencies
This keeps us up to date and resolves security vulnerabilities found
by npm.

braces ^2.3.2 was added because it is a dependency pulled in by react
but we need >=2.3.1 to address vulnerabilities.

Change-Id: Ic9ab227b5ee77e23c6cb6794bfe3990812169a62
2019-03-20 11:54:04 -04:00
David Moreau Simard f139a3683c
Update react-scripts to >=2.0.0
This resolves an error when attempting to minify files [1].

[1]: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

Change-Id: Ife5fe735c81fd5d5c93c5ef777d924edc597cec2
2019-01-29 11:21:47 -05:00
David Moreau Simard aa974a90a8
Ensure we run unit and integration tests for relevant files
Modifying these files can have an impact on the tests so make sure
we run them.

Change-Id: Ifd91c8d47c051259bce682af624f00ea1a58ba06
2019-01-29 11:21:47 -05:00
David Moreau Simard 6c484c6e7a
Bump node version in integration jobs from 8 to 10
nodejs v10 is the latest LTS release of node.
Update to use it instead of v8.

Change-Id: I2a48882a7e55b92b5243c194e3fea96f6bc015a4
2019-01-23 09:56:27 -05:00
Guillaume Vincent 071038e883 Use flexbox instead of grid in playbook summary
Remove the arguments box because the information displayed is useless

Change-Id: I62b8f607bb5fdc21152aa186849d1719a7f160e6
2019-01-17 14:51:16 +01:00
Guillaume Vincent 04a2d4a05e Update playbooks page
* import react-icons react-tokens to use it the code
 * update patternfly-next to the latest version
 * fix icon issues in playbook summary
 * fix playbook summary layout on mobile

Change-Id: I1ec2e60b1433c42a8d02376ae5a508a6c8ef9439
2019-01-17 13:57:13 +01:00
Guillaume Vincent ddd1e712f8 Add tasks plays and records number in Playbook summary
Change-Id: Ib0437552e835a3d8ba43321490ed1f27c2dd4ccb
2019-01-16 16:22:37 +01:00
Guillaume Vincent 3cb2d5bc55 Move playbook details page in a dedicated page
Change-Id: I5ff30157a154fec52b6cee83d237823a7ce8c99d
2019-01-14 20:18:21 +01:00
Guillaume Vincent fe595b35d6 Fix 404 config.json issue
When we reload the page on subroute, the GET on config.json return a 404.
Use homepage from package.json

Change-Id: I506fa8b6bc5034ef1fa7171229301f729adf9da7
2019-01-14 16:27:19 +01:00
Guillaume Vincent b58c5feb54 Run unit test in zuul
Change-Id: I0d0b57a576d1a6faba9121236b87653b6ab973d6
2019-01-09 15:44:23 +01:00
Guillaume Vincent 7bae0ba80a Use homepage as basename for browser router
Change-Id: I8eafcdd25224437c1110bb0583b412d60e21d292
2019-01-09 09:45:09 +01:00
David Moreau Simard 29041ab473
Add a Zuul job that builds and publishes the web dashboard
The job:
- Sets the homepage in package.json to the URL where logs will be uploaded
- Sets the API server in config.json to "api.demo.recordsansible.org"
- Runs "npm run build"
- Publishes the content to make it available during code review.

Change-Id: I015bb4a177a5f8d3a34e4434dc11f6c37fc3ca15
2019-01-08 23:26:57 -05:00
David Moreau Simard 06f906f570
Use relative path when retrieving config.json
Using absolute prevents the web application from being hosted inside
a subdirectory.

Change-Id: Ie236372dd60f16a1f53c0f5d14b4a7675d7d1973
2019-01-08 10:09:45 -05:00