GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Added new resource "index resource" and unit tests by fgbulsoni · Pull Request #313 · HewlettPackard/python-hpOneView

This repository was archived by the owner on Oct 15, 2020. It is now read-only.

Conversation

@fgbulsoni

@fgbulsoni fgbulsoni commented Sep 12, 2017

Copy link
Copy Markdown
Contributor

Description

Added new resource "index resource" and unit tests

Issues Resolved

#312

Check List

  • New functionality includes testing.
    • All tests pass for Python 2.7+ & 3.4+($ tox).
  • New functionality has been documented in the README if applicable.
    • New functionality has been thoroughly documented in the examples (please include helpful comments).
  • Changes are documented in the CHANGELOG.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@fgbulsoni
Added new resource "index resource" and unit tests
55b8b69
@fgbulsoni
fgbulsoni requested a review from tmiotto September 12, 2017 17:43
tmiotto
tmiotto suggested changes Sep 12, 2017
View reviewed changes
Comment thread hpOneView/resources/search/index_resources.py Outdated
for f in list_or_str:
formated_query = formated_query + "&{0}=".format(field_name) + ''.join(quote(str(f)))
else:
formated_query = "&{0}=".format(field_name) + ''.join(quote(str(list_or_str)))

@tmiotto tmiotto Sep 12, 2017

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

This join here is probably not needed

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread tests/unit/resources/search/test_index_resources.py Outdated
filter = 'name=TestName'
sort = 'name:ascending'

expected_uri = '/rest/index/resources?&count=500&filter=name%3DTestName&sort=name%3Aascending&start=2'

@tmiotto tmiotto Sep 12, 2017

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I don't know if it would work, but I'm almost sure it is not the best practice to use the & in the first element after ? like in mylink.com?&status=123

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@fgbulsoni
Removed first & from queries and unecessary join, increased line length
805be53
tmiotto
tmiotto approved these changes Sep 12, 2017
View reviewed changes

@tmiotto tmiotto left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

🥔✨

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@fgbulsoni
fgbulsoni force-pushed the new-resource/index-resource branch from 7c7ab01 to 805be53 Compare September 12, 2017 19:39
@fgbulsoni
Bumped up SDK version for release of index resource
570593c
@fgbulsoni
fgbulsoni merged commit 88f7b6b into master Sep 13, 2017
@fgbulsoni
fgbulsoni deleted the new-resource/index-resource branch September 13, 2017 13:37
@fgbulsoni fgbulsoni mentioned this pull request Sep 18, 2017
call to hpOneView version reports 3.3.0 on hpOneView 4.1.0 and appliance_node_information is unknown #311
Closed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

1 more reviewer
@tmiotto tmiotto tmiotto approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@fgbulsoni @tmiotto
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.