Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change URL for library item list in 7.0.3 spec #464

Conversation

ephracis
Copy link
Contributor

SUMMARY

When retrieving a list of items inside a content library, the URL was malformed due to a double key in the query. Spec 7.0.3 is changed to look like it did in 7.0.2.

Fixes #463

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

content_library_item_info

When retrieving a list of items inside a content library, the URL was malformed
due to a double key in the query. Spec 7.0.3 is changed to look like it did in 7.0.2.
Copy link
Contributor

@mariolenz
Copy link
Collaborator

This is weird. Those OpenAPI specs have been generated using vmware-openapi-generator: #449

It would be really interesting to know why this produced a buggy spec.

@sean-freeman
Copy link

@alinabuzachis This patch should immediately trigger 3.0.1, this breaks all provided Ansible for VMware examples for "Clone VM Template to new VM"

@mariolenz
Copy link
Collaborator

Something else that falls into the "interesting to know" category, why didn't this fail in the CI:

- name: Get the list of items of the NFS library
vmware.vmware_rest.content_library_item_info:
library_id: '{{ nfs_lib.id }}'
register: lib_items

🤔

Copy link

codecov bot commented Jan 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (bebe4bf) 34.15% compared to head (e822426) 34.18%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #464      +/-   ##
==========================================
+ Coverage   34.15%   34.18%   +0.02%     
==========================================
  Files         143      143              
  Lines       11055    11040      -15     
  Branches     2294     2291       -3     
==========================================
- Hits         3776     3774       -2     
+ Misses       7279     7266      -13     
Flag Coverage Δ
sanity 34.18% <ø> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@alinabuzachis
Copy link
Collaborator

Something else that falls into the "interesting to know" category, why didn't this fail in the CI:

- name: Get the list of items of the NFS library
vmware.vmware_rest.content_library_item_info:
library_id: '{{ nfs_lib.id }}'
register: lib_items

🤔

Tests were disabled.

@GomathiselviS
Copy link
Contributor

@ephracis Can you please fix the linters issue in the changelog file? Once that is done we can merge this PR.

@GomathiselviS
Copy link
Contributor

Something else that falls into the "interesting to know" category, why didn't this fail in the CI:

- name: Get the list of items of the NFS library
vmware.vmware_rest.content_library_item_info:
library_id: '{{ nfs_lib.id }}'
register: lib_items

🤔

Tests were disabled.

I'm checking why the tests were disabled. I'll keep you updated.

@mariolenz
Copy link
Collaborator

I'm checking why the tests were disabled. I'll keep you updated.

I'm not sure if this is really important. The important thing is to enable them again so the CI can help to keep the collection healthy ;-)

I'm much more interested in the question why the spec I've generated was wrong. Maybe we should create an issue vmware-openapi-generator.

Although I'm not sure if we would get an answer, it looks like it's dead... at least, there hasn't been a commit since 4 years.

@ephracis
Copy link
Contributor Author

@ephracis Can you please fix the linters issue in the changelog file? Once that is done we can merge this PR.

Absolutely! Pushed a fix now.

Copy link
Contributor

Copy link
Contributor

Build succeeded (gate pipeline).
https://ansible.softwarefactory-project.io/zuul/buildset/52f48889511041d187934f896ed9e8c4

✔️ ansible-test-cloud-integration-vmware-rest SUCCESS in 14m 58s
✔️ build-ansible-collection SUCCESS in 10m 05s
✔️ tox-cloud-refresh-examples-vmware SUCCESS in 10m 43s
✔️ ansible-galaxy-importer SUCCESS in 4m 27s

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit b757870 into ansible-collections:main Jan 24, 2024
11 checks passed
Copy link

patchback bot commented Mar 13, 2024

Backport to stable-3: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-3/b757870897c4ef3ac058b07adb9f91d24bfa01eb/pr-464

Backported as #486

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Mar 13, 2024
Change URL for library item list in 7.0.3 spec

SUMMARY
When retrieving a list of items inside a content library, the URL was malformed due to a double key in the query. Spec 7.0.3 is changed to look like it did in 7.0.2.
Fixes #463
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
content_library_item_info

Reviewed-by: GomathiselviS
Reviewed-by: Alina Buzachis
(cherry picked from commit b757870)
softwarefactory-project-zuul bot pushed a commit that referenced this pull request Mar 13, 2024
[PR #464/b7578708 backport][stable-3] Change URL for library item list in 7.0.3 spec

This is a backport of PR #464 as merged into main (b757870).
SUMMARY
When retrieving a list of items inside a content library, the URL was malformed due to a double key in the query. Spec 7.0.3 is changed to look like it did in 7.0.2.
Fixes #463
ISSUE TYPE


Bugfix Pull Request

COMPONENT NAME
content_library_item_info

Reviewed-by: Ondra Machacek <machacek.ondra@gmail.com>
Reviewed-by: Alina Buzachis
mikemorency pushed a commit to mikemorency/vmware.vmware_rest that referenced this pull request Aug 16, 2024
Change URL for library item list in 7.0.3 spec

SUMMARY
When retrieving a list of items inside a content library, the URL was malformed due to a double key in the query. Spec 7.0.3 is changed to look like it did in 7.0.2.
Fixes ansible-collections#463
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
content_library_item_info

Reviewed-by: GomathiselviS
Reviewed-by: Alina Buzachis
(cherry picked from commit b757870)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

content_library_item_info: Unsupported property with name: library_id?library_id
6 participants