Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

Add Sahara data processing support#157

Open
ekasitk wants to merge 6 commits intophp-opencloud:master from
ekasitk:sahara
Open

Add Sahara data processing support #157
ekasitk wants to merge 6 commits intophp-opencloud:master from
ekasitk:sahara

Conversation

@ekasitk
Copy link
Contributor

@ekasitk ekasitk commented Sep 30, 2017

This PR provides the first version of sahara data processing support (ref. https://developer.openstack.org/api-ref/data-processing/).

Copy link
Collaborator

haphan commented Feb 6, 2018

@ekasitk Is this PR ready for review? Thanks

@haphan haphan closed this Feb 6, 2018
@haphan haphan reopened this Feb 6, 2018
Copy link
Contributor Author

ekasitk commented Feb 6, 2018

@haphan Yes, it is ready for review.

Copy link
Collaborator

haphan commented Feb 6, 2018
edited
Loading

Can you rebase with master and push again? It would also fix travis build @ekasitk

Copy link
Contributor Author

ekasitk commented Feb 15, 2018

@haphan Rebase was done. Could you review it again?

Copy link
Collaborator

@haphan haphan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @ekasitk, very high quality PR. Just a few comments below; mainly to follow existing standard and convention of other services in this SDK

  • Add description and return types where possible (src/DataProcessing/v1/Service.php). This will help to generate very nice reference doc.
  • Add unit tests
  • Nice to have: integration tests.

'neutronManagementNetwork' => '{neutronManagementNetworkId}',
];

$cluster = $sahara->createCluster($options);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add type hint to $cluster
e.g. /**@var OpenStack\DataProcessing\v1\Models\Cluster $cluster */


$clusters = $sahara->createCluster($options);
foreach ($clusters as $cluster) {
print_r($cluster);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add type hint


$sahara = $openstack->dataProcessingV1(['region' => '{region}']);

$cluster = $sahara->getCluster(['id' => '{clusterId}']);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add type hint


$sahara = $openstack->dataProcessingV1(['region' => '{region}']);

$cluster = $sahara->getCluster(['id' => '{clusterId}']);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add type hint

];

$clusters = $sahara->listClusters($options);
foreach ($clusters as $cluster) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add type hint to $client


$sahara = $openstack->dataProcessingV1(['region' => '{region}']);

$cluster = $sahara->getCluster(['id' => '{clusterId}']);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add type hint

'name' => '{ClusterTemplateName}',
];

$clusterTemplate = $sahara->createClusterTemplate($options);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add type hint

protected $resourcesKey = 'images';

protected $aliases = [
'OS-EXT-IMG-SIZE:size' => 'OSEXTIMGSIZEsize',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we simplify to size?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@haphan haphan haphan requested changes

Requested changes must be addressed to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /