Commit Graph

8 Commits

Author SHA1 Message Date
Telles Nobrega f422b31b81 Fixing policies inconsistencies
Fixing some jobs/job-templates/job-executions policy inconsistencies.

Change-Id: I05223981bd44d5f467808576113c29fbb37a3191
Story: #2004675
Task: #28666
2019-03-06 13:50:28 -03:00
Jeremy Freudberg 69d74c1a66 Some polish for APIv2
- update_keypair now only in v2 schema
- tenant_id->project_id in cluster provision steps
- tenant_id->project_id in referenced job binaries in job templates
- proper check for job template existence, to fail early (as intended)
- hadoop_version->plugin_version for query string filter
- unbreak some data source stuff (related to tenant_id->project_id)
- fix omission of show_progress from cluster GET query string whitelist
- job_id->job_template_id for v2 jobs
- add missing release note info for strict query string checking
- release notes for all the rest

Change-Id: Idea117c406b5ab9b8d85ccf8adb175053416d6ff
Story: 2004505
Task: 28822
2019-01-10 10:01:04 -03:00
Zuul 78090dee69 Merge "APIv2 - Fix 500 on malformed query string on" 2019-01-09 22:20:40 +00:00
Telles Nobrega 7105a891c2 APIv2 - Fix 500 on malformed query string on
In order to improve return information to clients we are adding a check
to verify parameters before each call and return a more appropriate
message to the users.

Change-Id: I9923601d0903e415a3fe30bec9bdc8fc34b91ff6
Story: #2004506
Task: #28228
2019-01-09 15:52:22 -03:00
Telles Nobrega 9bf50ce571 APIv2 Changing return payload to project_id
As part of the APIv2 work we need to change all tenant_id references
to project_id on the return payload.

Story: #2004505
Taks: #28227

Change-Id: I94bca161aa4f7bdd56d5528bae92fa81af188a43
2018-12-12 07:09:51 -03:00
Jeremy Freudberg cb0e5ad7ca Final fixup to APIv2 responses
Some inconsistencies still remained.

Change-Id: Ic54af5433f6498488f457d8e49dae74e684e2bd2
Story: 1745294
Task: 8392
2018-07-09 12:00:43 -04:00
Shu Yingya d5467e30ff [APIv2] Refactor job execute endpoint
This patch is going to update endpoint of job execution.
Executing a job template through the /jobs/{job_id}/execute endpoint
has been changed to a POST operation on the new /jobs endpoint.

Change-Id: Ic511b0442ea4464ace6370454631fc090c428638
Partial-Implements: bp v2-api-experimental-impl
2017-03-09 09:02:15 +00:00
Shu Yingya e4dc6fd5bd [APIv2] Further rename endpoint of jobs & job_executions
Patch [1] has already changed endpoint from jobs to
job_templates and job_executions to jobs.
However, the filename is still confusing.
Follow changes included in this patch:
 * rename filenames: jobs.py -> job_templates.py
                     job_executions.py -> jobs.py
 * rename function name in "api/v2":
                     job_list() -> job_template_list()
 * rename parameter in both "api/v11.py" and "api/v2":
                     job_id -> job_templates_id
                     job_execution_id -> job_id
                     ...
I want to correct the parameter name in APIv2,
but that leads to validation error. So I also changed
the parameter name in "api/v11.py"

[1]: https://review.openstack.org/#/c/309395/

Partial-Implements: bp v2-api-experimental-impl
Change-Id: Ia7a7ca811c82ddea13c21521a3abd62165ebd513
2017-03-06 20:21:24 +08:00