g5k-api merge requestshttps://gitlab.inria.fr/grid5000/g5k-api/-/merge_requests2018-08-29T14:46:14+02:00https://gitlab.inria.fr/grid5000/g5k-api/-/merge_requests/56v3 rails 4.22018-08-29T14:46:14+02:00MARGERY Davidv3 rails 4.2*Created by: dmargery*
Migrate the code base to rails 4.2.10
This was done by
1/ cherry-picking changes made in master to migrate to rails 4.2,
2/ cherry-picking the changes made to the development environment so as to be able to ...*Created by: dmargery*
Migrate the code base to rails 4.2.10
This was done by
1/ cherry-picking changes made in master to migrate to rails 4.2,
2/ cherry-picking the changes made to the development environment so as to be able to work on the v3 branch
3/ migrating all the stuff related to environment management, not present in master, to rails 4.2
4/ cherry-picking all the minor/convenience stuff integrated into master since v3 was branched (all required to drop stunnel, to be reached through a proxy, to better report standard problems such a grit timeouts, and to add headers to simplify writing api-proxyhttps://gitlab.inria.fr/grid5000/g5k-api/-/merge_requests/54Migrate to Rails 3.22018-08-21T14:30:03+02:00MARGERY DavidMigrate to Rails 3.2*Created by: dmargery*
In the process, update and clean-up development environment to ease testing this new version.*Created by: dmargery*
In the process, update and clean-up development environment to ease testing this new version.https://gitlab.inria.fr/grid5000/g5k-api/-/merge_requests/55Rails 4.22018-08-22T15:23:54+02:00MARGERY DavidRails 4.2*Created by: dmargery*
This branch passes all required tests and will be fast merged (with no review) to quickly validate a rails 4.2 version*Created by: dmargery*
This branch passes all required tests and will be fast merged (with no review) to quickly validate a rails 4.2 versionhttps://gitlab.inria.fr/grid5000/g5k-api/-/merge_requests/53Bugs/#94552018-07-11T17:08:09+02:00MARGERY DavidBugs/#9455*Created by: dmargery*
*Created by: dmargery*
https://gitlab.inria.fr/grid5000/g5k-api/-/merge_requests/52Bugs/#93372018-06-04T16:07:59+02:00MARGERY DavidBugs/#9337*Created by: dmargery*
This should correct the deployment issue seen yesterday on sites with no disks*Created by: dmargery*
This should correct the deployment issue seen yesterday on sites with no diskshttps://gitlab.inria.fr/grid5000/g5k-api/-/merge_requests/48Bug7970 status api performance v32018-01-26T17:06:54+01:00MARGERY DavidBug7970 status api performance v3*Created by: f-didier*
Backport in branch v3 of the following pull requests (already present in master), concerning disk reservation and the performance enhancement of the status api:
#36 Bug 8029: disk reservation
#39 Bug 8030: add j...*Created by: f-didier*
Backport in branch v3 of the following pull requests (already present in master), concerning disk reservation and the performance enhancement of the status api:
#36 Bug 8029: disk reservation
#39 Bug 8030: add job noop
#47 Bug 7970: status api performancehttps://gitlab.inria.fr/grid5000/g5k-api/-/merge_requests/50Bugs/#68092018-04-17T13:09:04+02:00MARGERY DavidBugs/#6809*Created by: dmargery*
Handle Grit::Git::Timeout gracefully with a 503 error instead of failing the complete application*Created by: dmargery*
Handle Grit::Git::Timeout gracefully with a 503 error instead of failing the complete applicationhttps://gitlab.inria.fr/grid5000/g5k-api/-/merge_requests/51Bugs/#92302018-05-18T13:31:13+02:00MARGERY DavidBugs/#9230*Created by: dmargery*
Add explicit handling of anonymous users for g5k-api*Created by: dmargery*
Add explicit handling of anonymous users for g5k-apihttps://gitlab.inria.fr/grid5000/g5k-api/-/merge_requests/49Bug7970 status api performance v42018-01-26T17:06:35+01:00MARGERY DavidBug7970 status api performance v4*Created by: f-didier*
Backport in branch jessie-v4 of the following pull request (already present in master):
#47 Bug 7970: status api performance*Created by: f-didier*
Backport in branch jessie-v4 of the following pull request (already present in master):
#47 Bug 7970: status api performancehttps://gitlab.inria.fr/grid5000/g5k-api/-/merge_requests/46Add 'X-Api-User-Cn' together with 'X-Remote-Ident' header when callin…2018-01-22T11:43:18+01:00MARGERY DavidAdd 'X-Api-User-Cn' together with 'X-Remote-Ident' header when callin…*Created by: f-didier*
Add 'X-Api-User-Cn' together with 'X-Remote-Ident' header when calling OAR API, in order to simplify api-proxy configuration when calling OAR API from G5K API.
This commit solves bug 8464.*Created by: f-didier*
Add 'X-Api-User-Cn' together with 'X-Remote-Ident' header when calling OAR API, in order to simplify api-proxy configuration when calling OAR API from G5K API.
This commit solves bug 8464.https://gitlab.inria.fr/grid5000/g5k-api/-/merge_requests/45Bugs/#8379/tls client certs v32017-11-08T11:29:00+01:00MARGERY DavidBugs/#8379/tls client certs v3*Created by: dmargery*
Cherry pick code from the master branch to be able to specify TLS parameters in the cofigu files and use them instead of relying on stunnel on the host.
This brings in changes to rspec-rails to have a working t...*Created by: dmargery*
Cherry pick code from the master branch to be able to specify TLS parameters in the cofigu files and use them instead of relying on stunnel on the host.
This brings in changes to rspec-rails to have a working test environment after vagrant up, otherwise broken because of the new release of rake https://gitlab.inria.fr/grid5000/g5k-api/-/merge_requests/43Deprecate usage of should syntax in spec files2018-01-26T13:56:52+01:00MARGERY DavidDeprecate usage of should syntax in spec files*Created by: dmargery*
This avoids all deprecation warnings generated after upgrade to rspec-rails 3.6*Created by: dmargery*
This avoids all deprecation warnings generated after upgrade to rspec-rails 3.6https://gitlab.inria.fr/grid5000/g5k-api/-/merge_requests/36Bug8029 disk reservation2017-09-07T09:58:15+02:00MARGERY DavidBug8029 disk reservation*Created by: f-didier*
Add display of disk resources (bug 8029)*Created by: f-didier*
Add display of disk resources (bug 8029)https://gitlab.inria.fr/grid5000/g5k-api/-/merge_requests/44Bugs/#8379/tls client certs2017-10-24T14:13:01+02:00MARGERY DavidBugs/#8379/tls client certs*Created by: dmargery*
Update codebase so that it can directly request to the API using the local certs.*Created by: dmargery*
Update codebase so that it can directly request to the API using the local certs.https://gitlab.inria.fr/grid5000/g5k-api/-/merge_requests/42Use X_FORWARDED_HOST only for base_uri(:in)2018-01-26T13:57:02+01:00MARGERY DavidUse X_FORWARDED_HOST only for base_uri(:in)*Created by: dmargery*
A commit I forgot in previous PR.*Created by: dmargery*
A commit I forgot in previous PR.https://gitlab.inria.fr/grid5000/g5k-api/-/merge_requests/39Bug8030 rebased add job noop2017-10-27T17:37:57+02:00MARGERY DavidBug8030 rebased add job noop*Created by: f-didier*
*Created by: f-didier*
https://gitlab.inria.fr/grid5000/g5k-api/-/merge_requests/41Bugs/#8542: update our patched version of exhibit.js2017-09-14T16:59:12+02:00MARGERY DavidBugs/#8542: update our patched version of exhibit.js*Created by: dmargery*
Hello,
investigating bug #8542, I discovered we are using a version of exhibit.js that was patched to be able to work from our own servers rather than the public servers publishing the library.
This might b...*Created by: dmargery*
Hello,
investigating bug #8542, I discovered we are using a version of exhibit.js that was patched to be able to work from our own servers rather than the public servers publishing the library.
This might be linked to an old discussion about avoiding warning about getting resources from an http source on an https page.
This pull request updates the patch to serve the JavaScript files from the assets of g5k-api rather than from https://api.grid5000.fr, in order to be able to use g5k-api's webui through a proxy.
In the process, I fixed issues preventing me from testing my changes:
* an issue with exhibit not being able to decide whether the locale is fr or FR-fr by duplicating a locale.js
* an issue with the development environment not proxying requests to kadeployapi
* the reference to reims, no longer a Grid'5000 sitehttps://gitlab.inria.fr/grid5000/g5k-api/-/merge_requests/40Compute absolute urls using X-Forwarded-Host2017-09-13T09:28:07+02:00MARGERY DavidCompute absolute urls using X-Forwarded-Host*Created by: dmargery*
See bug #8536 for the context.
With this code, absolute urls of type :in (exposing how to reach g5k-api
resources) now only rely on the config file (base_uri_in) if no
X-Forwarded-Host, added by the request b...*Created by: dmargery*
See bug #8536 for the context.
With this code, absolute urls of type :in (exposing how to reach g5k-api
resources) now only rely on the config file (base_uri_in) if no
X-Forwarded-Host, added by the request by proxies, is present.https://gitlab.inria.fr/grid5000/g5k-api/-/merge_requests/38Update to rspec-rails & rspec supporting rake 12.02017-09-01T15:19:46+02:00MARGERY DavidUpdate to rspec-rails & rspec supporting rake 12.0*Created by: dmargery*
Hello,
following my investigations of bug #8196, I discovered that while we stay with rspec2.6, we can't upgrade to rake >= 11.0.1
In this PR, I've updated rspec-rails and rails and updated the tests to hand...*Created by: dmargery*
Hello,
following my investigations of bug #8196, I discovered that while we stay with rspec2.6, we can't upgrade to rake >= 11.0.1
In this PR, I've updated rspec-rails and rails and updated the tests to handle the new version of rspec.
To complete the PR, all tests should migrate to the expect().to syntax rather than the .should syntax if we want to avoid deprecation warnings.
@f-didier : do you have many branches of the code with new tests that would also need migrated ?
David https://gitlab.inria.fr/grid5000/g5k-api/-/merge_requests/37Bug#8489 api root path2017-09-05T09:51:46+02:00MARGERY DavidBug#8489 api root path*Created by: dmargery*
Add support for a X-Api-Root-Path header to support getting requests for the API at urls such as https://proxy.fed4fire.eu/proxies/grid5000
David*Created by: dmargery*
Add support for a X-Api-Root-Path header to support getting requests for the API at urls such as https://proxy.fed4fire.eu/proxies/grid5000
David